LinuxQuestions.org
Help answer threads with 0 replies.
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-19-2012, 02:45 PM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
openldap replication... Is this possible?


I am new to openldap/slapd never really worked with it but I need to configure a replication setup and this is how I would like to do it:

1 master server, with multiple containers. multiple slave servers that each replicate a specific container from the master (not all).

Is this possible to do? If so which replication scheme should I be looking at? I see multiple ways to do replication but none that really get into the gritty details of what I am looking to do.

I'm thinking slurpd might be able to do this but I dont see anything specifically stating that it will or wont.
 
Old 04-19-2012, 05:24 PM   #2
danliston
LQ Newbie
 
Registered: Feb 2012
Location: South Dakota
Distribution: Fedora, CentOS, Oracle, OpenSolaris
Posts: 18

Rep: Reputation: Disabled
This might only be a hint or a clue in your investigation, but I thought slurpd was supposed to be for replication in the open LDAP world.

Like you, I have never worked in this space, and have always used the Netscape/iPlanet/Sun(Oracle) DSEE to do split DB, multi-master, proxied replication. It was my understanding that Netscape LDAP was sold/given to RedHat, but not sure if that is the code base that has become the openLDAP standard.

It will be interesting to see where this thread goes.
 
Old 04-20-2012, 10:04 AM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by danliston View Post
This might only be a hint or a clue in your investigation, but I thought slurpd was supposed to be for replication in the open LDAP world.

Like you, I have never worked in this space, and have always used the Netscape/iPlanet/Sun(Oracle) DSEE to do split DB, multi-master, proxied replication. It was my understanding that Netscape LDAP was sold/given to RedHat, but not sure if that is the code base that has become the openLDAP standard.

It will be interesting to see where this thread goes.

Ill keep it updated then, so far I found I can only replicate from the DIT down so individual ou replication is not possible. Now onto figure out slapd configuration on centos 6 which is totally different then you standard slapd.conf configuration.
 
Old 04-24-2012, 05:35 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
FYI: what I was wanting is possible using snycrepl in a master/slave or provider consumer setup. This is all with openldap 2.4 using the old style config (that I have since converted to cn=config)

once the provider is setup the syncrepl statements (multiple statements) can be configured to allow syncing via a specific searchbase or with a filter parsing out the results you want to sync.

I went with this:
Code:
syncrepl rid=123
  provider=ldap://ldap-master
  type=refreshAndPersist
  searchbase="ou=container1,dc=yourdomain,dc=com"
  scope=sub
  schemachecking=off
  bindmethod=simple
  binddn="cn=Manager,dc=yourdomain,dc=com"
  credentials=supersecretpasword
  retry="10 3 100 3"

syncrepl rid=124
  provider=ldap://ldap-master
  type=refreshAndPersist
  searchbase="ou=containter2,dc=yourdomain,dc=com"
  scope=sub
  schemachecking=off
  bindmethod=simple
  binddn="cn=Manager,dc=yourdomain,dc=com"
  credentials=supersecretpassword
  retry="10 3 100 3"
Last for secrity, I created sync accounts for each of my containers so each one has a different account for keeping in sync.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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... nqk28703 Linux - Software 1 05-13-2011 03:03 AM
Openldap replication sunhui Linux - Networking 2 10-18-2006 07:24 AM
OpenLDAP replication.. sunhui Linux - Networking 0 10-02-2006 10:17 AM
OpenLDAP replication.. sunhui Linux - Software 0 09-11-2006 10:43 AM

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

All times are GMT -5. The time now is 09: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