[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
syncrepl (refreshAndPersist) consumer cannot reconnect after provider
Hi!
My slapd consumer server uses syncrepl to connect with provider server.
I use refreshAndPersist mode, and everything works fine until I stop and start a
gain my provider server.
Then my consumer server looses connection and cannot reconnect to provider serve
r.
Description:
1) I start provider slapd.
2) I start consumer slapd
Now everything works fine. All changes from provider to consumer are replicated
.
Connection is ESTABLISHED between two machines sockets (netstat -an).
3) I stop provider slapd.
There is _NO_ ESTABLISHED socket connection between two servers.
My consumer slapd log says:
connection_get(15)
connection_get(12)
do_syncrep2 : Can't contact LDAP server
connection_get(12)
4) I start provider slapd once again.
There is still _NO_ ESTABLISHED socket connection, (even after 5 minutes despit
e of 20sec interval set)
Now everything what I update on provider is NOT replicated.
My consumer slapd log repeats after search command::
connection_get(12)
...
5) Now if I restart consumer slapd everything works fine.
Connection is ESTABLISTHED (netstat -an).
My configuration:
FreeBSD 5.2.1-RELEASE & 6.0-CURRENT
openldap-sasl-client-2.2.15
openldap-sasl-server-2.2.15
db42-4.2.52_3
provider slapd.conf:
sessionlog 123 200
consumer (replica) slapd.conf:
syncrepl rid=123
provider=ldap://server:389
type=refreshAndPersist
interval=00:00:00:20
searchbase="dc=internal,dc=net"
scope=sub
updatedn="cn=Manager,dc=internal,dc=net"
bindmethod=simple
binddn="cn=Manager,dc=internal,dc=net"
credentials=secret
If you know how to solve it,
please let me know.
Is it somehow possible to automaticaly apply changes from my slave server to mas
ter slapd server, after master being out of services.
Or automatically apply changes between two slapd servers eg some users change 1s
t server, some users change data on 2nd server, but I want two have identical di
rectory databases on both servers.
If it is not possible to do with openldap, where can I find it?
Best,
Pawel Wieleba