- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how can I differentiate b/w LDAP master/client...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 05:09 AM
тАО05-25-2010 05:09 AM
I am on a linux server, and I am aware that there are few users are from ldap service, not a local one.
My doubt here is
1) How can I understand, which is the master LDAP server of this?
2) (or) probably, how can I differentiate b/w LDAP master/client servers?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 01:44 PM
тАО05-25-2010 01:44 PM
Re: how can I differentiate b/w LDAP master/client servers?
Check the uri or host definition in /etc/ldap.conf
2) (or) probably, how can I differentiate b/w LDAP master/client servers?
Maybe you are trying to identify if a user is on the passwd database or ldap database
# getent -s files passwd
# getent -s ldap passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 05:12 PM
тАО05-25-2010 05:12 PM
Solution1- LDAP server can be either master or slave. The master LDAP server is one who can modify DB and push changes to the slaves. The slave LDAP server can NOT modify any entry in LDAP DB
2- /etc/ldap.conf file usually will have URL pointing to one or more LDAP servers. If more than one address is configured in /etc/ldap.conf, the requests will be sent to the first responding one. They are only for fail over, not for load balancing.
3- I am not sure whether LDAP client can distinguish between master and slave LDAP servers.
4- first, check /etc/nsswitch file to understand in waht order user data is accessed, for instance:
--
passwd: files ldap nis
shadow: files ldap nis
group: files ldap nis
---
means 1st from /etc/passwd, then from LDAP and finally from NIS.
5- when in doubt, check whether user is in your local /etc/passwd file, then in LDAP
ldapsearch -x -h
or
ldapsearch -x -h
OB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2010 01:53 AM
тАО05-26-2010 01:53 AM
Re: how can I differentiate b/w LDAP master/client servers?
Well spotted. Thanks. Points are given.
One more doubt.
Now I found the master LDAP server, thanks for this.
1) How can I find the list of LDAP client servers from the master server?
2) Also very strange that, on one of the LDAP client server, I unable to see startup script in /etc/init.d
but i see the appropiate entry in /etc/nsswitch.conf
passwd: files ldap
Please advise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2010 03:06 AM
тАО05-26-2010 03:06 AM
Re: how can I differentiate b/w LDAP master/client servers?
For more information on LDAP, refer the following link -
http://tldp.org/HOWTO/html_single/LDAP-HOWTO/
http://linux.about.com/library/cmd/blcmdl5_ldap.conf.htm
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2010 10:10 AM
тАО05-26-2010 10:10 AM
Re: how can I differentiate b/w LDAP master/client servers?
look for the file
/etc/openldap/slapd.conf
toward the end..
------------
replica host=
...
replica host=
...
replica host=
------------
2) Also very strange that, on one of the LDAP client server, I unable to see startup script in /etc/init.d
but i see the appropiate entry in /etc/nsswitch.conf
NSSWITCH file just tells you in what order find user information. If it lists LDAP, that only means check with LDAP for user information. It does NOT imply that LDAP has to be locally running.
/etc/init.d is just recommendation for administrator, it is not mandatory to have start file there. LDAP can be started from anywhere else or manually. Make sure it is running on this box.
OB