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

Re: using syncrepl for master slave relationship not working



Howard Chu wrote:

Read the 2.3 Admin Guide. The provider configuration in 2.3 is not identical to 2.2, as I've mentioned here a number of times.

Omar Al-Tabari wrote:

Ok, so i've removed that comment, and after runnign both consumer and provider this is what i got:
provider output with debug level 256:
*************************************
conn=36 fd=10 ACCEPT from IP=172.16.5.108:1078 (IP=0.0.0.0:389)
conn=36 op=0 BIND dn="cn=manager,dc=ldaptest,dc=batelco,dc=jo" method=128
conn=36 op=0 BIND dn="cn=Manager,dc=ldaptest,dc=batelco,dc=jo" mech=SIMPLE ssf=0
conn=36 op=0 RESULT tag=97 err=0 text=
conn=36 op=1 SRCH base="dc=ldaptest,dc=batelco,dc=jo" scope=2 deref=0 filter="(objectClass=*)"
conn=36 op=1 SRCH attr=* structuralObjectClass entryCSN
conn=36 op=1 SEARCH RESULT tag=101 err=53 nentries=0 text=control unavailable in context
conn=36 op=2 UNBIND
*************************************


consumers output with debug level 256:
************************************
request 2 done
request 1 done
request 2 done
request 1 done
request 2 done
request 1 done
request 2 done
***********************************

both sections are repeated endlessly.
any clue?
and still nothing shows on the phldapadmin on the consumer side!
Thank you in advance.




now i've read the 2.3 manual and here's what i added to my slapd.conf:

index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub
index sambaSID                  eq
index sambaPrimaryGroupSID      eq
index sambaDomainName           eq
index entryUUID,entryCSN        eq

overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100

and i've also updated my consumers slapd.conf:

syncrepl rid=123
               provider=ldap://ldaptest.batelco.jo:389
               type=refreshOnly
               interval=00:00:01:00
               searchbase="dc=ldaptest,dc=batelco,dc=jo"
               filter="(objectClass=*)"
               scope=sub
               attrs="*"
               schemachecking=off
               bindmethod=simple
               binddn="cn=manager,dc=ldaptest,dc=batelco,dc=jo"
               credentials=secret

what i got from my providers side when i run the provider and the consumer is this:

conn=1 fd=13 ACCEPT from IP=172.16.5.108:2071 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn="cn=manager,dc=ldaptest,dc=batelco,dc=jo" method=128
conn=1 op=0 BIND dn="cn=Manager,dc=ldaptest,dc=batelco,dc=jo" mech=SIMPLE ssf=0
conn=1 op=0 RESULT tag=97 err=0 text=
conn=1 op=1 SRCH base="dc=ldaptest,dc=batelco,dc=jo" scope=2 deref=0 filter="(objectClass=*)"
conn=1 op=1 SRCH attr=* structuralObjectClass entryCSN
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1 op=2 UNBIND
conn=1 fd=13 closed
conn=2 fd=13 ACCEPT from IP=172.16.5.108:2076 (IP=0.0.0.0:389)
conn=2 op=0 BIND dn="cn=manager,dc=ldaptest,dc=batelco,dc=jo" method=128
conn=2 op=0 BIND dn="cn=Manager,dc=ldaptest,dc=batelco,dc=jo" mech=SIMPLE ssf=0
conn=2 op=0 RESULT tag=97 err=0 text=
conn=2 op=1 SRCH base="dc=ldaptest,dc=batelco,dc=jo" scope=2 deref=0 filter="(objectClass=*)"
conn=2 op=1 SRCH attr=* structuralObjectClass entryCSN
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=2 UNBIND
conn=2 fd=13 closed


as i have said earlier i already did a slapcat on the prvoder and a slapadd on the consumer so both of them should have the same directory, i've added some users to the provider using ldapphpadmin but they did not get copied to the consumer!
any suggestions please?


p.s: this is debug level 256, also the consumer only prints out the following two lines during the replication prcoess:
request 1 done
request 2 done