14.02.2014 Views

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Populating Slaves<br />

One of the most difficult tasks of establishing a replicant is ensuring that it<br />

starts with an identical database to it's master. Possibly the simplest way to<br />

establish replica slaves is as follows:<br />

1. Ensure there is a dn with which one can bind the the master and view all attributes<br />

and objects in the Dit.<br />

2. Temporarily modify the query result size limit* of the master to permit the entire<br />

database to be downloaded (the sizelimit parameter in slapd.conf) and restart the<br />

master slapd.<br />

3. Set the default base, updatedn, etc... on the slave<br />

4. Ensure schema files on master and slave are identical.<br />

Tip: slave:/etc/openldap/schema $ scp root@master:/etc/openldap/schema/* .<br />

5. Define the slave replicant on the master and re-apply size-limit, but do not restart the<br />

master slapd (yet). Ensure that the replication log file exists with correct permissions.<br />

6. Copy the database to the slave:<br />

ldapsearch -LLL -D”bind dn” -w “bind password” “objectclass=*” | slapadd -n 1<br />

7. Start the slave slapd.<br />

8. Restart the master slapd.<br />

*This procedure may not be appropriate for very large databases.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!