From 107f7b9efa960145019e16e2a0a626572b5ec2d0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 7 Mar 2006 03:34:14 +0000 Subject: r13911: Make these debug messages clearer. (This used to be commit 9c8350c64b68c81948e8e09be8316504368a4972) --- source4/smb_server/smb/negprot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/smb/negprot.c b/source4/smb_server/smb/negprot.c index 10155bd9e7..917a899faa 100644 --- a/source4/smb_server/smb/negprot.c +++ b/source4/smb_server/smb/negprot.c @@ -234,7 +234,7 @@ static void reply_nt1_orig(struct smbsrv_request *req) } req_push_str(req, NULL, lp_workgroup(), -1, STR_UNICODE|STR_TERMINATE|STR_NOALIGN); req_push_str(req, NULL, lp_netbios_name(), -1, STR_UNICODE|STR_TERMINATE|STR_NOALIGN); - DEBUG(3,("not using SPNEGO\n")); + DEBUG(3,("not using extended security (SPNEGO or NTLMSSP)\n")); } /**************************************************************************** @@ -387,7 +387,9 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice) } } - if (!NT_STATUS_IS_OK(nt_status) && !NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { + if (NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { + DEBUG(3,("using SPNEGO\n")); + } else { DEBUG(5, ("Failed to start SPNEGO, falling back to NTLMSSP only: %s\n", nt_errstr(nt_status))); oid = GENSEC_OID_NTLMSSP; nt_status = gensec_start_mech_by_oid(gensec_security, oid); @@ -399,6 +401,7 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice) } /* NTLMSSP is a client-first exchange */ blob = data_blob(NULL, 0); + DEBUG(3,("using raw-NTLMSSP\n")); } req->smb_conn->negotiate.oid = oid; @@ -412,7 +415,6 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice) memcpy(req->out.ptr, blob.data, blob.length); SCVAL(req->out.vwv+1, VWV(16), blob.length + 16); req->out.ptr += blob.length; - DEBUG(3,("using SPNEGO\n")); } smbsrv_send_reply_nosign(req); -- cgit