summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-11 09:52:56 +0200
committerKarolin Seeger <kseeger@samba.org>2008-06-11 10:29:55 +0200
commitf26d0c6262dfa94f901885d838d4fa04eb30d7b1 (patch)
tree0635dbb0b79b268f730f1bf8dcf0f58b7d9c2805
parent504e3074d0a7b7086e88729c086bc5e6a69268fe (diff)
downloadsamba-f26d0c6262dfa94f901885d838d4fa04eb30d7b1.tar.gz
pam_winbind: Update cached creds during password change.
Fix is from Bo Yang @ Novell. Thanks! (cherry picked from commit e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5) (cherry picked from commit 49178f979f14ced834dda3104044bb8a84d4ebdb)
-rw-r--r--source/nsswitch/pam_winbind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c
index 7288d7af77b..e42199cd0f6 100644
--- a/source/nsswitch/pam_winbind.c
+++ b/source/nsswitch/pam_winbind.c
@@ -1445,6 +1445,10 @@ static int winbind_chauthtok_request(struct pwb_context *ctx,
WBFLAG_PAM_CONTACT_TRUSTDOM;
}
+ if (ctx->ctrl & WINBIND_CACHED_LOGIN) {
+ request.flags |= WBFLAG_PAM_CACHED_LOGIN;
+ }
+
ret = pam_winbind_request_log(ctx, WINBINDD_PAM_CHAUTHTOK,
&request, &response, user);