summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-10-21 19:31:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:07 -0500
commitdf30ef140d24863b849eaa81624509fabd663ee7 (patch)
tree4f4d74fb58e2abd870a45d5eef7b1b0ca334735b
parent645c2fcae94ab11543f7f5696a606dbff23d0336 (diff)
downloadsamba-df30ef140d24863b849eaa81624509fabd663ee7.tar.gz
samba-df30ef140d24863b849eaa81624509fabd663ee7.tar.bz2
samba-df30ef140d24863b849eaa81624509fabd663ee7.zip
r11248: Fix anon fallback with spnego
(This used to be commit 13ebdea11532f4810d01095a54d430c36c91d826)
-rw-r--r--source4/libcli/smb_composite/connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c
index 925d5ddb38..466d86233a 100644
--- a/source4/libcli/smb_composite/connect.c
+++ b/source4/libcli/smb_composite/connect.c
@@ -173,6 +173,11 @@ static NTSTATUS connect_session_setup(struct composite_context *c,
cli_credentials_set_conf(state->io_setup->in.credentials);
cli_credentials_set_anonymous(state->io_setup->in.credentials);
+ /* If the preceding attempt was with extended security, we
+ * have been given a uid in the NTLMSSP_CHALLENGE reply. This
+ * would lead to an invalid uid in the anonymous fallback */
+ state->session->vuid = 0;
+
state->creq = smb_composite_sesssetup_send(state->session,
state->io_setup);
NT_STATUS_HAVE_NO_MEMORY(state->creq);