The Samba-Bugzilla – Attachment 2237 Details for
Bug 4290
pam_winbind: password expiry time shown incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to pam_winbind.c
PATCH (text/plain), 856 bytes, created by
Andrew Benham
on 2006-12-08 08:54:33 UTC
(
hide
)
Description:
Patch to pam_winbind.c
Filename:
MIME Type:
Creator:
Andrew Benham
Created:
2006-12-08 08:54:33 UTC
Size:
856 bytes
patch
obsolete
>Index: pam_winbind.c >=================================================================== >RCS file: /cvsroot/upstream/samba3/source/nsswitch/pam_winbind.c,v >retrieving revision 1.1.1.5 >diff -u -r1.1.1.5 pam_winbind.c >--- pam_winbind.c 15 Nov 2006 05:29:21 -0000 1.1.1.5 >+++ pam_winbind.c 8 Dec 2006 14:53:49 -0000 >@@ -472,7 +472,8 @@ > (response.data.auth.policy.expire) && > (response.data.auth.info3.pass_last_set_time + response.data.auth.policy.expire > time(NULL) ) ) { > >- int days = response.data.auth.policy.expire / SECONDS_PER_DAY; >+ int days = (response.data.auth.info3.pass_last_set_time >+ + response.data.auth.policy.expire - time(NULL) ) / SECONDS_PER_DAY; > if (days <= DAYS_TO_WARN_BEFORE_PWD_EXPIRES) { > _make_remark_format(pamh, PAM_TEXT_INFO, "Your password will expire in %d days", days); > }
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 Raw
Actions:
View
Attachments on
bug 4290
: 2237