Changes

Jump to: navigation, search

OpenLDAP Installation and Test

474 bytes added, 02:23, 23 November 2016
Check current "naming context" of the OpenLDAP directory
</pre>
== Changing the "naming context" i.e. olcSuffix, and update the olcRootDN and olcRootPW==
Create the following LDIF file and name it "newbase.ldif:
<pre>
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=ops535,dc=com
</pre>
 
Run the following command to preform the update:
<pre>
ldapmodify -Y EXTERNAL -H ldapi:/// -f newbase.ldif
</pre>
 
Check the content of the file /etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif to confirm.
== Important LDAP Commands and Sample LDIF files ==
1,760
edits

Navigation menu