]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pam_winbind: Update cached creds during password change.
authorGünther Deschner <gd@samba.org>
Wed, 11 Jun 2008 07:52:56 +0000 (09:52 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 11 Jun 2008 07:52:56 +0000 (09:52 +0200)
Fix is from Bo Yang @ Novell.

Thanks!

source/nsswitch/pam_winbind.c

index 7288d7af77b153763e170f25e49ff3b63cd47ec0..e42199cd0f693ea594358648d92cd1d1412154f3 100644 (file)
@@ -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);