miniOrange Identity and Access Management (2024)

  • Home
  • Integrations
  • Configure LDAPS on Windows Server

Connect with LDAPS using miniOrange guidelines to setup LDAP over SSL and establish a secure connection with LDAP Server. Secure your LDAP server connection between client and server application to encrypt the communication. In case of simple bind connection using SSL/TLS is recommended to secure the authentication as simple bind exposes the user credentials in clear text.

1. Install Certificate Authority, Create and Export the certificate

1.1: Install "Active Directory Certificate Services" role through Server Manager roles.

  • On your Windows Server Machine, click on Start -> Server Manager -> Add Roles and Features.
  • miniOrange Identity and Access Management (1)
  • After selecting Add Roles and Features and Click on Next.
  • miniOrange Identity and Access Management (2)
  • Choose Role-based or feature-based installation option and Click on Next button.
  • miniOrange Identity and Access Management (3)
  • Choose Select a server from the server pool option & Select ldap server from the server pool and click on Next button.
  • miniOrange Identity and Access Management (4)
  • Choose Active Directory Certificate Services option from the list of roles and click on Next button.
  • miniOrange Identity and Access Management (5)
  • Choose nothing from the list of features and click on Next button.
  • miniOrange Identity and Access Management (6)
  • In Active Directory Certificate Services (AD CS) choose nothing and Click on Next button.
  • miniOrange Identity and Access Management (7)
  • Mark Certification Authority from the list of roles and Click on Next button.
  • miniOrange Identity and Access Management (8)
  • Click on Install button to confirm installation.
  • miniOrange Identity and Access Management (9)
  • Now, click on Configure Active Directory Certificate Services on Destination Server option and click on Close button.
  • miniOrange Identity and Access Management (10)
  • We can use the currently logged on user to configure role services since it belongs to the local Administrators group. Click on Next button.
  • miniOrange Identity and Access Management (11)
  • Mark Certification Authority from the list of roles and Click on Next button.
  • miniOrange Identity and Access Management (12)
  • Choose Enterprise CA option and Click on Next.
  • miniOrange Identity and Access Management (13)
  • Choose Root CA option and Click on Next button.
  • miniOrange Identity and Access Management (14)
  • Choose Create a new private key option and Click on Next button.
  • miniOrange Identity and Access Management (15)
  • Choose SHA256 as the hash algorithm and Click on Next.
    UPDATE : Recommended to select the most recent hashing algorithm.
  • miniOrange Identity and Access Management (16)
  • Click on Next button.
  • miniOrange Identity and Access Management (17)
  • Specify the validity of the certificate choosing Default 5 years and Click on Next button.
  • miniOrange Identity and Access Management (18)
  • Select the default database location and Click on Next.
  • miniOrange Identity and Access Management (19)
  • Click on Configure button to confirm.
  • miniOrange Identity and Access Management (20)
  • Once the configuration succeeded and click on Close button.
  • miniOrange Identity and Access Management (21)

1.2: Create certificate template

  • Go to Windows Key+R and run certtmpl.msc command and choose the Kerberos Authentication Template.
  • miniOrange Identity and Access Management (22)
  • Right-click on Kerberos Authentication and then select Duplicate Template.
  • miniOrange Identity and Access Management (23)
  • The Properties of New Template will appear. Configure the setting according to your requirements.
  • Go to the General tab and Enable publish certificate in Active Directory option.
  • miniOrange Identity and Access Management (24)
  • Go to the Request Handling Tab and Enable ‘Allow private key to be exported’ option.
  • miniOrange Identity and Access Management (25)
  • Go to the Subject Name tab and Enable subject name format as DNS Name and click on Apply & OK button.
  • miniOrange Identity and Access Management (26)

1.3: Issue certificate template

  • Go to Start -> Certification Authority Right click on "Certificate Templates" and select New-> Certificate Template to Issue.
  • miniOrange Identity and Access Management (27)
  • Now, select your recently created Certificate Template and click on ok button.
  • miniOrange Identity and Access Management (28)

