summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_negprot.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-29s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139Stefan Metzmacher1-5/+8
In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze
2012-06-19Fix warning: variable ‘in_start_time’ set but not used.Jeremy Allison1-2/+0
2012-05-12s3:smbd: introduce struct smbXsrv_connectionStefan Metzmacher1-2/+54
This will represent a transport connection for SMB 1 or 2 in the server. smbd_server_connection will slowly be moved to the SMB_VFS layer to satisfy the existing modules, but it will hopefully be protocol independend in future. metze
2012-05-12s3:smb2_negprot: setup the protocol at the end of the negprot with a real ↵Stefan Metzmacher1-7/+8
dialect metze
2012-05-06s3:smb2_negprot: add support for PROTOCOL_SMB3_00Stefan Metzmacher1-0/+15
metze
2012-03-10Ensure the right tsocket.h is included.Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104
2012-03-09s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach1-4/+27
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server use the correct variables for max read/writeChristian Ambach1-2/+2
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-02-27s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett1-9/+9
This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
2011-12-22s3:smb2_negprot: add support for PROTOCOL_SMB2_24Stefan Metzmacher1-0/+15
metze
2011-11-20s3:smb2_negprot: add support for SMB2_22Stefan Metzmacher1-0/+15
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Nov 20 16:46:45 CET 2011 on sn-devel-104
2011-11-03s3:smbd: make use of SMB_SIGNING_* constantsStefan Metzmacher1-1/+1
metze
2011-10-13s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug ↵Stefan Metzmacher1-1/+3
#8473) We should enforce the negotiated max sizes instead of the lp_smb2_max_*() sizes. metze
2011-09-23s3:smbd: disconnect the socket if we got an unexpected requestStefan Metzmacher1-1/+0
If we got a SMB2_OP_NEGPROT after the protocol is already negotiated or if we got a non SMB2_OP_NEGPROT before the protocol was negotiated we should close the connection (as windows does). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 12:30:50 CEST 2011 on sn-devel-104
2011-09-07s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_negprot.cStefan Metzmacher1-10/+4
metze
2011-09-05s3:smb2_server: add basic support for SMB 2.1Stefan Metzmacher1-4/+62
This adds support for the 2 stage negprot, from SMB 1 to SMB 2.1. Support for this of for now and "max protocol = SMB2" still maps to "max protocol = SMB2_02" PROTOCOL_SMB2_02. In order to activate smb2.1, you need to use "max protocol = SMB2_10". metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 5 19:30:58 CEST 2011 on sn-devel-104
2011-09-05s3:smb2_server: return NOT_SUPPORTED if we don't find a common dialect with ↵Stefan Metzmacher1-6/+8
the client metze
2011-09-05s3:smb2_server: max_trans, max_read and max_write are limited to 64 kilobytesStefan Metzmacher1-3/+17
Only if SMB2_CAP_LARGE_MTU is supported we should announce larger limits. metze
2011-07-12s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2Stefan Metzmacher1-1/+1
metze
2011-05-30s3: Safely mark our sconn as smb2 if we have that protocolVolker Lendecke1-0/+2
Otherwise smbd will crash at an unclean exit. Without this conn_close_all will do a close_cnum() on all connection_struct's. In smb2, those are talloc children of the smbd_smb2_tcon's. sconn is talloc_free'ed after the conn_close_all, but the smbd_smb2_tcon destructor will still reference tcon->compat_conn, referencing then free'ed (and null'ed out) memory. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon May 30 22:49:53 CEST 2011 on sn-devel-104
2011-05-05s3: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 5 16:10:35 CEST 2011 on sn-devel-104
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner1-0/+1
Guenther
2010-07-19Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison1-2/+1
into negprot_spnego() where it belongs (it's not an SPNEGO operation). Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all the gen_negTokenXXX calls. Jeremy.
2010-06-12s3: Remove smbd_server_conn from reply_smb2002Volker Lendecke1-1/+1
2010-06-12s3: Explicitly pass sconn to negprot_spnego()Volker Lendecke1-1/+1
2010-04-06Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".Jeremy Allison1-3/+3
Set to 64k by default. Jeremy.
2009-11-23Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke1-1/+1
This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
2009-11-21s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke1-1/+1
2009-11-04Remove "Protocol" as an extern, and add accessor functions.Jeremy Allison1-3/+1
Jeremy.
2009-08-12libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher1-1/+1
This will hold code that's shared between source3 and source4. metze
2009-07-24Fix a few uninitialized variable warningsVolker Lendecke1-1/+1
I know those warnings are bogus, but both Coverity and gcc don't get it.
2009-06-04Add NTLMSSP SPNEGO to smb2 auth. Tested with Win7.Jeremy Allison1-1/+5
Jeremy.
2009-05-26s3:smbd: return the correct security mode and capabilities in SMB2 NegotitateStefan Metzmacher1-5/+18
metze
2009-05-20s3:smbd: for now indicate raw NTLMSSP in the SMB2 Negotiate responseStefan Metzmacher1-0/+3
metze
2009-05-20s3:smbd: allow SMB 2.002 dialect in SMB1 negprotStefan Metzmacher1-0/+36
We create a dummy SMB2 Negotiate inbuf and pass the connection to the SMB2 engine. metze
2009-05-20s3:smbd: add support for SMB2 NegotiateStefan Metzmacher1-0/+127
This is not complete, but a start that makes the samba4 smb2 client happy. metze