summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-03 09:53:13 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-03 16:21:34 +0200
commit3167a2b8b90107b763f4dcb4987df46856b297f4 (patch)
treeae0406022c8e5328601351314295a79701cdc4ec /source3
parentb73426595cb30e822aee5d7e4079c3bc9a21f0ba (diff)
downloadsamba-3167a2b8b90107b763f4dcb4987df46856b297f4.tar.gz
samba-3167a2b8b90107b763f4dcb4987df46856b297f4.tar.bz2
samba-3167a2b8b90107b763f4dcb4987df46856b297f4.zip
s3:smb2cli: ask for a session key in smb2cli_sesssetup_send()
This is needed if we want to support SMB2 signing later. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Sep 3 16:21:35 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb2cli_session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/smb2cli_session.c b/source3/libsmb/smb2cli_session.c
index 7cc184236b..b1f7c33f61 100644
--- a/source3/libsmb/smb2cli_session.c
+++ b/source3/libsmb/smb2cli_session.c
@@ -25,6 +25,7 @@
#include "libsmb/proto.h"
#include "lib/util/tevent_ntstatus.h"
#include "../libcli/auth/spnego.h"
+#include "../libcli/auth/ntlmssp.h"
struct smb2cli_sesssetup_blob_state {
struct ntlmssp_state *ntlmssp;
@@ -170,6 +171,8 @@ struct tevent_req *smb2cli_sesssetup_send(TALLOC_CTX *mem_ctx,
if (!NT_STATUS_IS_OK(status)) {
goto post_status;
}
+ ntlmssp_want_feature(state->ntlmssp,
+ NTLMSSP_FEATURE_SESSION_KEY);
status = ntlmssp_set_username(state->ntlmssp, user);
if (!NT_STATUS_IS_OK(status)) {
goto post_status;