]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r15417: Don't use cached credentials when changing passwords.
authorGünther Deschner <gd@samba.org>
Wed, 3 May 2006 15:19:31 +0000 (15:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:41 +0000 (11:16 -0500)
Guenther
(This used to be commit 34b29c30b2f4b5a3c40a65ca8338c87a4c16f3ff)

source3/nsswitch/pam_winbind.c

index a91129a805a35db94aa19aaca4581563f0f451c1..3b42e404a43697bc1cffb7b05799006d2876e002 100644 (file)
@@ -242,8 +242,9 @@ static int pam_winbind_request(pam_handle_t * pamh, int ctrl,
        /* Copy reply data from socket */
        if (response->result != WINBINDD_OK) {
                if (response->data.auth.pam_error != PAM_SUCCESS) {
-                       _pam_log(LOG_ERR, "request failed: %s, PAM error was %d, NT error was %s", 
+                       _pam_log(LOG_ERR, "request failed: %s, PAM error was %s (%d), NT error was %s", 
                                 response->data.auth.error_string,
+                                pam_strerror(pamh, response->data.auth.pam_error),
                                 response->data.auth.pam_error,
                                 response->data.auth.nt_status_string);
                        return response->data.auth.pam_error;
@@ -1150,6 +1151,9 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
 
        _pam_log_debug(ctrl, LOG_DEBUG,"pam_winbind: pam_sm_chauthtok");
 
+       /* clearing offline bit for the auth in the password change */
+       ctrl &= ~WINBIND_CACHED_LOGIN;
+
        /*
         * First get the name of a user
         */