LDAP

LDAP

OpenLDAP

1. To install OpenLDAP Server

OpenLDAP Server is free available from:
http://www.openldap.org/software/download/
1.1 Double click the OpenLDAP application to start the installation:
For example: openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe



1.2 Click "Browse" to locate the installation path(for example: c:\OpenLDAP), and then click "Next".

1.3 Select "Full installation" as below and click "Next" to continue.

1.4 Click "Next/Install" as Default setting.



1.5 Click "Finish" to complete the OpenLDAP installation.

2. To configure the LDAP Server

2.1 Add the schema commands.
Open the slap.conf file under the installation path. And find the command :./schema/core.schema, and then add the following commands:

include             ./schema/cosine.schema

include             ./schema/inetorgperson.schema

include             ./schema/corba.schema

include             ./schema/dyngroup.schema

include             ./schema/java.schema

include             ./schema/misc.schema

include             ./schema/nis.schema

include             ./schema/openldap.schema



2.2 Edit the manager information:
Find the following commands in slap.conf:

suffix           “dc=my-domain, dc=com”

rootdn        “cn=manager,dc=mg-domain,dc=com”

rootpw       secret

suffix defines the components of the domain name.
rootdn is the manager access to the LDAP server.
rootpw means the password of the manager.
For example, you can change the context as following:

suffix “dc=HanLong,dc= com”

rootdn “cn=manager,dc=HanLong,dc=com”

rootpw secret

3. To Run Slapd Server

3.1 Click Start→ Run→ input cmd→Enter.
3.2 Perform the cd command to locate the server installation path.
For example: input cd c:\OpenLDAP(c:\OpenLDAP)


3.3 Enter the slapd -d -1 command to start the slapd server.

When showing "slapd starting", it means the slapd server runs successfully.

Note: Keep the window open to ensure the server is running.

4. To add initial Entry to the LDAP Directory