summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_negprot.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smb2_negprot: make use of smbd_smb2_generate_outbody()Stefan Metzmacher2014-03-051-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename lp function and variable from "srv_minprotocol" to ↵Garming Sam2014-02-071-5/+5
| | | | | | | | "server_min_protocol" Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename lp function and variable from "srv_maxprotocol" to ↵Garming Sam2014-02-071-6/+6
| | | | | | | | "server_max_protocol" Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smb2_negprot: set the 'remote_proto' valueStefan Metzmacher2013-01-091-0/+8
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Revert "Fix bug #9222 - smbd ignores the "server signing = no" setting for ↵Jeremy Allison2012-10-031-6/+4
| | | | | | | | | | | | | | | | | | SMB2." This reverts commit dfd3c31a3f9eea96854b2d22574856368e86b245. As Metze pointed out: From MS-SMB2 section 2.2.4: SMB2_NEGOTIATE_SIGNING_ENABLED When set, indicates that security signatures are enabled on the server. The server MUST set this bit, and the client MUST return STATUS_INVALID_NETWORK_RESPONSE if the flag is missing. I'll submit a documentation bug to fix #9222 that way.
* Fix bug #9222 - smbd ignores the "server signing = no" setting for SMB2.Jeremy Allison2012-10-031-4/+6
| | | | | | | | Still sign if client request is signed, just don't negotiate it in negprot or sessionsetup. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Oct 3 00:59:42 CEST 2012 on sn-devel-104
* s3: Slightly simplify smbd_smb2_request_process_negprotVolker Lendecke2012-09-251-5/+3
| | | | Remove a nested if-statement
* s3:smb2_negprot: annouce/negotiate SMB3 encryption supportStefan Metzmacher2012-08-171-0/+8
| | | | metze
* s3:smb2_negprot: make use of SMBD_SMB2_* macrosStefan Metzmacher2012-08-051-4/+3
| | | | metze
* s3:smb2_negprot: return the current system time in the SMB2 NEGPROT responseStefan Metzmacher2012-07-261-1/+2
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 26 11:56:02 CEST 2012 on sn-devel-104
* s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139Stefan Metzmacher2012-06-291-5/+8
| | | | | | | In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze
* Fix warning: variable ‘in_start_time’ set but not used.Jeremy Allison2012-06-191-2/+0
|
* s3:smbd: introduce struct smbXsrv_connectionStefan Metzmacher2012-05-121-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
* s3:smb2_negprot: setup the protocol at the end of the negprot with a real ↵Stefan Metzmacher2012-05-121-7/+8
| | | | | | dialect metze
* s3:smb2_negprot: add support for PROTOCOL_SMB3_00Stefan Metzmacher2012-05-061-0/+15
| | | | metze
* Ensure the right tsocket.h is included.Jeremy Allison2012-03-101-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104
* s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach2012-03-091-4/+27
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server use the correct variables for max read/writeChristian Ambach2012-03-091-2/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett2012-02-271-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
* s3:smb2_negprot: add support for PROTOCOL_SMB2_24Stefan Metzmacher2011-12-221-0/+15
| | | | metze
* s3:smb2_negprot: add support for SMB2_22Stefan Metzmacher2011-11-201-0/+15
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Nov 20 16:46:45 CET 2011 on sn-devel-104
* s3:smbd: make use of SMB_SIGNING_* constantsStefan Metzmacher2011-11-031-1/+1
| | | | metze
* s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug ↵Stefan Metzmacher2011-10-131-1/+3
| | | | | | | | | #8473) We should enforce the negotiated max sizes instead of the lp_smb2_max_*() sizes. metze
* s3:smbd: disconnect the socket if we got an unexpected requestStefan Metzmacher2011-09-231-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
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_negprot.cStefan Metzmacher2011-09-071-10/+4
| | | | metze
* s3:smb2_server: add basic support for SMB 2.1Stefan Metzmacher2011-09-051-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
* s3:smb2_server: return NOT_SUPPORTED if we don't find a common dialect with ↵Stefan Metzmacher2011-09-051-6/+8
| | | | | | the client metze
* s3:smb2_server: max_trans, max_read and max_write are limited to 64 kilobytesStefan Metzmacher2011-09-051-3/+17
| | | | | | Only if SMB2_CAP_LARGE_MTU is supported we should announce larger limits. metze
* s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2Stefan Metzmacher2011-07-121-1/+1
| | | | metze
* s3: Safely mark our sconn as smb2 if we have that protocolVolker Lendecke2011-05-301-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
* s3: Fix a typoVolker Lendecke2011-05-051-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 5 16:10:35 CEST 2011 on sn-devel-104
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison2010-07-191-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.
* s3: Remove smbd_server_conn from reply_smb2002Volker Lendecke2010-06-121-1/+1
|
* s3: Explicitly pass sconn to negprot_spnego()Volker Lendecke2010-06-121-1/+1
|
* Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".Jeremy Allison2010-04-061-3/+3
| | | | | | Set to 64k by default. Jeremy.
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-1/+1
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-1/+1
|
* Remove "Protocol" as an extern, and add accessor functions.Jeremy Allison2009-11-041-3/+1
| | | | Jeremy.
* libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher2009-08-121-1/+1
| | | | | | This will hold code that's shared between source3 and source4. metze
* Fix a few uninitialized variable warningsVolker Lendecke2009-07-241-1/+1
| | | | I know those warnings are bogus, but both Coverity and gcc don't get it.
* Add NTLMSSP SPNEGO to smb2 auth. Tested with Win7.Jeremy Allison2009-06-041-1/+5
| | | | Jeremy.
* s3:smbd: return the correct security mode and capabilities in SMB2 NegotitateStefan Metzmacher2009-05-261-5/+18
| | | | metze
* s3:smbd: for now indicate raw NTLMSSP in the SMB2 Negotiate responseStefan Metzmacher2009-05-201-0/+3
| | | | metze
* s3:smbd: allow SMB 2.002 dialect in SMB1 negprotStefan Metzmacher2009-05-201-0/+36
| | | | | | | We create a dummy SMB2 Negotiate inbuf and pass the connection to the SMB2 engine. metze
* s3:smbd: add support for SMB2 NegotiateStefan Metzmacher2009-05-201-0/+127
This is not complete, but a start that makes the samba4 smb2 client happy. metze