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

OpenLDAP: slave is not being updated by master and replog is empty



I am working in a test environment to construct a SAMBA / LDAP domain for windows clients. There is a PDC with OpenLDAP server 2.3.35 and SAMBA 3.026 running on ubuntu server 7.10.

The PDC is functioning; I am able to create users and login with them, as well as join workstations to the domain. The slave slapd was populated with an output from an ldif file that was exported from the master via:

slapcat -l >> master.ldif

I had entered the 'replica' line in the master-slapd, and the updatedn and updateref lines in the slave-slapd as stated in 14.4 in the OpenLDAP 2.3 admin's guide. The 'openldap' user has rights to the replog file.

Problem 1) The master (dc01-ubuntu.example.local) is not updating the replog file with either a success or failure.

Problem 2) The slave (bdc01-ubuntu.example.local) is not getting updates from the master when changes occur.

I am relatively new to LDAP and I might be missing something core. I have the OpenLDAP admin guide printed out and I am referring to it, but I believe I had entered the lines as the book instructed.

Attached are my master-slapd.conf and slave-slapd.conf files. Again, this is a test environment for now. I understand the current setup is not secure. What I would like to achieve is a working PDC -> BDC replication.

When I start slapd on the master i get:Starting OpenLDAP: slapd slurpd.
with no errors.

When I start slapd on the slave I get : Starting OpenLDAP: slapd
with no errors.

master-slapd.conf

include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include		/etc/ldap/schema/samba.schema
include		/etc/ldap/schema/misc.schema

pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args
loglevel        0
modulepath	/usr/lib/ldap
moduleload	back_bdb
sizelimit 500
tool-threads 1
backend		bdb
checkpoint 512 30
database        bdb

suffix "dc=example,dc=local"
rootdn "cn=admin,dc=example,dc=local"
rootpw 12345 

replica uri=ldap://bdc01-ubuntu.example.local:389
        binddn="cn=admin,dc=example,dc=local"
        credentials=12345
        bindmethod=simple
        tls=no

replogfile /var/log/replog.bdc01-ubuntu.example.local


directory       "/var/lib/ldap"
dbconfig set_cachesize 0 2097152 0
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
index           objectClass eq
lastmod         on
access to attrs=userPassword,sambaNTPassword,sambaLMPassword
        by dn="cn=admin,dc=example,dc=local" write
        by anonymous auth
        by self write
        by * none

access to dn.base="" by * read

access to *
        by dn="cn=admin,dc=example,dc=local" write
        by * read


-------------------------
slave slapd.conf


include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include		/etc/ldap/schema/samba.schema
include		/etc/ldap/schema/misc.schema

pidfile         /var/run/slapd/slapd.pid

argsfile        /var/run/slapd/slapd.args

loglevel        0

modulepath	/usr/lib/ldap
moduleload	back_bdb

operation
sizelimit 500

tool-threads 1

backend		bdb
checkpoint 512 30

database        bdb

### slurpd
updatedn "cn=admin,dc=example,dc=local"
updateref	ldap://dc01-ubuntu.example.local


suffix dc=example,dc=local
rootdn cn=admin,dc=example,dc=local
rootpw 12345

directory       "/var/lib/ldap"

dbconfig set_cachesize 0 2097152 0

dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500

index           objectClass eq

lastmod         on

access to attrs=userPassword,sambaNTPassword,sambaLMPassword
        by dn="cn=admin,dc=example,dc=local" write
        by anonymous auth
        by self write
        by * none

access to dn.base="" by * read

access to *
        by dn="cn=admin,dc=example,dc=local" write
        by * read


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