diff options
-rw-r--r-- | source4/libcli/raw/clisession.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c index c6d7f800a4..d5373bc76f 100644 --- a/source4/libcli/raw/clisession.c +++ b/source4/libcli/raw/clisession.c @@ -512,7 +512,8 @@ static NTSTATUS smb_raw_session_setup_generic(struct cli_session *session, } /* see if we should use the NT1 interface */ - if (!(parms->generic.in.capabilities & CAP_EXTENDED_SECURITY)) { + if (!session->transport->options.use_spnego || + !(parms->generic.in.capabilities & CAP_EXTENDED_SECURITY)) { return smb_raw_session_setup_generic_nt1(session, mem_ctx, parms); } |