Bug 695 - Cannot change password in PAM NIS+ environment
Summary: Cannot change password in PAM NIS+ environment
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: PAM support (show other bugs)
Version: 3.7.1p1
Hardware: UltraSPARC Solaris
: P2 major
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
: 730 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-22 02:54 AEST by Paul Bolton
Modified: 2004-04-14 12:24 AEST (History)
1 user (show)

See Also:


Attachments
Do chauthtok via SSH2 keyboard-interactive. (3.81 KB, patch)
2003-11-20 00:03 AEDT, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bolton 2003-09-22 02:54:40 AEST
When their password expires, NIS+ users are prompted to change their password.
Upon entering the correct creds the session terminates and the password is not
changed. Typically a "Permission denied" or "NIS+ system error" is generated.
Either normal "telnet" connections or password resets by administrators are
required in order to allow the user to log in successfully.

In session.c do_pam_chauthtok() is a) called before do_pam_setcred(), and b)
do_pam_chauthtok() does not set the real UID to the target user. (effective
stays as UID=0).

If these changes are made, the credential update works for both NIS+ and local
accounts.
Comment 1 Paul Bolton 2003-09-22 17:54:45 AEST
... although it still does not work with logons to the root master. Seem to be
getting a "corrupted window" when negotiating with rpc.nispasswdd.
Comment 2 Darren Tucker 2003-11-20 00:03:03 AEDT
Created attachment 503 [details]
Do chauthtok via SSH2 keyboard-interactive.

Please try this patch?	There's still work to be done on it but it seems to
work with local passwords.
Comment 3 Darren Tucker 2004-01-24 18:35:21 AEDT
A later version patch #503 has been committed and is in the current snapshots. 
Could you please test one and see if it resolves your problem?
Comment 4 Darren Tucker 2004-01-24 18:46:56 AEDT
*** Bug 730 has been marked as a duplicate of this bug. ***
Comment 5 Darren Tucker 2004-03-30 12:19:33 AEST
Comments in bug #730 indicate that this is fixed with the chauthtok-via-kbdint
patch that is in 3.8p1 and up.  Please reopen this bug if that is not the case.
Comment 6 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED