Installing OpenLDAP on Windows 7

In this article, we will learn how to install OpenLDAP on Windows 7 system as a Windows service.

This article will explain how to set up OpenLDAP locally on the Windows system. This set up can be used for development purposes. This is not a production environment level setup of OpenLDAP. This installation can be only used for local development.

Below are the steps:

  • Download OpenLDAP for windows from here.
  • Extract the Zip downloaded file. We can extract the file to any directory. I have extracted to the location: D:\software\Development\LDAP\ on my system.
  • Run the extracted .exe file to start the OpenLDAP installation.
  • The below screen will appear. Click on the Yes button.
  • Click on the Next button.
  • Accept the T&C and click on the Next button.
  • Choose the destination folder, where the OpenLDAP should be installed in the system by clicking on the Change button. Click on the Next button.
  • Keep the default setup and click on the Next button.
  • Enter the server name/ IP address and Password, keep the default setting for other fields and click on the Next button.
  • Select the Database backend and click on the Next button.
  • Click on the Next button.
  • Finally, click on the Install button.

To access the installed OpenLDAP, we can install LDAP Tool.

Download LDAP Tool from here.

  • Run the .exe file. Click on the Next button.
  • Accept the License Agreement and click on the Next button.
  • Select the system path, where the LDAP Tool should be installed and click on the Next button.
  • Click on the Next button.
  • Click on the Next button again.
  • Click on the Install button.
  • Finally, click on the Finish button.
  • Open the LDAP Explorer Tool window. The empty LDAP Explorer Tool window will be opened as shown below.
  • Select the File > Configurations option. The configuration window will be displayed as shown below.
  • Enter the configuration name.
  • Enter the server IP, port, SSL port details on server window.
  • Enter the User DN with value: cn=Manager,dc=maxcrc,dc=com, enter the password field with password: secret. Also click on the Guess value button to detect the default Base DN value. Finally, click on the OK button.
  • Now we can browse the LDAP details.

We can load the more user details from external ldif files. Create new ldif file with below content under ldifdata folder of installed LDAP folder.


dn: cn=John,ou=People,dc=maxcrc,dc=com
objectclass: inetOrgPerson
cn: John
sn: john
uid: john
userpassword: john
homephone: 555-111-2222
description: A randon guy
ou: Engineering


dn: cn=asbnotebook1,ou=People,dc=maxcrc,dc=com
objectclass: inetOrgPerson
cn: asbnotebook1
sn: asb1
uid: asb123
userpassword: pwd
homephone: 111-2222-333
description: blah blah blah
ou: ASB

dn: cn=asbnotebook2,ou=People,dc=maxcrc,dc=com
objectclass: inetOrgPerson
cn: asbnotebook2
sn: asb2
uid: asb456
userpassword: pwd
homephone: 111-2222-777
description: blah blah blah
ou: ASB

Now Navigate to the ClientTools folder of the installed LDAP folder. Open the command prompt and run the below command to load new ldif files:

ldapmodify.exe -a -x -h localhost -p 389 -D "cn=manager,dc=maxcrc,dc=com" -f D:\software\Development\LDAP\InstalledLDAP\ldifdata\asb1.ldif -w secret
ldapmodify.exe -a -x -h localhost -p 389 -D "cn=manager,dc=maxcrc,dc=com" -f D:\software\Development\LDAP\InstalledLDAP\ldifdata\asb2.ldif -w secret

We can see the successfully added LDAP entries upon running the above import command.

Now we can be able to see the newly created LDAP records on LDAP Explorer Tool.

Congratulations!! 🙂 🙂 We have successfully set up OpenLDAP on the Windows 7 system.


In this article, we learned how to set up the OpenLDAP on windows for development purposes. We also installed LDAP Explorer Tool to browse the available LDAP records.

I hope this article is helpful for setting up the LDAP on your Windows system. 🙂 Let me know if you face any difficulties while setting up the LDAP on your system by dropping a comment below.

You may also interested in