LinuxQuestions.org
Review your favorite Linux distribution.
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 06-05-2015, 11:35 PM   #1
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Rep: Reputation: 15
Question OpenLdap configuration in RHEL6.4 as Master/Slave


Hi,

I have configured openldap server in rhel6.4, but need some clarity on
basedn and rootdn:

My domain is "test.org.in"

What may be the basedn and rootdn.

olcSuffix: dc=example,dc=com

olcRootDN: cn=root,dc=example,dc=com


I have followed following blog:

http://suresh-chandra.blogspot.in/20...client-on.html


Is this ok as master and slave configuration.

Kindly suggest.


Thanks,
Shankar
 
Old 06-07-2015, 10:50 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JATA01 View Post
Hi,
I have configured openldap server in rhel6.4, but need some clarity on basedn and rootdn:

My domain is "test.org.in" What may be the basedn and rootdn.

olcSuffix: dc=example,dc=com
olcRootDN: cn=root,dc=example,dc=com
..and the VERY FIRST HIT in Google for "openldap what is base dn" is:
http://www.openldap.org/faq/data/cache/63.html

...from the OpenLDAP documentation. It also explains what rootdn is too...start by reading their documentation. However, your question itself is very confusing, since you've been asking about LDAP for SIX YEARS now:
http://www.linuxquestions.org/questi...-a-4175415859/
http://www.linuxquestions.org/questi...-rhel6-920161/
http://www.linuxquestions.org/questi...ration-823890/
http://www.linuxquestions.org/questi...r-file-695773/

Should you be very familiar with the basic concepts by now?
Quote:
I have followed following blog:
http://suresh-chandra.blogspot.in/20...client-on.html
..which is two years old...
Quote:
Is this ok as master and slave configuration.
You tell us...IS IT OK??? You haven't actually said you're having a problem, or that things aren't working. If you want to know if it's ok, then TEST IT, and if you have a problem, post back with the details. And, since you're using Red Hat Enterprise, have you called Red Hat support????

Last edited by TB0ne; 06-11-2015 at 02:40 PM.
 
1 members found this post helpful.
Old 06-11-2015, 05:09 AM   #3
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Rep: Reputation: 0
The content of the blog explain how to setup, configure and use a standalone ldap server.
 
Old 06-11-2015, 05:13 AM   #4
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Rep: Reputation: 0
About olcSuffix and olcRootDN

Is current that use dc=example,dc=com for explain how to configure a ldap tree, but in this case, your suffix must be dc=test,dc=org,dc=in
and olcRootDN must be cn=Manager,dc=test,dc=org,dc=in

hope that this will help you.
 
Old 06-11-2015, 07:02 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i am starting to wonder is there are a bunch of offices with " Sticky-notes" posted for
LinuxQuestions username = ????????????
LinuxQuestions password = ????????????

and EVERY "new employe " in the office posts using it
 
Old 06-11-2015, 11:27 PM   #6
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Thanks,

I have configured master/client.
Now want to configure slave server.

Can you please let me know the detailed steps.
and also want to configure openldap browser.


Thanks,
Shankar
 
Old 06-12-2015, 08:50 AM   #7
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Rep: Reputation: 0
1) Create a user in your ldap tree, will be used for replication betwren master and slave.
Example : cn=replicator,dc=test,dc=org,dc=in

2) modify master configuration for use a overlay: syncrepl
Add:
overlay syncprov
syncprov-checkpoint 5 10
syncprov-sessionlog 123

3) On the slave :
Add:
syncrepl rid=123
provider=ldap://<ip address of master>:389
type=refreshOnly
interval="00:00:30:00"
retry="60 +"
searchbase="dc=test,dc=org,dc=in"
filter="(objectClass=*)"
scope=sub
attrs="*,+"
schemachecking=off
updatedn="cn=replicator,dc=test,dc=org,dc=in"
bindmethod=simple
binddn="cn=replicator,dc=test,dc=org,dc=in"
credentials=secret

updateref ldap://<ip address of master>
 
Old 06-12-2015, 09:23 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JATA01 View Post
Thanks,

I have configured master/client.
Now want to configure slave server.

Can you please let me know the detailed steps.
and also want to configure openldap browser
So, despite working with ldap for six years, and knowing the LQ rules, you still come and ask someone to look something up for you, and spoon feed you 'steps?

How about you read the documentation, and come back with a specific question?
 
  


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
CentOS 6 OpenLDAP Master/Slave HOWTO loadedmind Linux - Server 3 07-30-2014 10:57 AM
how to promote openldap slave server to master invincible General 1 05-30-2012 09:36 PM
OpenLDAP: slave is not being updated by master and replog is empty soylentgreen Linux - Server 1 04-19-2008 10:49 AM
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

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

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