1.4: Request new certificate for created certificate template

  • Go to Windows Key+R -> mmc -> File -> Add/Remove snap-in. Select Certificates, and click on Add button and then click on Ok button .
  • miniOrange Identity and Access Management (29)
  • Select Computer account option and click on Next button.
  • miniOrange Identity and Access Management (30)
  • Select Local computer option and click on Finish button.
  • miniOrange Identity and Access Management (31)
  • Now, right Click on Certificates select All Tasks and click on Request for new Certificate.
  • miniOrange Identity and Access Management (32)
  • Click on Next button.
  • miniOrange Identity and Access Management (33)
  • Click on Next button.
  • miniOrange Identity and Access Management (34)
  • Select your certificate and click on Enroll button.
  • miniOrange Identity and Access Management (35)
  • Click on Finish button.
  • miniOrange Identity and Access Management (36)

1.5: Export the created certificate

  • Right click on recently generated certificate and select All tasks -> Export.
  • miniOrange Identity and Access Management (37)
  • Click on Next button.
  • miniOrange Identity and Access Management (38)
  • Select Do not export the private key option and click on Next button.
  • miniOrange Identity and Access Management (39)
  • Choose Base-64 encoded X .509 file format and click on Next.
  • miniOrange Identity and Access Management (40)
  • Export the .CER to your local system path and click on Next.
  • miniOrange Identity and Access Management (41)
  • Click on Finish button to complete the certificate export.
  • miniOrange Identity and Access Management (42)

2. Configure LDAPS on the client side server

2.1: Convert Certificate Format and Install the Certificate using OpenSSL

  • To convert the certificate from .cer to .pem format you can use OpenSSL.
  • For Windows:
    • You can obtain this software from here: http://gnuwin32.sourceforge.net/packages/openssl.htm if you don’t already have it.
    • Copy the certificate file you generated in the previous step to the machine on which PHP is running. Run the following command:
      For example:
      C:\openssl\openssl x509 -in mOrangeLDAPS.cer -out mOrangeLDAPS.pem
      This creates the certificate file in a form that OpenLDAP Client Library can use.
    • Place the .pem file generated in a directory of your choosing (C:\openldap\sysconf may be a good choice since that directory already exists.)
    • Add the following line to your ldap.conf file:
      TLS_CACERT C:\openldap\sysconf\mOrangeLDAPS.pem
    • This directive tells the OpenLDAP Client Library about the location of the certificate, so that it can be picked up during initial connection.

  • For Linux:
    • Run the following command to install the Openssl.
      • For Ubuntu:
        • sudo apt-get install openssl

      • For RHEL/CentOS:
        • yum install openssl

      • Copy the certificate file you generated in the previous step to the machine on which PHP is running. Run the following command:
        For example:
        /openssl x509 -in mOrangeLDAPS.cer -out mOrangeLDAPS.pem
        This creates the certificate file in a form that OpenLDAP Client Library can use.
      • Place the .pem file generated in a directory of your choosing (/etc/openldap/ may be a good choice since that directory already exists.)
      • Add the following line to your ldap.conf file:
        TLS_CACERT /etc/openldap/mOrangeLDAPS.pem
      • This directive tells the OpenLDAP Client Library about the location of the certificate, so that it can be picked up during initial connection.

2.2: Install certificate in JAVA Keystore.

  • Run the following command to install the certificate in cacerts.
  • For Windows:
      keytool -importcert -alias "mOrangeLDAPS"
      -keystore "C:\Program Files\Java\jre1.8.0_231\lib\security\cacerts"
      -file "C:\Users\Administrator\Documents\mOrangeLDAPS.cer"

  • For Linux:
      keytool -importcert -alias "mOrangeLDAPS"
      -keystore "/usr/java/jdk1.8.0_144/jre/lib/security/cacerts"
      -file "/home/mOrangeLDAPS.cer"

  • Restart your web server.

