| Marc Girod 2007-07-30, 1:20 pm |
| Hi,
> 1) Can a machine be a client for both nis & nisplus servers i.e. can one
> machine accept logins of both nis & nisplus users
I don't know.
I'd try it, i.e. in /etc/nsswitch.conf:
passwd: files nisplus nis
> 2) How do I discover if I machine is a client for nis or not?
domainname: returns your domain name
> 3) How do I discover if I machine is a client for nisplus or not?
You can at least check whether it is nis (aka v 2):
ypwhich -V 2
I guess 'nisswitch -V 3' should work in the same way...
> 4) If a machine is a client for a NIS server, how do I discover what's the
> server name?
ypwhich: returns the name of your server (currently bound, I guess)
> 5) If a machine is a client for a NIS+ server, how do I discover what's
> the server name?
nisswich
> 6) Can the same machine point to 2 different NIS servers?
Yes. From man 8 ypbind (describing /etc/yp.conf):
domain nisdomain server hostname
Use server hostname for the domain nisdomain. You
could have
more then one entry of this type for a single domain.
> 7) Can the same machine point to 2 different NIS+ servers?
I guess so.
Marc
|