[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NIS+netgroups and RedHat 5.2
On Mon, 4 Jan 1999, Alex Shnitman wrote:
Nope, that is not the answer. If you change that, and have your
nsswitch.conf set as
passwd: files compat
shadow: files compat
group: files compat
passwd_compat: nis
shadow_compat: nis
group_compat: nis
It wont see netgroups.
If you add nis to passwd and group, then it works, but then everyone can
connect to the machine regardless of the netgroup.
--Ariel
> Ariel Biener writes:
>
> > >> I am having problems convincing RedHat 5.2 to behave the way all other
> > >> Unix machines behave, when NIS is concerned.
> > >
> > > I had the exact same problem in college a couple of months ago. What's
> > > the OSof the NIS server? Is it SunOS by any chance?
> >
> > The NIS master is SunOS. I am bound against one of the NIS slaves, Solaris
> > 2.6.
>
> Wonderful. When I stumbled against that problem, I went to search
> DejaNews, and found someone asking the exact same question. There was
> no good answer on DejaNews though, so I e-mailed the guy who asked the
> question and asked him whether he solved the problem somehow. He did,
> and the solution is a slight modification and rebuild of a tiny part
> of glibc, namely libnss_nis.so. Here's what he wrote me:
>
>
> Hello Alex,
>
> yes, I got the problem solved by Thomas Kukuk, a Linux-NIS-Guru.
> There are 3 errors in the glibc2 NIS-Source.
>
> The fix is easy and simple: In libc/nis/nss_nis/nis-pwd.c
> you have to change all 3 appearences of
> encrypted != NULL
> inside an if-clause to
> encrypted == NULL .
>
> Maybe You have a version, where 2 of them are already fixed.
> In the newer versions of glibc2 this problem should already be fixed.
>
> We don't have the problem with the Linux-NIS-client anymore.
>
> Perhaps You can give me a note, if it works for You, too.
>
> Greetings
> Thomas
>
> --
> -------------------------------------------------------------------------------
> Thomas Leineweber
> email: leineweb@ls6.informatik.uni-dortmund.de
> -------------------------------------------------------------------------------
>
>
>
> --
> Alex Shnitman
> alexsh@linux.org.il UIN 188956
> http://members.xoom.com/alexsh-- PGP key here
> http://www.debian.org-- and the OS here
>
+---------------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac.il Work phone: 03-6406086 |
| fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
+---------------------------------------------------------------+