How to find out which server is LDAP/NIS master?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to find out which server is LDAP/NIS master?
# 1  
Old 10-19-2016
How to find out which server is LDAP/NIS master?

I have some scripts where I go and do some LDAP/NIS queries to report on users on Unix servers. What I am trying to figure out is, how do I know which server is the LDAP? The configs have been in place long before I took over so was hoping someone had some insight on how to figure this out. I must admit it has been quite some time since I have touched either, but for the life of me can't remember which files to check to figure this out.

I do know that for NIS I can use the "ypwhich" command to figure out which is the master device and then compare it to the local hostname, what I can't figure out is how to do something similarly slick in the LDAP world.

Last edited by dagamier; 10-19-2016 at 11:16 AM..
# 2  
Old 10-20-2016
What OS are you using?
And what LDAP client does the system use?

You could just look at the configuration file, to know which servers the LDAP client uses. If the LDAP client software is configured to perform a permanent bind you could also look at netstat to see which servers are being communicated with on ports 389/tcp and 636/tcp.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

2. Red Hat

Yppasswdd not running on nis master server

Goodmorning i am preparing Nis for my test lab.Running Redhat 5.4 on master and centos for my client.Master server running portmap,ypserv,yppasswdd and client running portmap,ypbind and ypxfrd. ypcat and other yp commands are running fine frm client.But when i try yppasswdd on client to change... (1 Reply)
Discussion started by: Vaibhav.T
1 Replies

3. HP-UX

NIS Master and Client problem

I have a NIS Master server and NIS Clients. But when I started the service all the process and files that should be owne by root apper by the owner 0 This is an example 0 1709 1708 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1710 1709 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1708 1 0 10:06:10 ? 0:00... (2 Replies)
Discussion started by: GCSG
2 Replies

4. Solaris

Error while configuring NIS master

Hello - I have a Solaris machine, which I would like to configure as NIS master. When I run the command /usr/sbin/ypinit -m, I see below output. I am enclosing them in tags. /usr/sbin/ypinit -m In order for NIS to operate sucessfully, we have to construct a list of the NIS servers. Please... (1 Reply)
Discussion started by: manju--
1 Replies

5. Solaris

Problem while setting NIS master on Solaris 10

Hi All, I get below error while running cd /var/yp /usr/sbin/ypinit -m Error Code - 1 updated netmasks make : warning : target all not remade because of errors current working dir /var/yp *** error code 1 *** make : fatal error : command failed for target 'k' error running... (4 Replies)
Discussion started by: naw_deepak
4 Replies

6. UNIX for Advanced & Expert Users

NIS+ to LDAP

After months of threats, we're finally migrating servers from NIS+ to LDAP. :eek: I'm happy using niscat, nisgrep etc and now it seems I have to use ldapsearch which is far from being a simple CLI! Are there any easy (easier?) ways to interrogate the LDAP directory? :confused: Jerry (2 Replies)
Discussion started by: JerryHone
2 Replies

7. UNIX for Advanced & Expert Users

Moving NIS master to new machine

I am running a DNS/NIS server on and older 2.6 system. I would like to move it to a newer system running Sol9. I have not found a good HOWTO and was looking for some advice. Thanks in advance. Dave (4 Replies)
Discussion started by: dlalonde
4 Replies

8. UNIX for Advanced & Expert Users

NIS master / slave problems

Our NIS master server went down. We have since fixed it and brought it back up. However all of are machines still point to the slave server when looking at it with ypwhich. My question is how do i point the servers back to the master. Frank (2 Replies)
Discussion started by: frankkahle
2 Replies

9. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave. We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation. However, no matter what i do, the SUSE machines will not talk to the NIS Servers. If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies

10. UNIX for Dummies Questions & Answers

ldap replacement NIS

Hi, I am a solaris administrator who is currently working in a solaris 2.6,7,8,9 environment. We are using NIS for centralised account authentication, groups, host name resolution and most importantly automounting. NIS , over the last few months has been rearing its notorious ugly head, and to be... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
Login or Register to Ask a Question