Re: can not change NIS password

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Wed, 16 Apr 2003 13:31:47 -0500
In the last episode (Apr 16), Glenn Johnson said:
> User passwords can not be changed if they are served by NIS with 
> -current:
> 
> FreeBSD 5.0-CURRENT #3: Tue Apr 15 11:30:59 CDT 2003     root_at_node1.cluster.srrc.usda.gov:/usr/obj/usr/src/sys/CLUSTER-FW 
> 
> When trying to change a password I get the following:
> 
> Apr 16 12:16:38 node1 passwd: in pam_sm_chauthtok(): yppasswd_remote(): NIS password update failed 
> 
> If I place account information into /etc/master.passwd instead of the
> NIS master.passwd, then I can successfully change the password.

Try the attached patch;  I really need to send-pr this :)  The current
code assumes you always export /etc/master.passwd.

There is still a bug in there somewhere that prevents you from changing
an NIS password when logged into the NIS master itself, but at least
there's a workaround for that (log into a client to change the
password).

-- 
	Dan Nelson
	dnelson_at_allantgroup.com

Received on Wed Apr 16 2003 - 09:31:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC