summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* packaging(RHEL-CTDB): package cclean toolGregor Beck2012-06-291-0/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* packaging(RHEL-CTDB): make makespec.sh aware of new location of version.hGregor Beck2012-06-291-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()Michael Adam2012-06-291-1/+3
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()Michael Adam2012-06-291-2/+3
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() functionMichael Adam2012-06-291-1/+4
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: rename db_ctdb_own_record() -> db_ctdb_can_use_local_copy()Michael Adam2012-06-291-3/+3
| | | | | | | This matches the function's intention much closer, since it also tests whether we have a valid local read only copy. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbrwap_ctdb: remove commented out legacy codeMichael Adam2012-06-291-5/+1
|
* s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdbMichael Adam2012-06-291-4/+3
| | | | | | | | | | | | The introduction of read only copies has broken the algorithm for deteting whether we can use the local record copy for fetch_locked and fetch: For fetch locked the new code always uses the local copy if there is one... This patch re-establish the original algorithm for the build against a ctdb without read only record copies. Reported-by: Gregor Beck <gbeck@sernet.de>
* lib/ccan: readd execinfo dependency to failtestStefan Metzmacher2012-06-291-1/+4
| | | | | | metze Signed-off-by: Michael Adam <obnox@samba.org>
* libcli/smb: add SMB2_CAP_DIRECTORY_LEASING to SMB2_CAP_ALLStefan Metzmacher2012-06-291-0/+1
| | | | | | metze Signed-off-by: Michael Adam <obnox@samba.org>
* lib/util: fix fd leak in anonymous_shared_allocate() if MAP_ANON is not ↵Stefan Metzmacher2012-06-291-1/+14
| | | | | | available metze
* s3:smb2_server: remove max_charge check in ↵Stefan Metzmacher2012-06-291-16/+0
| | | | | | | | | | smbd_smb2_request_verify_creditcharge() The client can send any credit charge value, it's ok to send more than needed. metze Signed-off-by: Michael Adam <obnox@samba.org>
* s3:build: tell linker to use corefoundation on all darwin releasesBjörn Jacke2012-06-291-2/+2
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Jun 29 14:43:39 CEST 2012 on sn-devel-104
* s3: merge bsd_statvfs and darwin_statvfsBjörn Jacke2012-06-291-53/+31
|
* ccan: we're subsystems, not a library.Rusty Russell2012-06-295-27/+41
| | | | | | | | | | | | | | | | | | | | Don't expose a libccan.so; it would produce clashes if someone else does the same thing. Unfortunately, if we just change it from a SAMBA_LIBRARY to a SAMBA_SUBSYSTEM, it doesn't create a static library as we'd like, but links all the object files in. This means we get many duplicates (eg. everyone gets a copy of tally, even though only ntdb wants it). So, the solution is twofold: 1) Make the ccan modules separate. 2) Make the ccan modules SAMBA_SUBSYSTEMs not SAMBA_LIBRARYs so we don't build shared libraries which we can't share. 3) Make the places which uses ccan explicit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date(master): Fri Jun 29 06:22:44 CEST 2012 on sn-devel-104
* Move back to using per-thread credentials on Linux. Fixes the glibc native ↵Jeremy Allison2012-06-297-24/+85
| | | | | | | | | | | | | AIO lost wakeup problem. See this post: https://lists.samba.org/archive/samba-technical/2012-June/085101.html for details. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
* Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison2012-06-2818-112/+362
| | | | | | Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
* Add missing setresgid() wrapper.Jeremy Allison2012-06-281-0/+1
|
* docs-xml: document "server max protocol" "SMB2" selects PROTOCOL_SMB2_10Stefan Metzmacher2012-06-291-1/+1
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 29 02:07:17 CEST 2012 on sn-devel-104
* s3:param: change "server max protocol" to "SMB2" (SMB2_10)Stefan Metzmacher2012-06-291-1/+1
| | | | metze
* lib/param: let "SMB2" select PROTOCOL_SMB2_10Stefan Metzmacher2012-06-291-1/+1
| | | | metze
* s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() ↵Stefan Metzmacher2012-06-291-11/+23
| | | | | | | | | simpler We just need a max_charge variable to make the algorithm independent of multi_credit support. metze
* s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit.Stefan Metzmacher2012-06-291-6/+1
| | | | | | | A credit charge of 0 is really not a special case, it just means the same as 1. metze
* 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
* s3:smb2_server: grant extra credits for multi-credit requestsStefan Metzmacher2012-06-291-2/+10
| | | | metze
* s3:smb2_server: implement credit granting similar to windowsStefan Metzmacher2012-06-292-19/+53
| | | | | | This makes it much easier to compare traces. metze
* s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAXStefan Metzmacher2012-06-291-2/+17
| | | | metze
* s3:smb2_server: make sure we don't grant more credits than we allowStefan Metzmacher2012-06-292-35/+92
| | | | | | | | | If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze
* s3:smb2_server: check the credit_charge against the already granted creditsStefan Metzmacher2012-06-291-7/+12
| | | | metze
* s3:smb2_server: split out a smb2_validate_sequence_number() functionStefan Metzmacher2012-06-291-40/+77
| | | | metze
* s3:smb2_server: clear sequence window if we got the lowest sequence idStefan Metzmacher2012-06-291-2/+2
| | | | | | Otherwise we'll never consume sequence id '0'. metze
* s3:smb2_server: fix calculation of the next bitmap_offsetStefan Metzmacher2012-06-291-1/+1
| | | | metze
* s3:smb2_server: remove unused and confusing ↵Stefan Metzmacher2012-06-292-8/+4
| | | | | | DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR metze
* s3:smb2_server: call smbd_smb2_request_validate() also in ↵Stefan Metzmacher2012-06-291-0/+6
| | | | | | | | smbd_smb2_first_negprot() We need to consume message_id 0, for SMB1 negprot starts. metze
* s3:smb2_server: start the connection with one credit granted to the clientStefan Metzmacher2012-06-291-1/+1
| | | | metze
* s3: fine tune and clean up statvfs testsBjörn Jacke2012-06-282-9/+8
| | | | | | | | This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104
* docs-xml: fix typos and format in smb.conf server max protocol manBjörn Baumbach2012-06-284-25/+51
|
* packaging(RHEL-CTDB): fix build dependenciesBjörn Baumbach2012-06-281-2/+2
| | | | | Building manual pages needs rsync for copying built mans. source3/script/installmo.sh calls msgfmt, thats part of gettext.
* selftest: run pdbtest against s3dc as wellAndrew Bartlett2012-06-282-4/+4
| | | | | | | | | | | | This validates the password expiry, account disable in the s3 auth code and the save/restore of values in tdbsam. It also provides the first test of some net sam set subcommands. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Jun 28 20:39:38 CEST 2012 on sn-devel-104
* selftest: use a loop rather than declare tests for both dc and s3dcAndrew Bartlett2012-06-281-16/+16
|
* librpc/ndr: Initilaise the remainder of struct dom_sid after a pullAndrew Bartlett2012-06-281-0/+1
| | | | | | | | This copes with the fact that r->sub_auths is a fixed-size array, not an allocated pointer, and so will still have some bytes no filled in if the sid did not have a MAX_SUB_AUTHS sub-authorities. Andrew Bartlett
* s4-torture: fix typo in samlogon test.Günther Deschner2012-06-281-1/+1
| | | | | | | Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Thu Jun 28 18:43:46 CEST 2012 on sn-devel-104
* s4-torture: use torture context for printing debug output.Günther Deschner2012-06-281-111/+97
| | | | Guenther
* s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.hVolker Lendecke2012-06-281-1/+0
| | | | | | | Signed-off-by: Bjoern Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 16:43:13 CEST 2012 on sn-devel-104
* s3:smbd: change nt_open_pipe() to uint16_t pnum/fnumStefan Metzmacher2012-06-281-3/+3
| | | | | | | | | This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104
* s3:smb2_create: add usefull DEBUG() messageStefan Metzmacher2012-06-281-0/+3
| | | | | | | | | | All calls which take an file handle have the same, so we should also log it, when we create a handle. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104
* s3:smbd/files: fsp->fnum is uint64_t not int!Stefan Metzmacher2012-06-281-3/+3
| | | | metze
* s3:brlock: s/int/uint64_t for fnumStefan Metzmacher2012-06-281-1/+1
| | | | | | | | | | | | | | | fsp->fnum and lock->fnum are uint64_t already and we should not truncate the value here. Currently this doesn't matter as we only use 16-bit. But as 'int' is int32_t and we later compare fnum with lock->fnum == fnum, the cast from int32_t to uint64_t goes via int64_t instead of uint32_t. This means even if fsp->fnum just uses 32-bit of the uint64_t we'll get the wrong result, as the implicit cast from a negative int32_t value to uint64_t adds 0xFFFFFFFF00000000. metze
* s3:brlock: add some const to print_lock_struct()Stefan Metzmacher2012-06-281-1/+1
| | | | metze
* s3:wscript: use LOCKING subsystem for smbtorture3Stefan Metzmacher2012-06-281-1/+2
| | | | metze