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

Problem with replication in many databases



Hi,

Can someone help me?

I have to configure many databases running in one openldap with
replication... But when I do that, only the replication of first
database worked...

The master slapd.conf part:

---
database bdb
suffix "dc=db1"
rootdn "cn=Manager,dc=db1"
rootpw {SSHA}k6aHDkx/Q3aVNeL5WXVafEQm780ZgkkQ
directory /usr/local/openldap/var/db1-openldap-data
index objectClass eq
access to attrs=userPassword
        by self write
        by anonymous auth
        by dn.base="cn=Administrator,dc=db1" write
        by * none
access to *
        by self write
        by dn.base="cn=Administrator,dc=db1" write
        by dn.base="cn=Replicator,dc=db1" write
        by * read

replica uri=ldap://192.168.0.2:389
        binddn="cn=Replicator,dc=db1"
        bindmethod=simple credentials=secret
replogfile /usr/local/openldap/var/db1.replog

database bdb
suffix "dc=db2"
rootdn "cn=Manager,dc=db2"
rootpw {SSHA}k6aHDkx/Q3aVNeL5WXVafEQm780ZgkkQ
directory /usr/local/openldap/var/db2-openldap-data
index objectClass eq
access to attrs=userPassword
        by self write
        by anonymous auth
        by dn.base="cn=Administrator,dc=db2" write
        by * none
access to *
        by self write
        by dn.base="cn=Administrator,dc=db2" write
        by dn.base="cn=Replicator,dc=db2" write
        by * read

replica uri=ldap://192.168.0.2:389
        binddn="cn=Replicator,dc=db2"
        bindmethod=simple credentials=secret
replogfile /usr/local/openldap/var/db2.replog
---

The slave slapd.conf part:

---
database bdb
suffix "dc=d1"
rootdn "cn=Replicator,dc=db1"
rootpw {SSHA}bi7NKCwmjDDDGR6hQecm6UszYCJQu/07
directory /usr/local/openldap/var/db1-openldap-data
index objectClass eq
access to attrs=userPassword
        by self write
        by anonymous auth
        by dn.base="cn=Administrator,dc=db1" write
        by * none
access to *
        by self write
        by dn.base="cn=Administrator,dc=db1" write
        by * read

updatedn "cn=Replicator,dc=db1"
updateref ldap://192.168.0.1

database bdb
suffix "dc=d2"
rootdn "cn=Replicator,dc=db2"
rootpw {SSHA}bi7NKCwmjDDDGR6hQecm6UszYCJQu/07
directory /usr/local/openldap/var/db2-openldap-data
index objectClass eq
access to attrs=userPassword
        by self write
        by anonymous auth
        by dn.base="cn=Administrator,dc=db2" write
        by * none
access to *
        by self write
        by dn.base="cn=Administrator,dc=db2" write
        by * read

updatedn "cn=Replicator,dc=db2"
updateref ldap://192.168.0.1
---

When I run a command to add entries on 2 databases in the master server,
the following files are created:

-rw-r--r--   1 root root    0 Apr 26 20:27 db1.replog
-rw-r--r--   1 root root    0 Apr 26 20:27 db1.lock
-rw-r--r--   1 root root  969 Apr 26 20:29 db2.replog
-rw-r--r--   1 root root    0 Apr 26 20:29 db2.replog.lock

Note: The size of the first replog is zero and the second not...

In the slave side, only the first database was replicated...

Had someone this problem?

Thanks in advance,

-- 
Daniel Kobayashi Imori
Bastion Systems
Information Security
daniel@bastion.com.br

Attachment: signature.asc
Description: This is a digitally signed message part