I. Overview
The concept and principle of LDAP I will not say more, want to understand can refer to:
[Essence] Understanding and application LDAP server
LDAP Concepts and principles
The focus of this article is on how to install and configure the OpenLDAP software on the Windows platform.
Second, the test environment
Window7–64 bit
OpenLDAP version: 2.4.42 (http://www.userbooster.de/download/openldap-for-windows.aspx)
Third, the installation process
1. After downloading the run, click OK Yes
2. Always click Next
3. Until the database is selected, select BdB, Continue next
4. Then the intermediate steps are the default until the install is installed
Iv. Configuration Start-up
Installation directory: D:\OpenLDAP
Edit file: D:\OpenLDAP\slapd.conf find the following:
Suffix "dc=maxcrc,dc=com" RootDN "cn=manager,dc=maxcrc,dc=com"
Modified to:
Suffix "dc=micmiu,dc=com" RootDN "cn=manager,dc=micmiu,dc=com"
Locate the installation directory: D:\OpenLDAP\run, execute Run.cmd
Log information: SLAPD starting indicates that the service has been started.
Create a new file: D:\OpenLDAP\mydemo.ldif, which reads as follows:
Dn:dc=micmiu,dc=comobjectclass:domainobjectclass:topo:michael blogdc:micmiudn:ou=developer,dc=micmiu,dc= Comobjectclass:organizationalUnitou:Developerdescription:Container for developer ENTRIESDN:OU=TESTER,DC=MICMIU,DC =comobjectclass:organizationalunitou:testerdescription:container for Test entriesdn:uid=michael,ou=developer,dc= Micmiu,dc=comuid:michaelobjectclass:inetorgpersonmail: [Email protected]userpassword:111111labeleduri:http:// Www.micmiu.comsn:Suncn:Michael Sundn:uid=miumiu,ou=tester,dc=micmiu,dc=comuid:miumiuobjectclass: Inetorgpersonuserpassword:111111labeleduri:http://www.micmiu.comsn:wucn:miumiu Wu
Tips: Strict formatting, no spaces at the beginning and end of each line
Then switch to the OPENLDAP installation directory in the console to execute the command: (note: You need to stop the previously started SLAPD service before executing the slapadd command)
Slapadd-v-L/MYDEMO.LDIF
Prove successful.
V. Introduction of the Client
There are many clients on the Internet, here LdapBrowser282, attachment: Click to open the link
After the download decompression directly double-click: Lbe.bat file can be run.
Vi. configuration of the LDIF file for multilevel DCs
In the actual application we often encounter two-level domain name, similar to: app1.micmiu.com, app2.micmiu.com, then the corresponding to the LDAP DC is multilevel, then we LDIF file is how to configure it? Here is a sample demonstration, creating a new file: D:\OpenLDAP\myappuser.ldif, which reads as follows:
Dn:dc=app1,dc=micmiu,dc=comobjectclass:domaino:michael Demodc:app1dn:dc=app2,dc=micmiu,dc=comobjectclass: Domaino:michael Demodc:app2dn:ou=demo,dc=app1,dc=micmiu,dc=comobjectclass:organizationalunitou: Developerdescription:container for Demo Entriesdn:ou=demo,dc=app2,dc=micmiu,dc=comobjectclass: OrganizationalUnitou:Developerdescription:Container for Demo entriesdn:uid=michael,ou=demo,dc=app1,dc=micmiu,dc= Comuid:adminobjectClass:inetOrgPersonmail: [email protected]userpassword:111111labeleduri:http:// Www.micmiu.comsn:Suncn:Michael Sundn:uid=hazel,ou=demo,dc=app1,dc=micmiu,dc=comuid:userobjectclass: Inetorgpersonuserpassword:111111labeleduri:http://www.micmiu.comsn:wucn:hazel Wudn:uid=michael,ou=demo,dc=app2, Dc=micmiu,dc=comuid:adminobjectclass:inetorgpersonmail: [Email protected]userpassword:111111labeleduri: Http://www.micmiu.comsn:Suncn:Michael Sundn:uid=hazel,ou=demo,dc=app2,dc=micmiu,dc=comuid:userobjectclass: inetorgpersonuserpassword:111111labeleduri:http://www.micmiu.comsn:wucn:hazel Wu
Stop the SLAPD service first, and then switch to the OPENLDAP installation directory in the console to execute the command:
Slapadd-v-L/MYAPPUSER.LDIF
OK, this article has been basically completed.
The paper came to the end of the light, I know this matter to preach.
CAS series (iv)--OPENLDAP installation and configuration