How to install and configure Ldap in windows



 

 

 I found a few documents on the Internet to install Ldap, and I installed and uninstalled many times. Finally, after several combinations, I succeeded - -! Here is a list of my entire operation steps for reference

 

1. Download the installation package of OpenLdap_x64 and the installation package of LdapBrowser282 under Windows

2. Install OpenLdap, all default options, select BDB for data.

3. After the installation is complete, modify slapd.conf (the bolded part is the modified content)

database bdb
suffix  "dc=example,dc=com"
rootdn  "cn=Manager,dc=example,dc=com"

# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw    secret

4. After the modification is completed, go to the system service and turn off the OpenLdap service.

5. Open cmd, enter the installation directory, and execute the slapd -f slapd.conf -d 1 command

6. Create a new file example.ldif with the following content

dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example

 

dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager

I saw on the Internet that it needs to be knocked by hand. I can't copy a few before. Here I am knocking by hand.

7. Open a new window and enter the command slapadd -v -l ./example.ldif in the installation directory to import the configuration

 

8. Open lbe.bat under LdapBrowser282

Modify the configuration of OpenLdap_Localhost

After saving, click Connect

That is, the connection is successful

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326421933&siteId=291194637