slapd.conf for replica should look like this ( I think)
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://ADDRESS-OF-MASTER:389
##################################
Joe Morin
Alex Franko
Sent by: owner-openldap-software@OpenLDAP.org
10/22/2004 04:55 PM
To
openldap-software@OpenLDAP.org
cc
Subject
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_perror
ldap_add: Referral (10)
referrals:
ldap://localhost:389/o=myorg,c=US
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:
slapd -h ldap://localhost:389 - for Master
slapd -h ldap://localhost:9010 - for Replica
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!
CONFIDENTIALITY NOTICE: This e-mail, including attachments, is for the sole use of the individual to whom it is addressed. This message is confidential and may contain information that is privileged, confidential and is exempt from disclosure under applicable law. Any unauthorized review, use, disclosure or distribution is prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail and destroy this message and its attachments.