The Samba-Bugzilla – Attachment 4318 Details for
Bug 6253
password expiration in pam_winbind isn't handled correctly from Active Directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
3-4: final version of the patch
3-4-pam_winbind.diff (text/plain), 922 bytes, created by
Guenther Deschner
on 2009-06-18 18:55:16 UTC
(
hide
)
Description:
3-4: final version of the patch
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2009-06-18 18:55:16 UTC
Size:
922 bytes
patch
obsolete
>From 8792a50f237654009652e4b52f7eb5dc892f696d Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Fri, 19 Jun 2009 01:52:11 +0200 >Subject: [PATCH] s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation. > >Based on patch from Blindauer Emmanuel <samba@mooby.net>. > >Guenther >--- > nsswitch/pam_winbind.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c >index 545c87d..e90f1b7 100644 >--- a/nsswitch/pam_winbind.c >+++ b/nsswitch/pam_winbind.c >@@ -914,7 +914,8 @@ static void _pam_warn_password_expiry(struct pwb_context *ctx, > /* now check for the global password policy */ > /* good catch from Ralf Haferkamp: an expiry of "never" is translated > * to -1 */ >- if (policy->expire == -1) { >+ if ((policy->expire == (int64_t)-1) || >+ (policy->expire == 0)) { > return; > } > >-- >1.6.2.2 >
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
Flags:
jra
:
review+
jra
:
review+
Actions:
View
Attachments on
bug 6253
:
4056
|
4116
|
4243
|
4317
| 4318