summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-05-15 11:20:34 +0200
committerStefan Metzmacher <metze@samba.org>2009-05-20 20:53:34 +0200
commit1ecdc8588da2eddfe673f736f519d37eac4be911 (patch)
treeabc09b843bef99ca5816a1c5eb624706acc66567 /source3/smbd/smb2_server.c
parentdafc1e0c8d16e4dcc3929d9e5f78ce60d3371fe8 (diff)
downloadsamba-1ecdc8588da2eddfe673f736f519d37eac4be911.tar.gz
samba-1ecdc8588da2eddfe673f736f519d37eac4be911.tar.bz2
samba-1ecdc8588da2eddfe673f736f519d37eac4be911.zip
s3:smbd: implement SMB2 Session Setup with raw NTLMSSP
metze
Diffstat (limited to 'source3/smbd/smb2_server.c')
-rw-r--r--source3/smbd/smb2_server.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 68c812b37f..6d8961eebb 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -55,6 +55,13 @@ static NTSTATUS smbd_initialize_smb2(struct smbd_server_connection *conn)
return NT_STATUS_NO_MEMORY;
}
+ conn->smb2.sessions.idtree = idr_init(conn);
+ if (conn->smb2.sessions.idtree == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+ conn->smb2.sessions.limit = 0x0000FFFF;
+ conn->smb2.sessions.list = NULL;
+
ret = tstream_bsd_existing_socket(conn, smbd_server_fd(),
&conn->smb2.stream);
if (ret == -1) {
@@ -293,7 +300,7 @@ static NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
return smbd_smb2_request_process_negprot(req);
case SMB2_OP_SESSSETUP:
- return smbd_smb2_request_error(req, NT_STATUS_NOT_IMPLEMENTED);
+ return smbd_smb2_request_process_sesssetup(req);
case SMB2_OP_LOGOFF:
return smbd_smb2_request_error(req, NT_STATUS_NOT_IMPLEMENTED);