[Date Prev][Date Next] [Chronological] [Thread] [Top]

replication problems



hello,

a few months ago i set up replication between two test servers - it
worked.  i was using the rootdn and the crypted rootpw for binding
(just copied the {crypt}blahblah from the rootdn's userpassword field).
now i'm trying to set this up between the production ldap server and a
backup server using a 'replicator' account, and it's not going :(
nor did it work when i tried using the rootdn's instead.

here's the two slapd.conf's:

master:

include         /usr/local/etc/openldap/slapd.at.conf
include         /usr/local/etc/openldap/slapd.oc.conf
schemacheck     off
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
database        ldbm
suffix          "dc=obtero, dc=com, dc=au"
directory       /var/ldap
rootdn          "cn=manager, dc=obtero, dc=com, dc=au"
rootpw          {crypt}sLsyOqO7Vkea.
replogfile      /var/ldap/slapd.replog
replica host=billing.obtero.net binddn="uid=replicator,ou=People,dc=obtero,dc=com,dc=au" \
bindmethod=simple credentials={crypt}blahblah

slave:

include         /usr/local/etc/openldap/slapd.at.conf
include         /usr/local/etc/openldap/slapd.oc.conf
schemacheck     off
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
database        ldbm
suffix          "dc=obtero,dc=com,dc=au"
directory       /var/ldap
rootdn          "cn=manager, dc=obtero, dc=com, dc=au"
rootpw          {crypt}blahblah
updatedn        "uid=replicator, ou=People, dc=obtero, dc=com, dc=au"
access          to * by dn="uid=replicator, ou=People, dc=obtero, dc=com, dc=au" write


When the master tries to bind to the slave, the debug shows:

ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_result2error
ldap_msgfree
ldap_err2string
Error: ldap_simple_bind_s for billing.obtero.net:0 failed: No such object

and the slave debug:

do_bind
do_bind: version 2 dn (uid=replicator, ou=People, dc=obtero, dc=com,
dc=au) method 128
==> ldbm_back_bind: dn: UID=REPLICATOR,OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU
dn2entry_r: dn: "UID=REPLICATOR,OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU"
=> dn2id( "UID=REPLICATOR,OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU" )
=> ldbm_cache_open( "/var/ldap/dn2id.dbb", 7, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 4)
<= ldbm_cache_open (opened 0)
<= dn2id NOID
dn2entry_r: dn: "OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU"
=> dn2id( "OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU" )
=> ldbm_cache_open( "/var/ldap/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 6
=> id2entry_r( 6 )
=> ldbm_cache_open( "/var/ldap/id2entry.dbb", 7, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 4)
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry 0x8084f18
entry_rdwr_rlock: ID: 6
<= id2entry_r( 6 ) (disk)
====> cache_return_entry_r
entry_rdwr_runlock: ID: 6
send_ldap_result 32:OU=PEOPLE,DC=OBTERO,DC=COM,DC=AU:
ber_flush: 46 bytes to sd 9
         0  , 02 01 01  a  ' 0a 01 20 04 20  O  U  =  P
         E  O  P  L  E  ,  D  C  =  O  B  T  E  R  O  ,
         D  C  =  C  O  M  ,  D  C  =  A  U 04 00 


any suggestions?

cheers,
mike