summaryrefslogtreecommitdiff
path: root/source3/utils/ntlm_auth.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-22 12:10:30 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:03 +1000
commit778bf87d8dbae333bfeea3b0d904fd2b17782745 (patch)
treedbeae46a1920124cb5709174e2b19adba304b15b /source3/utils/ntlm_auth.c
parent6d7ac4f1ad364cac6266bd3e88d141a7517a7d15 (diff)
downloadsamba-778bf87d8dbae333bfeea3b0d904fd2b17782745.tar.gz
samba-778bf87d8dbae333bfeea3b0d904fd2b17782745.tar.bz2
samba-778bf87d8dbae333bfeea3b0d904fd2b17782745.zip
s3-ntlmssp Remove calls to auth_ntlmssp_and_flags from the server
This is changed so that the callers ask for the additional flags that they need, starting with no additional flags. This helps to create a proper abstraction layer in ntlmssp_wrap/auth_ntlmssp. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/utils/ntlm_auth.c')
-rw-r--r--source3/utils/ntlm_auth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 3a99a8c1bf..9cd47d0611 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -737,6 +737,10 @@ static NTSTATUS ntlm_auth_start_ntlmssp_server(struct ntlmssp_state **ntlmssp_st
return status;
}
+ (*ntlmssp_state)->neg_flags |=
+ (NTLMSSP_NEGOTIATE_SIGN |
+ NTLMSSP_NEGOTIATE_SEAL);
+
/* Have we been given a local password, or should we ask winbind? */
if (opt_password) {
(*ntlmssp_state)->check_password = local_pw_check;