Subject: yppasswd -d and getpwnam()
To: None <>
From: Manuel Bouyer <>
List: tech-userlevel
Date: 05/27/2002 17:05:52
I'm tying to setup a NIS server, in which the master.passwd provided to
clients is not /etc/master.passwd (I want only the admin's accounts on the
server). Hooks for this are provided in the /var/yp Makefiles, and
even in rpc.yppasswdd (using the -d option), but rpc.yppasswdd still
uses getpwnam() to authenticate the user before changing passwd fields.

I'm thinking about rewriting a getpwnam() for yppasswdd's private use,
which could use an arbitrary local passwd db. Or maybe it should just go
in libutil and honnor pw_setprefix().

Comments ?

Manuel Bouyer, LIP6, Universite Paris VI.