Re: Patch: netgrp can't handle splitted NIS groups

Thorsten Kukuk <[email protected]> Fri, 8 Jul 2005 17:50:21 +0200
Newsgroups gmane.linux.pld.shadow.general
Organization SuSE Linux Products GmbH, Nuernberg, Germany
Message-ID <[email protected]>
On Fri, Jul 08, Tomasz Kłoczko wrote:

> On Fri, 8 Jul 2005, Thorsten Kukuk wrote:
> 
> >On Fri, Jul 08, Christian Mudra wrote:
> >
> >>Hi,
> >>
> >>today I found out, that newgrp doesn't handle splitted NIS groups 
> >>correctly.
> >>I've checked several implementations of newgrp (shadow, util-linux and
> >>opensolaris), but didn't have success finding a 'good' one. It's 
> >>interesting,
> >>that only the newgroup of AIX (I tested AIX-5.1) takes care of splitted 
> >>NIS
> >>groups and handles them correctly.
> >
> >This is not correct, there are other Implementations for Linux, which
> >also support this "hack" like pwdutils.
> 
> So conclution: "this patch is correct in sense NIS specyfication" is 
> correct ?

This is undefined behavior in "sene of NIS specification". But since
it is a usual workaround for this limitation (between, on pure Linux
networks this hack is not necessary), the patch is Ok. But it only
"fixes" one more app, not the generel problem that there is much more
software in the world which still will not work with this hack.

  Thorsten

-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      [email protected]
SUSE LINUX Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B