From f26d0c6262dfa94f901885d838d4fa04eb30d7b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 11 Jun 2008 09:52:56 +0200 Subject: [PATCH] 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) --- source/nsswitch/pam_winbind.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.11.4.GIT