[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
OpenLDAP Replication
I'm relatively new in OpenLDAP and need your help to solve the problem
with OpenLDAP replication.
Here is my problem description:
I'm using openldap-2.1.30.
I'm trying to write to Replica(Slave) and I'm expecting that Replica will return referral
to Master. The Client (oldap32.lib) will automatically resend update request to the Master and Master will update its database, write the updates to the Replog file and SLURPD will bind to Replica and update Replicas database.
But this mechanism is broken at the beginning. The Client receives referral, and exits with the error message:
*****************************************
ldap_unbind
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_send_unbind;
...
*******************************************
SLAPD.CONF for Master:
###########################
database bdb
suffix "o=myorg,c=US"
rootdn "cn=Mgr,o=myorg,c=US"
rootpw secret
directory C:\\DATA\\Master
replogfile C:\\DATA\\Master\\slapd.replog
replica host=ldap://localhost:9010
binddn="cn=Replica,o=myorg,c=US"
bindmethod=simple
credentials=secret
###############################
SLAPD.CONF for Replica:
###############################
database bdb
suffix "o=myorg,c=US"
directory C:\\DATA\\Replica\\
rootdn cn=Mgr,o=myorg,c=US
rootpw secret
updatedn cn=Replica,o=myorg,c=US
updateref
ldap://localhost:389
##################################
The commands that I'm running:
and
ldapmodify -a -x -h localhost:9010 -D "cn=Mgr,o=myorg,c=US" -w secret -f data.LDIF ;
Could you please help me?
May be I misunderstood the documentation and my expectation that Client should
automatically redirect request to the Master is wrong?
Or may be someting wrong with my CONF files?
Thank you in advance,
Alex.
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!