Be more verbose why create local token has failed during
authorGünther Deschner <gd@samba.org>
Thu, 6 Mar 2008 11:24:37 +0000 (12:24 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 6 Mar 2008 11:27:11 +0000 (12:27 +0100)
NTLMSSP and Kerberos session setup

Guenther

source/auth/auth_ntlmssp.c
source/smbd/sesssetup.c

index ed66d0db0afeed1147a797ed00d97d4e98415008..b6c26a1fc8bce424ea7b58ca9b832b69a28bfbdd 100644 (file)
@@ -127,7 +127,8 @@ static NTSTATUS auth_ntlmssp_check_password(struct ntlmssp_state *ntlmssp_state,
        nt_status = create_local_token(auth_ntlmssp_state->server_info);
 
        if (!NT_STATUS_IS_OK(nt_status)) {
-               DEBUG(10, ("create_local_token failed\n"));
+               DEBUG(10, ("create_local_token failed: %s\n",
+                       nt_errstr(nt_status)));
                return nt_status;
        }
 
index 9baa02977aded4325e1c20f3f0873299d2a195c1..5578dafd851513d6e30c15798c617506d394706f 100644 (file)
@@ -539,6 +539,8 @@ static void reply_spnego_kerberos(struct smb_request *req,
        if ( !server_info->ptok ) {
                ret = create_local_token( server_info );
                if ( !NT_STATUS_IS_OK(ret) ) {
+                       DEBUG(10,("failed to create local token: %s\n",
+                               nt_errstr(ret)));
                        SAFE_FREE(client);
                        data_blob_free(&ap_rep);
                        data_blob_free(&session_key);