Posts

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=cloudtalents.info,o=asp" rootdn "o=cloudtalents.info,o=asp" rootpw secret loglevel 4095 Replica host=sandbox2:389 suffix="o=cloudtalents.info,o=asp" binddn="o=cloudtalents.info,o=asp" bindmethod=simple credentials=secret replogfile /var/log/replogfile At LDAP2 Edit /etc/openldap/slapd.conf suffix "o=cloudtalents.info,o=asp" rootdn "o=cloudtalents.info,o=asp" rootpw secret updatedn o=cloudtalents.info,o=asp updateref ldap://sandbox1 Start ldap service and check the directory tree. ldapsearch -x -b "o=cloudtalents.info,o=asp" "(objectclass=*)" You may import the backup ldiff file ldapadd -D "o=cloudtalents.info,o=asp" -W -x -f backup...