Bug 7912 - GDM does not permit login when password needs changing
GDM does not permit login when password needs changing
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: gdm (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Havoc Pennington
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-12-20 15:57 EST by Philip Spencer
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-17 15:28:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Philip Spencer 1999-12-20 15:57:59 EST
GDM does not permit login when the user's password needs changing, as is
commonly the case when a user logs in for the first time after a random
initial password has been created for them by a system administrator. The
following patch fixes this problem by allowing gdm to let PAM prompt for
the new password:

--- gdm-2.0beta2/daemon/verify.c.orig   Wed Sep  1 16:08:51 1999
+++ gdm-2.0beta2/daemon/verify.c        Mon Dec 20 15:48:31 1999
@@ -167,7 +167,12 @@
        goto pamerr;
     }

-    if ((pamerr = pam_acct_mgmt (pamh, 0)) != PAM_SUCCESS) {
+    pamerr = pam_acct_mgmt(pamh,0);
+    if (pamerr == PAM_NEW_AUTHTOK_REQD) {
+        pamerr = pam_chauthtok(pamh,PAM_CHANGE_EXPIRED_AUTHTOK);
+    }
+
+    if (pamerr != PAM_SUCCESS) {
        gdm_error (_("Couldn't set acct. mgmt for %s"), login);
        goto pamerr;
     }
Comment 1 Elliot Lee 2000-01-17 15:28:59 EST
Thanks for the patch - I've applied it, and it will be in gdm-2.0beta2-18 in
Rawhide very soon.

Note You need to log in before you can comment on or make changes to this bug.