Subject: Re: rpc.yppasswd and NIS-specific passwd database
To: None <>
From: Manuel Bouyer <>
List: tech-userlevel
Date: 07/31/2002 16:43:13
On Mon, Jun 10, 2002 at 10:37:32PM +0200, Manuel Bouyer wrote:
> Hi,
> the NIS server has all necessary hooks to use a different passwd
> database from the system one (e.g serve passwd from /etc/nis/master.passwd
> instead of /etc/master.passwd). This is especially usefull in evironnements
> where you don't want to have user accounts on servers (or different user
> accounts than the ones provided though NIS). The only problem is
> rpc.yppasswdd, which uses getpwnam() to get the user's passwd entry.
> The attached patche fixes it by remplacing getpwnam() with a function
> getting the line from the NIS passwd file. This could also be a funtion
> pw_getpwnam() in libutil, honoring pw_setprefix(). But going this way
> would also require implementing pw_getpwuid() and pw_getpwent() to be
> consistent. This would be a lot of code for only one customer, which would
> only use one function.
> Comments ? If I get no objections I'll commit this in the near future.

Hi folks
I commited this.

Manuel Bouyer, LIP6, Universite Paris VI.