Bugzilla – Attachment 676 Details for
Bug 5028
Web Access authentication does not handle expired password pam prompts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Call pam_chauthtok if necessary
foo.patch (text/plain), 737 bytes, created by
Peter Åstrand
on 2016-02-29 08:25:58 CET
(
hide
)
Description:
Call pam_chauthtok if necessary
Filename:
MIME Type:
Creator:
Peter Åstrand
Created:
2016-02-29 08:25:58 CET
Size:
737 bytes
patch
obsolete
>Index: pamtester/src/app.c >=================================================================== >--- pamtester/src/app.c (revision 31166) >+++ pamtester/src/app.c (arbetskopia) >@@ -343,11 +343,17 @@ > } > > if ((err = pam_acct_mgmt(pamh, flag))) { >- err_msg = xstrdup(pam_strerror(pamh, err)); >- goto out; >- } else { >- printf("%s: account management done.\n", params->app_name); >+ if (err == PAM_NEW_AUTHTOK_REQD) { >+ err = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK); >+ } >+ >+ if (err) { >+ err_msg = xstrdup(pam_strerror(pamh, err)); >+ goto out; >+ } > } >+ printf("%s: account management done.\n", params->app_name); >+ > } else if (!strcasecmp(op->name, "open_session")) { > int flag = 0; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5028
: 676