Bug 69547

Summary: "nis" doesn't seem to work with pam_unix/password
Product: [Retired] Red Hat Linux Reporter: Marc MERLIN <marc_soft>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-10 09:46:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Make pam change nis and local password none

Description Marc MERLIN 2002-07-23 01:43:51 UTC
authconfig seems to insist on adding "nis" to /etc/pam.d/system-auth when you
tell RH that you use NIS.
This fails miserably when you try to change your local root password obviously,
and I'm not sure it actually lets you change any local password anymore for that
matter.
I've suggested in bug 69546 that authconfig does not add "nis" to the password
line for pam_unix

That said, I've tried to change a nis password that way:
bash-2.05a$ passwd
Changing password for user merlin.
Changing password for merlin
(current) UNIX password: 
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

you'd think it worked, but it failed silently. My password wasn't changed, and
if I change it with yppassword, I can change it just fine.

That said, the bug wouldn't bother me much if authconfig didn't stick "nis"
there in the first place

Comment 1 Orion Poplawski 2004-04-16 22:49:36 UTC
Created attachment 99502 [details]
Make pam change nis and local password

The _do_setpass() command in modules/pam_unix/pam_unix_passwd.c will only set
the nis password if nis is listed in /etc/pam.d/system-auth.  The above patch
will change the behavior to also set the local password.  One catch is that any
possible errors setting the local password are not caught.

The patch is against the pam-0.77 code from the Fedora Core 1 src.rpm

Comment 2 Tomas Mraz 2004-11-10 09:46:26 UTC

*** This bug has been marked as a duplicate of 115309 ***