]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r15411: Small debug fixes for the PAM module.
authorGünther Deschner <gd@samba.org>
Wed, 3 May 2006 10:19:49 +0000 (10: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 1856dc0f52b2a2ba2e59f1a7a77ccd32c27928c0)

source3/nsswitch/pam_winbind.c

index 96fd4d1089c83ee42db2720548d93bb0b0928942..a91129a805a35db94aa19aaca4581563f0f451c1 100644 (file)
@@ -286,8 +286,7 @@ static int pam_winbind_request_log(pam_handle_t * pamh,
                return retval;
        case PAM_USER_UNKNOWN:
                /* the user does not exist */
-               _pam_log_debug(ctrl, LOG_NOTICE, "user `%s' not found",
-                                user);
+               _pam_log_debug(ctrl, LOG_NOTICE, "user `%s' not found", user);
                if (ctrl & WINBIND_UNKNOWN_OK_ARG) {
                        return PAM_IGNORE;
                }        
@@ -475,6 +474,7 @@ static int winbind_auth_request(pam_handle_t * pamh,
 
        if (response.data.auth.info3.user_flgs & LOGON_CACHED_ACCOUNT) {
                _make_remark(pamh, PAM_ERROR_MSG, "Logging on using cached account. Network ressources can be unavailable");
+               _pam_log_debug(ctrl, LOG_DEBUG,"User %s logged on using cached account\n", user);
        }
 
        /* save the CIFS homedir for pam_cifs / pam_mount */