summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-07-29 08:14:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:43 -0500
commitb5061894dc91cd307d0e6b9157b36bd4f36a5c41 (patch)
tree284533d5a72d20500405b6e670f112b2c3cf04f1 /source4
parent112c2c831b96ae8f454a93483ffdf924a8f91a88 (diff)
downloadsamba-b5061894dc91cd307d0e6b9157b36bd4f36a5c41.tar.gz
samba-b5061894dc91cd307d0e6b9157b36bd4f36a5c41.tar.bz2
samba-b5061894dc91cd307d0e6b9157b36bd4f36a5c41.zip
r1602: make sure we honor the use_spnego flag
(This used to be commit de764d9004a0d90479158e78e30b1266eb529e3e)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/clisession.c3
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);
}