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

problem with replication of ldap



hello group,
i am trying to setup a replication server test bed for ldap where data can be propagated from one machine to another so that all people in the organization can see view the records. for this purpose i created two ldap servers running on 192.168.60.193, and 192.168.61.132 respectively.


rootdn of the master is o=virtualOffice
rootdn of the slave is ou=Computer Science,o=virtualOffice

when ever an entry is added or modified in the organization unit 'Computer Science' i want that data to be updated in the master ldap server (o = virtualOffice)

my slapd.conf file for master ldap server(192.168.60.193) is shown below

# Sample Access Control
access to *
        by dn="cn=Manager,ou=Computer Science,o=virtualOffice" write
        by * read
access to *
        by dn="ou=Computer Science,o=virtualOffice" write
        by * read
access to *
        by dn="o=virtualOffice" write
        by * read

#######################################################################
# ldbm database definitions
#######################################################################

database	ldbm
suffix		"o=virtualOffice"
rootdn		"o=virtualOffice"
rootpw	secret
directory	/var/lib/ldap/virtualCampus
# Indices to maintain
index	cn,sn,st					pres,eq,sub
replogfile      /var/lib/ldap/replica/slurpd.replog
replica	host=192.168.61.132:389
	binddn="o=virtualOffice"
      bindmethod=simple
      credentials=secret

i can see entries in replicalogfile

my slapd.conf file for slave(192.168.61.132) ldap server is shown below

# Sample Access Control
access to *
	by dn="cn=Manager,ou=Computer Science,o=virtualOffice" write
	by * read
access to *
        by dn="ou=Computer Science,o=virtualOffice" write
        by * read
access to *
        by dn="o=virtualOffice" write
        by * read

#######################################################################
# ldbm database definitions
#######################################################################

database	ldbm
suffix		"ou=Computer Science,o=virtualOffice"
rootdn		"cn=Manager,ou=Computer Science,o=virtualOffice"
rootpw	secret
index	cn,sn,st pres,eq,sub
updatedn   "o=virtualOffice"
updateref  uri=ldap://192.168.60.193:389/


when i try to update the slave i get the following message

# ldapadd -xv -D "cn=Manager,ou=Computer Science,o=virtualOffice" -W -f testlidf.lidf -h 127.0.0.1

ldap_init( 127.0.0.1, 0 )
Enter LDAP Password:
add ou:
Computer Science
add objectClass:
top
organizationalUnit
add description:
Members of Computer Science
adding new entry "cn=Manager,ou=Computer Science,o=virtualOffice"
ldap_add: Referral
ldif_record() = 10


why is the referal not being displayed? what mistake did i do?
can anyone point me in the right direction?

Thanks in advance
gkgodava