1825720 Members
3160 Online
109686 Solutions
New Discussion

Another NIS question

 
SOLVED
Go to solution
Tim Rolling
Advisor

Another NIS question

Do applications need to be aware of NIS/NIS+?

Are there any complications resulting from the use of NIS/NIS+?

With NIS/NIS+ in place, can I select alternate authentication mechanisms using PAM?
Things are never as bad nor as good as you imagine.
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Another NIS question

Well written applications will work transparently. Services/hosts/users will be acquired from the appropriate map. The underlying functions like gethostbyname(), getpwnam(), ... all work transparently. The typical problems occur in scripts which simply read /etc/passwd without first determining is this is an NIS client.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: Another NIS question

S.K. Chan
Honored Contributor

Re: Another NIS question

I'll just answer #3 since to make it complete ..
Yes you can, PAM is and NIS+ is compatible though we know NIS+ uses LDAP. From HP-UX 10.20 onwards PAM is included by default if you install CDE. The method or choice of authentication depends on how /etc/pam.conf is configured.
Shannon Petry
Honored Contributor

Re: Another NIS question

In addition to what others have stated, to fix MOST(term used loosely) applications ensure 2 things.
1. Make sure that /etc/nsswitch.conf has nisplus listed

2. add the dummy string to /etc/passwd and group.
I.E.
echo "+::0:0:::" >>/etc/passwd
echo "+::0:" >>/etc/group

Best of luck!
Shannon
Microsoft. When do you want a virus today?