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

Re: Replication Question over OPenldap



Hi

Puneet Singh wrote:

hi ,

i have posted this question befor also , but i have not achieved any succes in this direction, I m trying to establish a single master-slave relation. both slapd server are running on linux 7.1

The Master openldap server is 2.0.25, The slave slapd serve is 2.14

I have copied the master database(ldbm) files to slave using slapcat and slapadd

given by openldap.

Not sure this is the "right thing to do". A lot of things have changed in 2.1.x about schema checking. You may be able to import your data in the DB file but I hardly believe you can search them using ldap tools (unless your previous schema satisfied all the constraints)

The changes I have made to master slapd.conf files are

........

database ldbm

cachesize 10000
dbcachesize 100000

suffix "o=emp"
directory       /opt/openldap/var/emp

rootdn "cn=Manoj,ou=admin,o=emp"
rootpw delta

replogfile /opt/openldap/var/emp-replica/emp.replog
replica host=150.108.3.41:389
binddn="cn=Manoj,ou=admin,o=emp"
bindmethod=simple credentials=secret


Well, you should at least use the correct password here (delta not secret). BTW, it's not advisable to use the same dn both for rootdn and updatedn but this is another matter.

..............

The changes i have made to slave slapd.conf files are

database ldbm

cachesize 10000
dbcachesize 100000

suffix "o=emp"
directory       /opt/openldap/var/emp


rootdn "cn=Manoj,ou=admin,o=emp" rootpw delta

referral ldap://150.108.3.167:389 <ldap://150.108.3.167:389/>
updatedn "cn=Manoj,ou=admin,o=emp"


..................

My slurpd which is running at the master end , i m passing the fillowing

command

slurpd -r /opt/openldap/altreplog/altemp.replog -f masterslapd.conf file

the replog directive that i have specified in master slapd conf file does not seem to work, the alternative replication log file is created .

You are forcing slurpd to use another replog file using the -r command-line switch. Try removing the -r switch.



I am using ldapmodify tool  provided by openLdap to modify an entry

but it did not seem to wrk properly, though the entry is modified at master end

but the slave is not updated. The following info is parsed in the alternate logfile

ie

replica: 150.108.3.41:389
time: 1034048796
dn: cn=Puneet Singh,ou=test,c=in,o=escoemp
changetype: modify
replace: title
title:: dHJhbiA=
-
replace: initials
initials: ps
-
replace: uid
uid: puneets
-
replace: mobile
mobile: 9198

Onething more it creates slurpd.status file under replica directory under openldap-slurp directory by its own (/opt/openldap/var/openldap-slurp/replica/slurpd-status)

when i start slurpd on master with debug leve 4 it gives a message

Config: ** configuration file successfully read and parsed
No status file found, defaulting values
begin replication thread for 150.108.3.41:389

*************

Can anybody tell me what am i doing wrong

greetings

Puneet


------------------------------------------------------------------------
Do you Yahoo!?
Faith Hill <http://faith.yahoo.com> - Exclusive Performances, Videos, & more
faith.yahoo.com <http://faith.yahoo.com>