Contribution to 3.8.1pl1

Darren J Moffat Darren.Moffat at Sun.COM
Sat May 8 00:33:13 EST 2004


TDSCAF wrote:
> Though considered to be dead some time in the future,
> NIS still serves it's purpose in many environments.
> The netgroups will make their way into LDAP some time
> in the future, then i'll probably post another patch.

Why are you calling the yp api's directly when there is already a set of 
high level nameservice agnostic functions for this ?

innetgr(3c), getnetgrent(3c), getnetgrent_r(3c), setnetgrent(3c), 
endnetgrent(3c).

You should really only need to use innetgr(3c) to do this.  This ensures 
that when netgroups are stored in NIS, NIS+ or LDAP (or anything else 
that is plugged into nsswitch on system that have it that supplies a 
netgroup back end).


-- 
Darren J Moffat




More information about the openssh-unix-dev mailing list