summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-30 14:13:45 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:55 +0100
commit7d977da92554c34539a475feb7dcb0a6dc0ad654 (patch)
treeb72b62b56382fa3e001890c7f98726c7458f3b26 /source3/libads
parent55279dfbe3770563016723c3ba7d1dbbec3d4437 (diff)
downloadsamba-7d977da92554c34539a475feb7dcb0a6dc0ad654.tar.gz
samba-7d977da92554c34539a475feb7dcb0a6dc0ad654.tar.bz2
samba-7d977da92554c34539a475feb7dcb0a6dc0ad654.zip
s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them
Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/sasl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c
index 6a0a1ae3d2..3856f5b49a 100644
--- a/source3/libads/sasl.c
+++ b/source3/libads/sasl.c
@@ -134,7 +134,12 @@ static ADS_STATUS ads_sasl_spnego_ntlmssp_bind(ADS_STRUCT *ads)
struct ntlmssp_state *ntlmssp_state;
- if (!NT_STATUS_IS_OK(nt_status = ntlmssp_client_start(&ntlmssp_state))) {
+ nt_status = ntlmssp_client_start(NULL,
+ global_myname(),
+ lp_workgroup(),
+ lp_client_ntlmv2_auth(),
+ &ntlmssp_state);
+ if (!NT_STATUS_IS_OK(nt_status)) {
return ADS_ERROR_NT(nt_status);
}
ntlmssp_state->neg_flags &= ~NTLMSSP_NEGOTIATE_SIGN;