Pierangelo Masarati wrote:
Hello!
This is first time I'm trying to do syncrepl...
And I get just:
failed to add syncinfo /etc/openldap/slapd.conf: line 162: <syncrepl> handler exited with 1! slapd stopped.
Config:
syncrepl rid=1 provider=ldap://backup.p98.belkam.com:389 type=refreshOnly interval=00:00:10:00 searchbase="o=Aspec,c=RU" filter="(objectClass=belkamAccount)" scope=sub attrs="dn,cn,sn,uid,email" schemachecking=off bindmethod=simple binddn="uid=admin,ou=People,o=Aspec,c=RU" credentials=eeadewewe
How can I find what is wrong?
Use -d -1 and read the output. I bet "dn" (and likely "email") is not defined as attribute description.
Thank you!
This was "dn". Now it starts, but replication doesn't work. Looks like I didn't created databases correctly. I used slapadd -w -l lfid on both hosts.
Now I see in log only put_filter: "(objectClass=belkamAccount)" put_filter: simple put_simple_filter: "objectClass=belkamAccount" ldap_send_initial_request ldap_send_server_request ber_scanf fmt ({it) ber: ber_scanf fmt ({) ber: ber_flush: 221 bytes to sd 15 =>do_syncrep2 ldap_result ld 0x82e580 msgid -1 ldap_chkResponseList ld 0x82e580 msgid -1 all 0 ldap_chkResponseList returns ld 0x82e580 NULL