summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-04-25 03:28:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:38 -0500
commita2abd01cca389f6d48fefde5cd1a19aaffdb97a3 (patch)
tree7bbfca65be4d6434573ac00e2fbac47bd33ca0d7 /source4/auth/gensec
parent96700ef79d2925a5d67a3b835924b97dcb0b3d79 (diff)
downloadsamba-a2abd01cca389f6d48fefde5cd1a19aaffdb97a3.tar.gz
samba-a2abd01cca389f6d48fefde5cd1a19aaffdb97a3.tar.bz2
samba-a2abd01cca389f6d48fefde5cd1a19aaffdb97a3.zip
r6453: Move verbose errors for the schannel 'not in the DB, or DB corrupt' error cases.
Andrew Bartlett (This used to be commit 24f98f32aae3b8c45283715b27fa67b1d2e5c0f2)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/schannel_state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/gensec/schannel_state.c b/source4/auth/gensec/schannel_state.c
index dea204e622..99d5fdef53 100644
--- a/source4/auth/gensec/schannel_state.c
+++ b/source4/auth/gensec/schannel_state.c
@@ -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);