LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2008, 07:17 AM   #1
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
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:
Code:
slapcat -l >> master.ldif
I had entered the 'replica' line in the master-slapd, and the updatedn and updateref lines in the slave-slapd. 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
Code:
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
Code:
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

### slurping
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
 
Old 04-19-2008, 10:49 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
try starting the replicant in debug mode and see where the errors are.
http://www.openldap.org/doc/admin24/...Line%20Options

make sure you use the -f, -u, and -d flags to make sure you are running like the daemon does.

Last edited by frndrfoe; 04-19-2008 at 10:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP Replication Master\Slave paul_mat Linux - Networking 3 10-18-2006 07:37 AM
OpenLDAP master / slave setup sunhui Linux - Security 0 10-02-2006 09:51 PM
Master and slave? Siiiiiii Linux - Hardware 4 05-27-2006 03:53 PM
openldap replication master/slave slapd.conf paul_mat Linux - Networking 1 11-30-2005 01:54 PM
Slave to Master? s9722 Linux - General 6 02-23-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration