LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2005, 04:52 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
OpenLDAP Replication Master\Slave


hi there,

i'm trying to get OpenLDAP Replication working between two servers the information about current openldap setup of the network is as follows

Master = fedora.directory.server
base = dc=fedora,dc=directory,dc=server
slave

Slave = rhel.directory.server
base = dc=fedora,dc=directory,dc=server
master

can someone please help me out, what am i doing wrong? what do i need? i'm almost sure it's the slave configuration, does anyone have any configuration files that they have already setup?

Master /etc/openldap/slapd.conf

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/samba.schema

allow bind_v2

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

database bdb
suffix "dc=fedora,dc=directory,dc=server"
rootdn "cn=Manager,dc=fedora,dc=directory,dc=server"
rootpw {SSHA}diiNsDR8wERa2urlW2dRR2X6EuDmEQCs

directory /var/lib/ldap

index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub

replica host=rhel.directory.server
binddn="cn=Manager,dc=fedora,dc=directory,dc=server"
bindmethod=simple
credentials=password
replogfile /var/log/replog

Slave /etc/openldap/ldap.conf

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/samba.schema

allow bind_v2

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

database bdb
suffix "dc=fedora,dc=directory,dc=server"
rootdn "cn=Manager,dc=fedora,dc=directory,dc=server"
rootpw {SSHA}6+SLcOSV7FjxVusCmOd/daP7cys6ERaV

directory /var/lib/ldap

index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub

updatedn "cn=Manager,dc=fedora,dc=directory,dc=server"
updateref fedora.directory.server
 
Old 12-22-2005, 10:50 AM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
make sure /var/log/replog is writable by ldap user
 
Old 12-22-2005, 03:51 PM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
okay, on both machines master/slave?
what is my ldap user?
do you know if my slave conf is right?
 
Old 10-18-2006, 07:37 AM   #4
jitender.rajpal
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
Hi,

u have to define replication port in slave conf file also, like this:

updateref fedora.directory.server:389 or 636

Hope it will works for u !!!!!!!
 
  


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
ldap replication master - slave jadid Linux - Software 2 10-18-2006 11:25 AM
openldap replication master/slave slapd.conf paul_mat Linux - Networking 1 11-30-2005 01:54 PM
Master image replication? rbonafied Mandriva 6 10-05-2005 03:09 PM
Webserver file replication (master and slave) demetri007 Linux - Software 1 08-21-2004 09:07 AM
Slave to Master? s9722 Linux - General 6 02-23-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 PM.

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