r6453: Move verbose errors for the schannel 'not in the DB, or DB corrupt' error...
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Apr 2005 03:28:17 +0000 (03:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:38 +0000 (13:11 -0500)
Andrew Bartlett
(This used to be commit 24f98f32aae3b8c45283715b27fa67b1d2e5c0f2)

source4/auth/gensec/schannel_state.c

index dea204e6221b075f1215b7231ad0df67fa4e3696..99d5fdef5358f854a5671a7c2af5982e1cec2667 100644 (file)
@@ -208,16 +208,18 @@ NTSTATUS schannel_fetch_session_key(TALLOC_CTX *mem_ctx,
 
        val = ldb_msg_find_ldb_val(res[0], "sessionKey");
        if (val == NULL || val->length != 16) {
+               DEBUG(1,("schannel: record in schannel DB must contain a sessionKey of length 16, when searching for client: %s\n", computer_name));
                talloc_free(ldb);
-               return NT_STATUS_INVALID_HANDLE;
+               return NT_STATUS_INTERNAL_ERROR;
        }
 
        memcpy((*creds)->session_key, val->data, 16);
 
        val = ldb_msg_find_ldb_val(res[0], "seed");
        if (val == NULL || val->length != 8) {
+               DEBUG(1,("schannel: record in schannel DB must contain a vaid seed of length 8, when searching for client: %s\n", computer_name));
                talloc_free(ldb);
-               return NT_STATUS_INVALID_HANDLE;
+               return NT_STATUS_INTERNAL_ERROR;
        }
 
        memcpy((*creds)->seed.data, val->data, 8);