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

updateref ignored?




Having some problems setting up replication...

Basicly, although my master and slave ldap servers _appear_ to be configured correctly, replication is still not happening. I have both databases synchronized. (Thanks to Adam Williams for the assist and excellent documentation on this one!) I can add entries in either location, but when I do they are not replicated. No errors are reported at the time of the add on either the master or the slave.

The only thing I have going on in the configuration that might be unusual is the setup of multiple databases. But I'm at my whit's end on this. In all other ways both ldap instances appear to behave themselves quite nicely. As always, any help is greatly appreciated...


Here are the two config files:

----

slapd.conf on master slapd server:

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema


pidfile         //var/run/slapd.pid
argsfile        //var/run/slapd.args

# Create a replication log in /var/lib/ldap for use by slurpd.
replogfile      /var/lib/ldap/master-slapd.replog

#######################################################################
# ldbm database definitions
#######################################################################

# Primary DB
database ldbm
suffix "dc=abcsd,dc=schoolaccess,dc=net"
rootdn "cn=Manager,dc=abcsd,dc=schoolaccess,dc=net"
rootpw secret
directory /var/lib/ldap/abcsd
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial


# Example School District A DB
database ldbm
suffix "dc=distA,dc=schoolaccess,dc=net"
rootdn "cn=Manager,dc=distA,dc=schoolaccess,dc=net"
rootpw secret
directory /var/lib/ldap/distA
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial


# Example School District B DB
database ldbm
suffix "dc=distB,dc=schoolaccess,dc=net"
rootdn "cn=Manager,dc=distB,dc=schoolaccess,dc=net"
rootpw secret
directory /var/lib/ldap/distB
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial



####################################################################### # replication directives #######################################################################

# District A, Site A
replica host=24.237.9.216:389
        binddn="cn=Manager,dc=distA,dc=schoolaccess,dc=net"
        bindmethod=simple
        credentials=secret

# District A, Site B
#replica host=24.237.9.216:389
#        binddn="cn=Master,dc=distA,dc=schoolaccess,dc=net"
#        bindmethod=simple
#        credentials=secret

----

slapd.conf on slave slapd server:

----

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema


pidfile         //var/run/slapd.pid
argsfile        //var/run/slapd.args


####################################################################### # ldbm database definitions #######################################################################

# Example School District A DB
database ldbm
suffix "dc=distA,dc=schoolaccess,dc=net"
rootdn "cn=Manager,dc=distA,dc=schoolaccess,dc=net"
updatedn "cn=Manager,dc=distA,dc=schoolaccess,dc=net"
updateref "ldap://209.165.147.136";
rootpw secret
directory /var/lib/ldap/distA
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial


-----

//glw