summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-11 09:52:56 +0200
committerGünther Deschner <gd@samba.org>2008-06-11 09:52:56 +0200
commit8e240c460b8cd290acd70fa286811d92cc7d24b8 (patch)
treeff8dda10faefb59fbbcb8882b7df34f5147a16aa /source3
parent9883567fa7d8c3af9ef3a79f96ca8c5d4106d81a (diff)
downloadsamba-8e240c460b8cd290acd70fa286811d92cc7d24b8.tar.gz
samba-8e240c460b8cd290acd70fa286811d92cc7d24b8.tar.bz2
samba-8e240c460b8cd290acd70fa286811d92cc7d24b8.zip
pam_winbind: Update cached creds during password change.
Fix is from Bo Yang @ Novell. Thanks! (This used to be commit e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/pam_winbind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 7288d7af77..e42199cd0f 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/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);