summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: move cli->server{zone,time} to ↵Stefan Metzmacher2011-09-151-2/+2
| | | | | | | | | cli->conn.smb1.server.{time_zone,system_time} metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 14:00:29 CEST 2011 on sn-devel-104
* s3:libsmb: split cli->secblob into ↵Stefan Metzmacher2011-09-151-1/+4
| | | | | | cli->conn.smb1.server.{guid,gss_blob,challenge,workgroup} metze
* s3:libsmb: move cli->sesskey to cli->conn.smb1.server.session_keyStefan Metzmacher2011-09-151-1/+1
| | | | metze
* s3:libsmb: detect lock_read and write_unlock supportStefan Metzmacher2011-09-151-0/+2
| | | | metze
* s3:libsmb: move cli->*braw_supported to cli->conn.smb1.server.*brawStefan Metzmacher2011-09-151-2/+2
| | | | | | This is currently unused, but we might use it in future. metze
* s3:libsmb: move cli->sec_mode to cli->conn.smb1.server.security_modeStefan Metzmacher2011-09-151-1/+1
| | | | metze
* s3:libsmb: move cli->max_mux to cli->conn.smb1.server.max_muxStefan Metzmacher2011-09-151-1/+1
| | | | metze
* s3:libsmb: move cli->max_xmit to cli->conn.smb1.max_xmitStefan Metzmacher2011-09-151-1/+3
| | | | | | | And keep cli->conn.smb1.client.max_xmit and cli->conn.smb1.server.max_xmit. metze
* s3:libsmb: move cli->smb1.mid to cli->conn.smb1.midStefan Metzmacher2011-09-151-1/+2
| | | | metze
* s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilitiesStefan Metzmacher2011-09-151-1/+12
| | | | | | | And keep cli->conn.smb1.client.capabilities and cli->conn.smb1.server_capabilities. metze
* s3:libsmb: move cli->protocol to cli->conn.protocolStefan Metzmacher2011-09-151-1/+2
| | | | metze
* s3:libsmb: use local variables in cli_state_create()Stefan Metzmacher2011-09-151-4/+0
| | | | | | | | | | We don't need to keep use_spnego, use_level_II_oplocks, force_dos_errors and force_ascii within struct cli_state. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 10:12:17 CEST 2011 on sn-devel-104
* s3:include: add some masks for SMB1 CAP_* flagsStefan Metzmacher2011-09-151-0/+25
| | | | | | | | | The flags are devided into 3 sections: - client only flags - flags used in both directions - server only flags metze
* s3:libsmb: remove unused cli->is_sambaStefan Metzmacher2011-09-141-1/+0
| | | | | | | | s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:client.h: remove unused definesStefan Metzmacher2011-09-141-9/+0
| | | | | | | | s3:client.h: remove unused defines metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb_signing: add support for easier negotiation of SMB signingStefan Metzmacher2011-09-141-1/+4
| | | | | | We don't make use of it yet, but it will follow. metze
* Fix bug #8229 - git patch attached against 3.6.0-rc2 to fix 'widelinks' ↵Jeremy Allison2011-09-141-0/+1
| | | | | | | | | | | | regression intro'd in 3.2 Add "allow insecure widelinks" to re-enable the ability (requested by some sites) to have "widelinks = yes" and "unix extensions = yes". Based on an original patch by Linda Walsh <samba@tlinx.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Sep 14 03:55:45 CEST 2011 on sn-devel-104
* s3:smb2cli: split cli->smb2.gss_blob from cli->secblobStefan Metzmacher2011-09-131-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104
* s3:libsmb: don't mix smb2 share capabilities with smb1 capabilitiesStefan Metzmacher2011-09-131-0/+1
| | | | metze
* s3:libsmb: the smb2 server capabilities from the session setup are 32-bitStefan Metzmacher2011-09-131-1/+1
| | | | metze
* s3: Fix some nonempty blank linesVolker Lendecke2011-09-132-4/+4
|
* s3:libsmb: add CLI_FULL_CONNECTION_FORCE_ASCIIStefan Metzmacher2011-09-081-0/+2
| | | | metze
* s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORSStefan Metzmacher2011-09-081-0/+1
| | | | metze
* s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domainSumit Bose2011-08-311-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Add posix offset to struct pdb_trusted_domainSumit Bose2011-08-311-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:include: add CAP_LWIO and CAP_DYNAMIC_REAUTH definesStefan Metzmacher2011-08-301-0/+2
| | | | metze
* s3:libsmb: make cli_session_request_send/recv() staticStefan Metzmacher2011-08-281-7/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Aug 28 20:29:01 CEST 2011 on sn-devel-104
* s3:libsmb: move cli_smb_oplock_break_waiter*() to clioplock.cStefan Metzmacher2011-08-281-7/+0
| | | | metze
* passdb: Add a function to read secrets db from a specified pathAmitay Isaacs2011-08-131-0/+1
| | | | | This allows to load secrets db from a different location. The original secrets_init() now calls secrets_init_path() with lp_private_dir().
* s3:libsmb: abstract the incoming dispatch function via a function pointerStefan Metzmacher2011-08-121-0/+11
| | | | | | This will allow handling of SMB2 in future. metze
* s3-messaging: Change classification of MSG_SMB_CONF_UPDATED.Simo Sorce2011-08-111-1/+0
| | | | | | | | smbd is not the only daemon interested in smb.conf changes. Move this message to the GENERAL class so that all interested partied (nmbd, winbindd, spoolssd, etc..) can receive this notification. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-messaging: Fix messaging classes.Simo Sorce2011-08-111-1/+1
| | | | | | | | | | | | This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-messaging: Remove obsolete class.Simo Sorce2011-08-111-1/+1
| | | | | | | The FLAG_MSG_PRINT_NOTIFY class is actually obsolete and never used, as the only message belonging to it is not used either. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:libsmb: store the remote_realm on the cli_stateStefan Metzmacher2011-08-101-0/+1
| | | | metze
* s3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()Stefan Metzmacher2011-08-101-6/+4
| | | | | | This also takes care of the correct casting. metze
* s3:include: smb.h base old smb header offsets on new definesStefan Metzmacher2011-08-101-32/+32
| | | | metze
* s3:include: smb.h merge some stuff from source4Stefan Metzmacher2011-08-101-0/+35
| | | | metze
* s3:registry avoid updating keys which are going to be deleted inGregor Beck2011-08-081-1/+1
| | | | | | | | | reg_deletekey_recursive this changes the complexity from O(n^2) to O(n) and reduces the time of a 'net conf drop' with 10000 shares from 6min to 1.5s Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-051-3/+3
|
* selftest: test plugin_s4_dc against all ncacn_np testsAndrew Bartlett2011-08-031-0/+2
| | | | | | | Changes to the s3 epmapper behaviour seem to have fixed the rest of these tests. Andrew Bartlett
* s3-auth clarify the role of these session keysAndrew Bartlett2011-08-031-8/+6
| | | | | | | | | This comment can be clarified now the auth subsystem does not use the same structure as the rest of the code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth remove sanitized_username from auth_serversupplied_infoAndrew Bartlett2011-08-032-10/+0
| | | | | | | | | | | This structure element was only written to, not read. It is filled into the companion structure, auth_session_info() by create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth set session_info->sanitized_username in create_local_token()Andrew Bartlett2011-08-031-2/+0
| | | | | | | | | | | Rather than passing this value around the callers, and eventually setting it in register_existing_vuid(), we simply pass it to create_local_token(). This also removes the need for auth_ntlmssp_get_username(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Split calls to gensec plugin into prepare and startAndrew Bartlett2011-08-031-4/+5
| | | | | | | | | | GENSEC has the concept of starting the GENSEC subsystem before starting the actual mechansim. Between these two stages is when most context methods are called, to specify credentials and features. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_and_flags()Andrew Bartlett2011-08-031-1/+0
| | | | | | | | | | | There is no need to mask out these flags as they simply are not set yet. The correct abstraction is to ask for NTLMSSP features. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hashAndrew Bartlett2011-08-031-2/+0
| | | | | | | | | | | | | | | | | | | The session key we want here (the only one that is availble to the encryption layer) is the one obtained by cli_get_session_key(), as NTLMSSP creates a per-session session key via key exchange and NTLMv2 negotiation. The key was never directly the NT hash anyway (this is simply a mistake, the extra MD4() was lost during my previous cleanup f28f113d8e76824b080359c90efd9c92de533740 in 2008), but was MD4(NT hash) in early implementations of NTLMSSP. However, regardless this call is not available on domain trusts between AD domains and Windows 2003 R2, making this less useful. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_or_flagsAndrew Bartlett2011-08-031-1/+0
| | | | | | | | | We now just use auth_ntlmssp_want_feature to get extra flags on the NTLMSSP context Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Add mem_ctx argument to auth_ntlmssp_updateAndrew Bartlett2011-08-031-0/+1
| | | | | | | | This clarifies the lifetime of the returned token. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Add hooks to optionally call into GENSEC in auth_ntlmsspAndrew Bartlett2011-08-031-0/+3
| | | | | | | | | | This allows the current behaviour of the NTLMSSP code to be unchanged while adding a way to hook in an alternate implementation via an auth module. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Add mem_ctx argument to auth_ntlmssp_get_session_key()Andrew Bartlett2011-08-031-1/+2
|