3. Test Connection

  • For Linux:
      ldapsearch -ZZ -h ad_host.example.com -D [email protected] -W -b OU=users,DC=EXAMPLE,DC=COM dn
      • ZZ: Start TLS (for LDAPS)
      • h: IP/hostname of Active Directory server
      • D: BindDN or User principal name
      • W: Password (to be provided interactively)
      • b: Base DN for search (where in the LDAP tree to start looking)

  • For Windows:

    [Role Required: Admin]

    • Ensure that Windows Support Tools are installed on the domain controller (DC).
    • The Support Tools setup (suptools.msi) can be found in the \Support\Tools directory on your Windows Server CD.
    • Select Start >> All Program >> Windows Support Tools >> Command Prompt. On the command line, type IDP to start the tool.
    • From the IDP window, select Connection >> Connect and supply the local FQDN and port number (636). Also select the SSL.

  • If successful, a window displays and lists information related to the Active Directory SSL connection. If the connection is unsuccessful, try restarting your system and repeat this procedure.

Further References

  • What is Directory as a Service
  • How to use Active Directory to login into various applications?
  • Take a free trial of miniOrange SSO, MFA now!
  • Know about Directory as a Service (DaaS)
miniOrange Identity and Access Management (2024)
Top Articles
International wire regulations: The IRS, limits, laws & your rights
Estate Planning and Life Insurance
Hotels Near 625 Smith Avenue Nashville Tn 37203
Davita Internet
Craigslist Furniture Bedroom Set
Best Cheap Action Camera
Craigslist Labor Gigs Albuquerque
123Moviescloud
Everything You Need to Know About Holly by Stephen King
Craigslist Alabama Montgomery
Moonshiner Tyler Wood Net Worth
Https://Store-Kronos.kohls.com/Wfc
Michigan cannot fire coach Sherrone Moore for cause for known NCAA violations in sign-stealing case
Xomissmandi
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
Icommerce Agent
Average Salary in Philippines in 2024 - Timeular
The best TV and film to watch this week - A Very Royal Scandal to Tulsa King
Amih Stocktwits
Amortization Calculator
Unionjobsclearinghouse
Yisd Home Access Center
Shadbase Get Out Of Jail
Weve Got You Surrounded Meme
Craiglist.nj
Darrell Waltrip Off Road Center
Copper Pint Chaska
Goodwill Of Central Iowa Outlet Des Moines Photos
12657 Uline Way Kenosha Wi
Guinness World Record For Longest Imessage
Stouffville Tribune (Stouffville, ON), March 27, 1947, p. 1
Plasma Donation Racine Wi
Datingscout Wantmatures
+18886727547
The Venus Flytrap: A Complete Care Guide
Σινεμά - Τι Ταινίες Παίζουν οι Κινηματογράφοι Σήμερα - Πρόγραμμα 2024 | iathens.gr
Sinfuldeeds Vietnamese Rmt
Mistress Elizabeth Nyc
Ishow Speed Dick Leak
Hindilinks4U Bollywood Action Movies
Armageddon Time Showtimes Near Cmx Daytona 12
How to Print Tables in R with Examples Using table()
Obituaries in Hagerstown, MD | The Herald-Mail
Cl Bellingham
Pain Out Maxx Kratom
Mychart University Of Iowa Hospital
Searsport Maine Tide Chart
Bonecrusher Upgrade Rs3
Tìm x , y , z :a, \(\frac{x+z+1}{x}=\frac{z+x+2}{y}=\frac{x+y-3}{z}=\)\(\frac{1}{x+y+z}\)b, 10x = 6y và \(2x^2\)\(-\) \(...
Zom 100 Mbti
Ark Silica Pearls Gfi
Craigslist Farm And Garden Missoula
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 5954

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.