Justin Crabtree wanted us to know:
binddn=(rootdn)
credentials=(rootdn password)
You'll probably get creamed by the list people for this. It's bad to
use the rootdn for replication.
Make an entry for replication and then use that. Here's mine:
smtp2 bin # ldapsearch -x -hldap2 -b 'dc=ivenue,dc=net' -D
'cn=pam,dc=ivenue,dc=net' -W cn=master
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <dc=ivenue,dc=net> with scope sub
# filter: cn=master
# requesting: ALL
#
# master, ivenue.net
dn: cn=master,dc=ivenue,dc=net
objectClass: person
sn: master
cn: master
userPassword:: base_64_crypt_password
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Here's from the master slapd.conf:
replica uri=ldap://ldap1.ivenue.net:389
binddn="cn=master,dc=ivenue,dc=net"
bindmethod=simple credentials=obscured
replica uri=ldap://ldap2.ivenue.net:389
binddn="cn=master,dc=ivenue,dc=net"
bindmethod=simple credentials=obscured
replogfile /var/lib/openldap-slurp/replication.log
Here's from the slave slapd.conf:
updatedn cn=master,dc=ivenue,dc=net
It's no more complicated than that. I'd be interested in why you chose
to do it with the rootdn if you chose to do it that way.