From: Günther Deschner Date: Wed, 11 Jun 2008 07:52:56 +0000 (+0200) Subject: pam_winbind: Update cached creds during password change. X-Git-Tag: samba-3.3.0pre1~950 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5;p=thirdparty%2Fsamba.git pam_winbind: Update cached creds during password change. Fix is from Bo Yang @ Novell. Thanks! --- 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);