hi there!
we have some problems with slurpd having to deal with multiple
backends.
whenever we change something on the master slapd, the changes got
written into the (one and only) slapd replication log file. slurpd
grabs
it correctly and does the update to the appropriate backend on the
slave, but, and here comes the weird part:
slurpd also tries to update all the other backends, which are hooked on
other branches of the directory tree.
so slurpd gets a referral message back from the slave slapd (correct,
cause this is the wrong branch for the update), and slurpd treats this
referral message as an error, and puts it into the rejection log.
does anyone know, what is going wrong here?
the slurpd rejection logfile:
ERROR: Referral
replica: ldap2.domain.net:389
time: 1054742636.1
dn: something=test,dc=1,dc=domain,dc=net
changetype: add
objectClass: something
something: test
creatorsName: cn=admin,dc=1,dc=domain,dc=net
createTimestamp: 20030604160356Z
modifiersName: cn=admin,dc=1,dc=domain,dc=net
modifyTimestamp: 20030604160356Z
with number of backends minus one reiterations of the above error per
update.
this is the config:
master:
##### DB-1 Definitions #####
database ldbm
directory /openldap-ldbm/1
mode 0600
rootdn "cn=admin,dc=1,dc=domain,dc=net"
rootpw secret
suffix "dc=1,dc=domain,dc=net"
replica host=ldap2.domain.net:389
suffix="dc=1,dc=domain,dc=net"
binddn="cn=admin,dc=1,dc=domain,dc=net"
bindmethod=simple
credentials=secret
replogfile /var/log/openldap/replog
index objectClass eq
##### DB-2 Definitions #####
database ldbm
directory /openldap-ldbm/2
mode 0600
rootdn "cn=admin,dc=2,dc=domain,dc=net"
rootpw secret
suffix "dc=2,dc=domain,dc=net"
replica host=ldap2.domain.net:389
suffix="dc=2,dc=domain,dc=net"
binddn="cn=admin,dc=2,dc=domain,dc=net"
bindmethod=simple
credentials=secret
replogfile /var/log/openldap/replog
index objectClass eq
and so forth...
slave:
##### DB-1 #####
database ldbm
directory /openldap-ldbm/slave/1
mode 0600
rootdn "cn=admin,dc=1,dc=domain,dc=net"
rootpw secret
updatedn "cn=admin,dc=1,dc=domain,dc=net"
updateref ldap://ldap1.domain.net:389
suffix "dc=1,dc=domain,dc=net"
##### DB-2 Definitions #####
database ldbm
directory /openldap-ldbm/slave/2
mode 0600
rootdn "cn=admin,dc=2,dc=domain,dc=net"
rootpw secret
updatedn "cn=admin,dc=2,dc=domain,dc=net"
updateref ldap://ldap1.domain.net:389
suffix "dc=2,dc=domain,dc=net"
and so forth
thx in advance!
greetinx
/tom