Changes

Jump to: navigation, search

OpenLDAP Installation and Test

965 bytes added, 01:04, 23 November 2016
OpenLDAP Server Configuration directory
* olcRootDN - update to match your naming context
* olcRootPW - add (for olcRootDN)
 
After installing the openldap-servers rpm package, you should be able to start the OpenLDAP server slapd with the following command:
<pre>
systemctl start slapd.service
</pre>
 
To configure your system to start slapd.server at system boot, run the following command:
<pre>
systemctl enable slapd.service
</pre>
 
You can now import the three required schema:
<pre>
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/inetorgperson.ldif
</pre>
 
Check the directory content in "/etc/openldap/slapd.d/cn=config/cn=schema"
<pre>
[root@localhost cn=config]# ls -l cn\=schema
total 40
-rw-------. 1 ldap ldap 15578 Dec 16 2015 cn={0}core.ldif
-rw-------. 1 ldap ldap 11455 Nov 22 18:34 cn={1}cosine.ldif
-rw-------. 1 ldap ldap 6587 Nov 22 18:35 cn={2}nis.ldif
-rw-------. 1 ldap ldap 2949 Nov 22 18:35 cn={3}inetorgperson.ldif
</pre>
=== OpenLDAP client configuration ===
1,760
edits

Navigation menu