{"id":3,"date":"2009-07-02T07:39:26","date_gmt":"2009-07-02T12:39:26","guid":{"rendered":"http:\/\/www.thedarktimes.us\/wordpress\/?p=3"},"modified":"2009-07-02T07:40:22","modified_gmt":"2009-07-02T12:40:22","slug":"openldap-replication","status":"publish","type":"post","link":"https:\/\/www.thedarktimes.us\/wordpress\/linux\/openldap-replication\/%20","title":{"rendered":"OpenLDAP replication"},"content":{"rendered":"<p>Uncategorized No Comments<br \/>\nOpenLDAP replication<br \/>\nConfiguration of OpenLDAP replication is a complex, multistep procedure<br \/>\n1. Create a replicator object on the master server<br \/>\nCreate an LDIF:<br \/>\ndn: uid=replicator,dc=TLSB,dc=com<br \/>\nobjectClass: inetOrgPerson<br \/>\nuid: replicator<br \/>\ncn: LDAP Replicator<br \/>\n2. Add the replicator object to the Directory:<br \/>\nldapadd -x -D \u201ccn=Administrator,dc=TLSB,dc=com\u201d -W -f replicator.ldif<br \/>\n3. Give the replicator a password:<br \/>\nldappasswd -x -D \u201ccn=Administrator,dc=TLSB,dc=com\u201d -W -S<br \/>\n\u201cuid=replicator,dc=TLSB,dc=com\u201d<br \/>\nEnter the password twice when prompted for.<br \/>\n4. Add the following two lines to the slapd.conf on the master server:<br \/>\nreplogfile \/var\/lib\/ldap\/master-slapd.replog<br \/>\nreplica uri=ldap:\/\/slaveserver:389 binddn=\u201duid=replicator,dc=TLSB,dc=com\u201d<br \/>\nbindmethod=simple credentials=novell<br \/>\n5. Enter the followin two lines to the slapd.conf at the slave server<br \/>\nupdatedn=\u201duid=replicator,dc=TLSB,dc=com\u201d<br \/>\nupdateref=\u201dldap:\/\/ipaddressofthemasterserver<br \/>\nNext, make sure to change read access to the following:<br \/>\naccess to *<br \/>\nby dn=\u201duid=replicator,dc=TLSB,dc=com\u201d write<br \/>\nby * read<br \/>\n6. Copy the LDAP database from the master to the slave server<br \/>\nscp -r \/var\/lib\/ldap\/ slaveserver:\/var\/lib\/ldap\/<br \/>\n7. Start the LDAP server and replication on both servers<br \/>\nrcldap start rcslurpd start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uncategorized No Comments OpenLDAP replication Configuration of OpenLDAP replication is a complex, multistep procedure 1. Create a replicator object on the master server Create an LDIF: dn: uid=replicator,dc=TLSB,dc=com objectClass: inetOrgPerson uid: replicator cn: LDAP Replicator 2. Add the replicator object to the Directory: ldapadd -x -D \u201ccn=Administrator,dc=TLSB,dc=com\u201d -W -f replicator.ldif 3. Give the replicator a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[3],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":6,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/3\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}