1,760
edits
Changes
→OpenLDAP Server and client Configuration File
== OpenLDAP Server and client Configuration File ==
=== OpenLDAP Server Configuration directory ===Please note that the following procedure only works for CentOS Linux up to starting from <font color='red'>version 67.0</font>. * Top of the configure directory for the OpenLDAP server slapd: /etc/openldap/slapd.d/cn=config<pre>[root@localhost cn=schema]# ls -l /etc/openldap/slapd.confd/cn\=configtotal 20drwxr-x---. 2 ldap ldap 104 Nov 22 18:35 cn=schema-rw-------. 1 ldap ldap 378 Dec 16 2015 cn=schema.ldif-rw-------. 1 ldap ldap 513 Dec 16 2015 olcDatabase={0}config.ldif-rw-------. 1 ldap ldap 443 Dec 16 2015 olcDatabase={-1}frontend.ldif-rw-------. 1 ldap ldap 562 Dec 16 2015 olcDatabase={1}monitor.ldif-rw-------. 1 ldap ldap 609 Dec 16 2015 olcDatabase={2}hdb.ldif</pre>** cn=schema - contains the schema to be loaded by the slapd server. Initial contents:<pre> [root@localhost cn=schema]## ls -ltotal 40-rw-------. 1 ldap ldap 15578 Dec 16 2015 cn={0}core.ldif</pre>Standalone OpenLDAP server configuration file
## You should set/modify the following directives
### rootdn - DN of the LDAP server administrator account
### suffix - the DN of the base directory on the LDAP server
### directory - where to put the database
=== OpenLDAP client configuration ===
# /etc/openldap/ldap.conf
## This is the configuration file for the ldap clients. The following are ldap client programs: