Showing posts from December, 2011

Openldap replication setup and useful ldap commands

Openldap is popular opensource directory service. This tutorial will setup replication feature of Openldap with two servers. At LDAP1 Edit /etc/openldap/slapd.conf suffix ",o=asp" rootdn ",o=asp" rootpw secret loglevel 4095 Replica host=sandbox2:389 suffix=",o=asp" binddn=",o=asp" bindmethod=simple credentials=secret replogfile /var/log/replogfile At LDAP2 Edit /etc/openldap/slapd.conf suffix ",o=asp" rootdn ",o=asp" rootpw secret updatedn,o=asp updateref ldap://sandbox1 Start ldap service and check the directory tree. ldapsearch -x -b ",o=asp" "(objectclass=*)" You may import the backup ldiff file ldapadd -D ",o=asp" -W -x -f backup