summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-17 05:28:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:03 -0500
commit85555742b109387f32ecc0e17c6b47681bdf8936 (patch)
treea1e4a9079cd8f7cac032e81571a1f3353ba3b215 /source4/auth/gensec
parent20e9fe6b503aaba9367ee82a1d4435c1b68097ce (diff)
downloadsamba-85555742b109387f32ecc0e17c6b47681bdf8936.tar.gz
samba-85555742b109387f32ecc0e17c6b47681bdf8936.tar.bz2
samba-85555742b109387f32ecc0e17c6b47681bdf8936.zip
r24504: Try to return more useful error information on why a bind failed.
Note that the correct return for a failed alter_context is a fault, not a bind_nak. Andrew Bartlett (This used to be commit 52cce94532edf1dd7f26e39bf3377f0077ea6792)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/schannel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c
index bc616dc64e..5dc5c287ec 100644
--- a/source4/auth/gensec/schannel.c
+++ b/source4/auth/gensec/schannel.c
@@ -102,6 +102,8 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_
status = ndr_pull_struct_blob(&in, out_mem_ctx, &bind_schannel,
(ndr_pull_flags_fn_t)ndr_pull_schannel_bind);
if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(3, ("Could not parse incoming schannel bind: %s\n",
+ nt_errstr(status)));
return status;
}
@@ -119,6 +121,9 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("Could not find session key for attempted schannel connection from %s: %s\n",
workstation, nt_errstr(status)));
+ if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) {
+ return NT_STATUS_LOGON_FAILURE;
+ }
return status;
}