summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2011-10-01Move FSCTL handling into the VFS. Initial code changes. Passes smbtorture ↵Richard Sharpe2-0/+28
NTTRANS-FSCTL. Test added to selftests.
2011-09-26s3-passdb: Cleanup use of fstring and move to talloc.Simo Sorce1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-09-23build: avoid util.h as a public header name due to conflict with MacOSAndrew Bartlett1-1/+1
2011-09-23lib/util: move some timespec helpers from source3 to the toplevelStefan Metzmacher1-10/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 00:15:31 CEST 2011 on sn-devel-104
2011-09-15s3:libsmb: move cli->server{zone,time} to ↵Stefan Metzmacher1-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
2011-09-15s3:libsmb: split cli->secblob into ↵Stefan Metzmacher1-1/+4
cli->conn.smb1.server.{guid,gss_blob,challenge,workgroup} metze
2011-09-15s3:libsmb: move cli->sesskey to cli->conn.smb1.server.session_keyStefan Metzmacher1-1/+1
metze
2011-09-15s3:libsmb: detect lock_read and write_unlock supportStefan Metzmacher1-0/+2
metze
2011-09-15s3:libsmb: move cli->*braw_supported to cli->conn.smb1.server.*brawStefan Metzmacher1-2/+2
This is currently unused, but we might use it in future. metze
2011-09-15s3:libsmb: move cli->sec_mode to cli->conn.smb1.server.security_modeStefan Metzmacher1-1/+1
metze
2011-09-15s3:libsmb: move cli->max_mux to cli->conn.smb1.server.max_muxStefan Metzmacher1-1/+1
metze
2011-09-15s3:libsmb: move cli->max_xmit to cli->conn.smb1.max_xmitStefan Metzmacher1-1/+3
And keep cli->conn.smb1.client.max_xmit and cli->conn.smb1.server.max_xmit. metze
2011-09-15s3:libsmb: move cli->smb1.mid to cli->conn.smb1.midStefan Metzmacher1-1/+2
metze
2011-09-15s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilitiesStefan Metzmacher1-1/+12
And keep cli->conn.smb1.client.capabilities and cli->conn.smb1.server_capabilities. metze
2011-09-15s3:libsmb: move cli->protocol to cli->conn.protocolStefan Metzmacher1-1/+2
metze
2011-09-15s3:libsmb: use local variables in cli_state_create()Stefan Metzmacher1-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
2011-09-15s3:include: add some masks for SMB1 CAP_* flagsStefan Metzmacher1-0/+25
The flags are devided into 3 sections: - client only flags - flags used in both directions - server only flags metze
2011-09-14s3:libsmb: remove unused cli->is_sambaStefan Metzmacher1-1/+0
s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14s3:client.h: remove unused definesStefan Metzmacher1-9/+0
s3:client.h: remove unused defines metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14s3:smb_signing: add support for easier negotiation of SMB signingStefan Metzmacher1-1/+4
We don't make use of it yet, but it will follow. metze
2011-09-14Fix bug #8229 - git patch attached against 3.6.0-rc2 to fix 'widelinks' ↵Jeremy Allison1-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
2011-09-13s3:smb2cli: split cli->smb2.gss_blob from cli->secblobStefan Metzmacher1-0/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104
2011-09-13s3:libsmb: don't mix smb2 share capabilities with smb1 capabilitiesStefan Metzmacher1-0/+1
metze
2011-09-13s3:libsmb: the smb2 server capabilities from the session setup are 32-bitStefan Metzmacher1-1/+1
metze
2011-09-13s3: Fix some nonempty blank linesVolker Lendecke2-4/+4
2011-09-08s3:libsmb: add CLI_FULL_CONNECTION_FORCE_ASCIIStefan Metzmacher1-0/+2
metze
2011-09-08s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORSStefan Metzmacher1-0/+1
metze
2011-08-31s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domainSumit Bose1-0/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31s3-pdb_ipa: Add posix offset to struct pdb_trusted_domainSumit Bose1-0/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-30s3:include: add CAP_LWIO and CAP_DYNAMIC_REAUTH definesStefan Metzmacher1-0/+2
metze
2011-08-28s3:libsmb: make cli_session_request_send/recv() staticStefan Metzmacher1-7/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Aug 28 20:29:01 CEST 2011 on sn-devel-104
2011-08-28s3:libsmb: move cli_smb_oplock_break_waiter*() to clioplock.cStefan Metzmacher1-7/+0
metze
2011-08-13passdb: Add a function to read secrets db from a specified pathAmitay Isaacs1-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().
2011-08-12s3:libsmb: abstract the incoming dispatch function via a function pointerStefan Metzmacher1-0/+11
This will allow handling of SMB2 in future. metze
2011-08-11s3-messaging: Change classification of MSG_SMB_CONF_UPDATED.Simo Sorce1-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>
2011-08-11s3-messaging: Fix messaging classes.Simo Sorce1-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>
2011-08-11s3-messaging: Remove obsolete class.Simo Sorce1-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>
2011-08-10s3:libsmb: store the remote_realm on the cli_stateStefan Metzmacher1-0/+1
metze
2011-08-10s3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()Stefan Metzmacher1-6/+4
This also takes care of the correct casting. metze
2011-08-10s3:include: smb.h base old smb header offsets on new definesStefan Metzmacher1-32/+32
metze
2011-08-10s3:include: smb.h merge some stuff from source4Stefan Metzmacher1-0/+35
metze
2011-08-08s3:registry avoid updating keys which are going to be deleted inGregor Beck1-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>
2011-08-05s3: Fix some nonempty blank linesVolker Lendecke1-3/+3
2011-08-03selftest: test plugin_s4_dc against all ncacn_np testsAndrew Bartlett1-0/+2
Changes to the s3 epmapper behaviour seem to have fixed the rest of these tests. Andrew Bartlett
2011-08-03s3-auth clarify the role of these session keysAndrew Bartlett1-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>
2011-08-03s3-auth remove sanitized_username from auth_serversupplied_infoAndrew Bartlett2-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>
2011-08-03s3-auth set session_info->sanitized_username in create_local_token()Andrew Bartlett1-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>
2011-08-03s3-ntlmssp Split calls to gensec plugin into prepare and startAndrew Bartlett1-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>
2011-08-03s3-ntlmssp Remove auth_ntlmssp_and_flags()Andrew Bartlett1-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>
2011-08-03s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hashAndrew Bartlett1-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>