summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:libsmb: move cli->smb1.mid to cli->conn.smb1.midStefan Metzmacher2011-09-153-3/+5
| | | | metze
* s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilitiesStefan Metzmacher2011-09-153-17/+35
| | | | | | | 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-153-6/+7
| | | | metze
* s3:libsmb: don't set cli->protocol in cli_state_create()Stefan Metzmacher2011-09-151-1/+0
| | | | | | | | | This is done in cli_negprot_done(), when we know the protocol. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 11:57:18 CEST 2011 on sn-devel-104
* s3:libsmb: pass max_protocol to cli_negprot()Stefan Metzmacher2011-09-1513-26/+22
| | | | metze
* s3:libsmb: add basic max_protocol support in cli_negprot()Stefan Metzmacher2011-09-151-7/+15
| | | | metze
* s3:libsmb: use local variables in cli_state_create()Stefan Metzmacher2011-09-153-21/+14
| | | | | | | | | | 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:libsmb: use CAP_EXTENDED_SECURITY instead of cli->use_spnegoStefan Metzmacher2011-09-151-1/+1
| | | | | | cli->capabilities contains the negotiated capabilities. metze
* s3:libsmb: make use of SMB_CAP_BOTH/CLIENT_MASK in ↵Stefan Metzmacher2011-09-151-13/+25
| | | | | | | | cli_session_setup_capabilities() This matches a w2k3 client. metze
* s3:libsmb: calculate the negotiated SMB1 capabilities in cli_negprot_done()Stefan Metzmacher2011-09-151-6/+12
| | | | | | | | | We calculate the negotiated capabilities based on the mask for: - client only flags - flags used in both directions - server only flags metze
* 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: calculate all SMB1 capabilities we want to support for the connectionStefan Metzmacher2011-09-151-2/+24
| | | | | | | | We should do this at startup in cli_state_create() and later calculate the negotiated capabilities in cli_negprot_done(). metze
* s3:libsmb: no need to reset capabilities in cli_session_setup_lanman2()Stefan Metzmacher2011-09-151-10/+0
| | | | | | | This is only used cli->protocol < PROTOCOL_NT1, in which case cli_negprot_done() has already reset cli->capabilities. metze
* s3:libsmb: make sure we always set cli->capabilities at the end of ↵Stefan Metzmacher2011-09-151-3/+6
| | | | | | | | | cli_negprot_done() If the server doesn't support PROTOCOL_NT1 we should reset the negotiated capabilities to 0. metze
* Add a missing include file to two VFS modulesRichard Sharpe2011-09-152-0/+2
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 15 02:56:36 CEST 2011 on sn-devel-104
* Finish commit 8745c70d by Michael Adam.Jeremy Allison2011-09-152-9/+9
| | | | | | | | | If you're going to move winbindd_cache.tdb to the state_path, do it *everywhere*. Found by Ira Cooper <ira@wakeful.net>. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 15 00:43:04 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused cli->is_sambaStefan Metzmacher2011-09-143-31/+1
| | | | | | | | s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytesStefan Metzmacher2011-09-141-0/+8
| | | | | | | | s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytes 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:libsmb: let cli_write_max_bufsize() return the max number of possible bytesStefan Metzmacher2011-09-141-21/+28
| | | | | | | | | | | | | | | s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0x1FFFF - data_offset if CAP_LARGE_WRITEX is given by the server (without signing) or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytesStefan Metzmacher2011-09-141-16/+31
| | | | | | | | | | | | | | | s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0xFFFF if CAP_LARGE_READX is given by the server or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smbd: SMB ReadX with size > 0xffff should only possible for samba clients.Stefan Metzmacher2011-09-141-1/+10
| | | | | | | | | | | | | | | Windows 2008 R2 (and others) ignore the high bits for the read size. Unless we're using the unix extentions and the client uses CIFS_UNIX_LARGE_READ_CAP, we should also ignore the high bits. But we still need to support old "smbclient" binaries and have to check if the client is "Samba". metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smbd: remember the client unix capabilities on the connectionStefan Metzmacher2011-09-142-43/+44
| | | | | | metze Signed-off-by: Jeremy Allison <jra@samba.org>
* Fix bug #8453 - smbclient segfaults when dialect option -m is used for ↵Jeremy Allison2011-09-141-0/+13
| | | | | | legacy dialects Ensure we have valid pointers.
* libcli/auth: add some const to SMBNTencrypt_hash() and SMBNTencrypt()Stefan Metzmacher2011-09-142-4/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 14 19:49:24 CEST 2011 on sn-devel-104
* s4:wrepl_server: return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-1/+1
| | | | | | We should return the same in all places. metze
* s4:libcli/wrepl: return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-3/+3
| | | | | | We should return the same in all places. metze
* s4:lib/messaging: let irpc handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s4:librpc/rpc: return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s3:winbindd: let wbint handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s3:rpc_server: let rpcint handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s3:rpc_client: return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-142-5/+5
| | | | | | | We should return the same in all places and don't mix NT_STATUS_INVALID_CONNECTION and NT_STATUS_CONNECTION_INVALID. metze
* s3:libsmb: return NT_STATUS_CONNECTION_DISCONNECTED instead of ↵Stefan Metzmacher2011-09-141-1/+1
| | | | | | | | NT_STATUS_CONNECTION_INVALID We should return the same in all places. metze
* s3:torture/run_oplock4: don't set cli->use_level_II_oplocksStefan Metzmacher2011-09-141-3/+0
| | | | | | | | | | | Doing this after the session setup is pointless, as that's the only place where we tell the server we support level II oplocks. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 14 17:23:46 CEST 2011 on sn-devel-104
* s3:smb2_server: SMB2_OP_GETINFO doesn't require at least 1 dyn byteStefan Metzmacher2011-09-141-1/+13
| | | | metze
* s3-libnet: add missing newlines in debug statement.Günther Deschner2011-09-141-2/+2
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Sep 14 15:52:10 CEST 2011 on sn-devel-104
* s3:smbd: make use of better SMB signing negotiationStefan Metzmacher2011-09-144-4/+31
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 14 09:41:02 CEST 2011 on sn-devel-104
* s3:libsmb: make use of new advanded SMB signingStefan Metzmacher2011-09-144-57/+64
| | | | metze
* s3:smb_signing: add support for easier negotiation of SMB signingStefan Metzmacher2011-09-145-37/+83
| | | | | | We don't make use of it yet, but it will follow. metze
* s3:smbd: echo FLAGS2_SMB_SECURITY_SIGNATURES* and the signature field in the ↵Stefan Metzmacher2011-09-141-3/+9
| | | | | | | | reply This matches what windows is doing. metze
* tdb2: remove bogus leftover .orig file.Rusty Russell2011-09-141-618/+0
| | | | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Sep 14 06:06:41 CEST 2011 on sn-devel-104
* Fix bug #8229 - git patch attached against 3.6.0-rc2 to fix 'widelinks' ↵Jeremy Allison2011-09-145-1/+67
| | | | | | | | | | | | 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
* tdb_compat: change offset of CLEAR_IF_FIRST lock.Rusty Russell2011-09-141-2/+2
| | | | | | | | | | This makes it match tdb1, which mean it will Just Work as TDB2 gets tdb1 format support. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Sep 14 02:21:29 CEST 2011 on sn-devel-104
* tdb_compat: support tdb_reopen/tdb_reopen_all for TDB2Rusty Russell2011-09-142-3/+49
| | | | | | | | This matters with the clear-if-first support: we need to re-establish those locks at this point. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* util_tdb: return -1/0 from lock_with_timeout functions.Rusty Russell2011-09-141-2/+2
| | | | | | | | | Keeps the tdb2 API change (which returns error codes, rather than -1) localized. The function returns -1 down the other path, so make it consistent. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* dbwrap_tdb: handle tdb2 return values properly.Rusty Russell2011-09-141-4/+4
| | | | | | | | | TDB2 versions of tdb_parse_record etc return an error code, not -1. Turn those into -1/0 in dbwrap_tdb to insulate the rest of the code from that change. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: fix prototypes which return enum TDB_ERROR.Rusty Russell2011-09-142-10/+10
| | | | | | | | | | Since enums and ints are compatible in C, the compiler didn't warn that our prototypes for these functions disagreed with the definitions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6d3832ee613adeb9ae7ed6454996ffa39c32650f)
* tdb2: fix return handling in pytdb wrapper.Rusty Russell2011-09-141-8/+10
| | | | | | | | tdb_close() does genuinely return non-zero, not an error code, even in tdb2. And tdb_exists() returns true or false, not an error code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: add error conversion functions.Rusty Russell2011-09-1412-91/+97
| | | | | | | | | | This clarifies the code a little, but also provides a more explicit mechanism which can be used to debug error handling (by introducing tdb_err_t and making it a pointer type). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit afa6d57b7d93fe4675a952f556eb462951baa257)
* tdb2: set tdb_error() on tdb_transaction_prepare_commit.Rusty Russell2011-09-141-1/+1
| | | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit feb36b14278b4230af70dab90369a345b6a027ef)