From 2c87cb390d9c46bb1259c4fae95f4a44be97297b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Jul 2004 18:32:53 +0000 Subject: r1409: if we have no user name don't use extended security the capabilities in the union smb_sesssetup should be used to decide if we can use extented security metze (This used to be commit e3760fcc17cc645d942f0fc7f7325976391309ea) --- source4/libcli/raw/clisession.c | 2 +- source4/libcli/raw/clitree.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c index dd13657549..d420aa7cd6 100644 --- a/source4/libcli/raw/clisession.c +++ b/source4/libcli/raw/clisession.c @@ -497,7 +497,7 @@ static NTSTATUS smb_raw_session_setup_generic(struct cli_session *session, } /* see if we should use the NT1 interface */ - if (!(session->transport->negotiate.capabilities & CAP_EXTENDED_SECURITY)) { + if (!(parms->generic.in.capabilities & CAP_EXTENDED_SECURITY)) { return smb_raw_session_setup_generic_nt1(session, mem_ctx, parms); } diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c index 3b16c4c336..f1513ea51c 100644 --- a/source4/libcli/raw/clitree.c +++ b/source4/libcli/raw/clitree.c @@ -240,6 +240,7 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree, setup.generic.in.password = NULL; setup.generic.in.user = ""; setup.generic.in.domain = ""; + setup.generic.in.capabilities &= ~CAP_EXTENDED_SECURITY; } else { setup.generic.in.password = password; setup.generic.in.user = user; -- cgit