summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/smb/negprot.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:smb_server/smb: fix invalid pointer type warnings in negprot.cStefan Metzmacher2014-04-021-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:smb_server/smb: fix declaration after code warnings in negprot.cStefan Metzmacher2014-04-021-2/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:smb_server: make use of gensec_update_ev()Stefan Metzmacher2014-03-271-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/param: Normalise "read raw" and "write raw" parametersAndrew Bartlett2014-02-121-5/+24
| | | | | | | | | | | They have been changed to function like normal parameters, removing a special case in the loadparm system. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Michael Adam <obnox@samba.org>
* param: rename lp function and variable from "encrypted_passwords" to ↵Garming Sam2014-02-071-3/+3
| | | | | | | | "encrypt_passwords" 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_minprotocol" to ↵Garming Sam2014-02-071-1/+1
| | | | | | | | "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-1/+1
| | | | | | | | "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>
* param: rename lp function and variable from "maxmux" to "max_mux"Garming Sam2014-02-071-3/+3
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* ntvfs: Remove CAP_UNIX from the ntvfs file server as it was never finishedAndrew Bartlett2014-01-141-4/+0
| | | | | | | | | | Only some of the unix extensions where implemented, but this was enough to caused the samba3.smbtorture_s3.plain(dc).LARGE_READX to fail when they are enabled (as is the default in source3/param). Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
* s4-smb_server No longer follow the security=share smb.conf directiveAndrew Bartlett2011-11-081-10/+1
| | | | | | | | By ignoring the value of security= from the smb.conf, we can allow this to instead set the value of 'server role' in a manner compatible with the Samba 3.x release stream. Andrew Bartlett
* s4-smb_server do not set credentials on gensec twiceAndrew Bartlett2011-10-191-4/+0
| | | | | | | The samba_server_gensec_start() has already set the credentials on the gensec_security context. Andrew Bartlett
* gensec: move event context from gensec_*_init() to gensec_update()Andrew Bartlett2011-10-181-1/+1
| | | | | | | | | | | | This avoids keeping the event context around on a the gensec_security context structure long term. In the Samba3 server, the event context we either supply is a NULL pointer as no server-side modules currently use the event context. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:smb_server: make use of PROTOCOL_SMB2_02Stefan Metzmacher2011-09-051-1/+1
| | | | metze
* s4:cluster Rename .id to .pid in server_idAndrew Bartlett2011-05-031-3/+4
| | | | | | | This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
* s4-param Rename lock_path() -> lpcfg_lock_path()Andrew Bartlett2011-04-291-1/+1
| | | | This avoids a conflict with the source3/ lock_path()
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-26/+26
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:auth Change 'get_challenge' API to be more like Samba3Andrew Bartlett2009-12-221-4/+1
| | | | | | | It is just easier to fill in the known to be 8 byte challenge than stuff about with allocated pointers. Andrew Bartlett
* s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell2009-09-191-1/+0
|
* use the new talloc_reparent in two placesAndrew Tridgell2009-07-011-1/+1
|
* s4:smb2srv: We only support SMB 2.002.Stefan Metzmacher2009-05-261-1/+0
| | | | | | | We need to loop over all given dialects and check if we can find SMB2_DIALECT_REVISION_202. metze
* Remove auth/ntlm as a dependency of GENSEC by means of function pointers.Andrew Bartlett2009-02-131-17/+19
| | | | | | | | | | | When starting GENSEC on the server, the auth subsystem context must be passed in, which now includes function pointers to the key elements. This should (when the other dependencies are fixed up) allow GENSEC to exist as a client or server library without bundling in too much of our server code. Andrew Bartlett
* Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2008-11-021-1/+1
| | | | should in the future only contain some settings required for gensec.
* Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell2008-02-141-1/+1
| | | | | | | | | | | | | | | | | | | This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
* fixed up the .in side of SMB2 negprotAndrew Tridgell2008-02-121-0/+1
| | | | | fixed the input side of the SMB2 negprot structure and parsers according to the documentation (This used to be commit 55af8acc7b32c24e4b1187e9d8d1c8f060e914b0)
* r26430: require explicit specification of loadparm context.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 1b947fe0e6e16318e5a8127bb4932d6b5d20bcf6)
* r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and ↵Jelmer Vernooij2007-12-211-29/+30
| | | | | | wbsrv_connection. (This used to be commit 7c008664238ed966cb82adf5b25b22157bb50730)
* r26260: Store loadparm context in gensec context.Jelmer Vernooij2007-12-211-0/+1
| | | | (This used to be commit b9e3a4862e267be39d603fed8207a237c3d72081)
* r26221: Add loadparm_context parameter to auth_context_create.Jelmer Vernooij2007-12-211-0/+1
| | | | (This used to be commit a9a9634df8f3137ecb308adb90a755f12af94972)
* r25551: Convert to standard bool type.Jelmer Vernooij2007-10-101-4/+4
| | | | (This used to be commit c9651e2c5c078edee7b91085e936a93625c8d708)
* r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij2007-10-101-1/+1
| | | | | | | | 2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-26/+28
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r23680: Make it easier to setup a domain member server - the 'server role'Andrew Bartlett2007-10-101-1/+1
| | | | | | | | | | will now control the auth methods, but an override is still available, ex: auth methods:domain controller = <methods> Andrew Bartlett (This used to be commit b7e727186ed8eda6a68c873e089f655dc24fe8ae)
* r22774: correctly initialize the smbsrv_connection when switching to SMB2Stefan Metzmacher2007-10-101-0/+13
| | | | | metze (This used to be commit 0fa4eb7323d95b6b8fb0c98225aebfa0b05e685a)
* r20646: first preparations for cluster enablement. This changes "Andrew Tridgell2007-10-101-3/+3
| | | | | | | | | | | uint32_t server_id to struct server_id server_id; which allows a server ID to have an node number. The node number will be zero in non-clustered case. This is the most basic hook needed for clustering, and ctdb. (This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)
* r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2007-10-101-0/+2
| | | | | | | | | Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
* r19504: - fixed a free error in file_lines_parseAndrew Tridgell2007-10-101-2/+6
| | | | | | | | | | - added a function to test for large file support - enable CAP_LARGE_FILES only if the test passes - don't test at large offsets if the server doesn't set CAP_LARGE_FILES (This used to be commit c5423ea22bdaa055807d4e6f7ac4be934194fe45)
* r17341: pass a messaging context to auth_context_create()Stefan Metzmacher2007-10-101-6/+9
| | | | | | | | | | and gensec_server_start(). calling them with NULL for event context or messaging context is no longer allowed! metze (This used to be commit 679ac74e71b111344f1097ab389c0b83a9247710)
* r16923: remove unused substitude codeStefan Metzmacher2007-10-101-1/+0
| | | | | metze (This used to be commit ea88c8c99eff2203d13f9877e590d9d7f2fbb910)
* r16735: vista beta2 reuses the tcp connect where it does theStefan Metzmacher2007-10-101-15/+1
| | | | | | | SMB negprot metze (This used to be commit 3b2936a4313abedfe2029330a8f8149372050a2a)
* r16464: split client and server min/max protocol settingsStefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit 6164d1e22e0545f558315591d49f862de06ea945)
* r15304: Fix smbd build, more updates on getting --enable-dso to build againJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 3ef9326386ba1c210166302cbcf02d2ed3f19944)
* r14041: be a bit less verboseStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 67a42a8097152c23fcd1adab68c64f127ac9c643)
* r13911: Make these debug messages clearer.Andrew Bartlett2007-10-101-3/+5
| | | | (This used to be commit 9c8350c64b68c81948e8e09be8316504368a4972)
* r13870: prefix more functions with smbsrv_Stefan Metzmacher2007-10-101-10/+10
| | | | | metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
* r13865: prefix functions with smbsrv_Stefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 2af96632757ee4bb0261b1871100008b48c5fd4d)
* r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requestsStefan Metzmacher2007-10-101-1/+31
| | | | | | | - the default max protocol is still NT1 metze (This used to be commit d1bae931b327dda28e648efc473e0462cf036f7c)
* r13858: - use req_pull_ascii4() instead of doing strlen() on client provided ↵Stefan Metzmacher2007-10-101-30/+34
| | | | | | | | | | buffers - also terminate the connection if we don't support any protocol the client provides metze (This used to be commit 7f2a6cfd6f9c01d1ff40d35346aba678a7ba77f2)
* r13857: add "Windows for Workgroups 3.1a" support to the serverStefan Metzmacher2007-10-101-10/+11
| | | | | metze (This used to be commit 58af0acafd67f919c8df99cacf110ded4bfd2c10)