summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tdb: don't free old recovery area when expanding if already at EOF.Rusty Russell2011-12-211-17/+30
| | | | | | | | | | | | We allocate a new recovery area by expanding the file. But if the recovery area is already at the end of file (as shown in at least one client case), we can simply expand the record, rather than freeing it and creating a new one. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Dec 21 06:25:40 CET 2011 on sn-devel-104
* tdb: use same expansion factor logic when expanding for new recovery area.Rusty Russell2011-12-213-21/+34
| | | | | | | | | | If we're expanding because the current recovery area is too small, we expand only the amount we need. This can quickly lead to exponential growth when we have a slowly-expanding record (hence a slowly-expanding transaction size). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* Allow an object to be deleted from a directory if the caller has ↵Jeremy Allison2011-12-201-1/+9
| | | | | | | | | | DELETE_CHILD access even if we don't have access to read the ACL on the object. Fixes bug #8673 - NT ACL issue. Different fix needed for 3.6.x. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 20 22:13:51 CET 2011 on sn-devel-104
* s3: Fix some False/NULL hickupsVolker Lendecke2011-12-208-17/+17
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
* samba-tool: Add transaction wrapper for creating GPOAmitay Isaacs2011-12-201-51/+44
| | | | | | | | This ensures that if the GPT files are not copied via SMB, AD changes are rolled back. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Dec 20 09:12:41 CET 2011 on sn-devel-104
* tdb2: Avoid a malloc/memcpy in _tdb1_storeVolker Lendecke2011-12-191-19/+8
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 19 16:53:40 CET 2011 on sn-devel-104
* tdb: Avoid a malloc/memcpy in _tdb_storeVolker Lendecke2011-12-191-17/+8
|
* s4-dsdb: Relax the conditions where we can't do a subtree deleteMatthieu Patou2011-12-191-1/+19
| | | | | | | | | If the parent object is a SAM object (as defined in 3.1.1.5.2.3 Special Classes and Attributes of MS-ADTS) then we can use the subtree delete control even if the object is a critical one. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Dec 19 14:32:19 CET 2011 on sn-devel-104
* s4:drsuapi/getncchanges: return WERR_NOMEM if talloc_array() failsStefan Metzmacher2011-12-191-0/+3
| | | | metze
* s4-drs: introduce a timeout in the getncchanges processing to always return ↵Matthieu Patou2011-12-191-6/+27
| | | | | | | something in less than x seconds Signed-off-by: Andrew Tridgell <tridge@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in ↵Matthieu Patou2011-12-191-26/+45
| | | | | | | | | | | | unefficient Current implementation of ldb_msg_find_attr_as_* iterate on the list of attributes returned by the search and make a string comparison. As we sorting the array of messages / guids we tend to call this function many times. By storing the GUID and the USN in a separate structure we are sure to call this function only once per attribute and object. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-becomedc: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects ↵Matthieu Patou2011-12-191-0/+13
| | | | | | | | | | | for the base dn partition Windows dcpromo do the same: getncchanges with DRS_GET_ANC and DRS_CRITICAL_ONLY, then it does a getncchanges without those flags for the rest. Signed-off-by: Andrew Tridgell <tridge@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-join: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for ↵Matthieu Patou2011-12-191-0/+10
| | | | | | | | | | | the base dn partition Windows dcpromo do the same: getncchanges with DRS_GET_ANC and DRS_CRITICAL_ONLY, then it does a getncchanges without those flags for the rest. Signed-off-by: Andrew Tridgell <tridge@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: be more careful on 4G files.Rusty Russell2011-12-196-23/+53
| | | | | | | | | | | I came across a tdb which had wrapped to 4G + 4K, and the contents had been destroyed by processes which thought it only 4k long. Fix this by checking on open, and making tdb_oob() check for wrap itself. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 19 07:52:01 CET 2011 on sn-devel-104
* patch tdb-oob-fix.patchRusty Russell2011-12-190-0/+0
|
* s3-net: Fix the return codes. 0 on success, -1 on failureAmitay Isaacs2011-12-191-2/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Dec 19 01:57:24 CET 2011 on sn-devel-104
* s3: Fix the clustering buildVolker Lendecke2011-12-176-10/+10
| | | | | | | ctdb_private.h already defines set_close_on_exec. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Dec 17 18:41:39 CET 2011 on sn-devel-104
* libcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and ↵Stefan Metzmacher2011-12-172-0/+4
| | | | | | | | | NT_STATUS_ALL_SIDS_FILTERED metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Dec 17 14:24:40 CET 2011 on sn-devel-104
* s4 dns: Allow updates based on smb.conf settingKai Blin2011-12-176-2/+51
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104
* s4 dns: Add some debug outputKai Blin2011-12-171-0/+3
|
* s4 dns: Actually handle the update requestKai Blin2011-12-173-0/+383
|
* s4 dns: Implement RFC-compatible update prescanKai Blin2011-12-172-6/+41
|
* s4 dns: Update prerequisite checking conforming to RFCKai Blin2011-12-174-42/+313
|
* s4 dns: Give better test output on RCODE mismatchKai Blin2011-12-171-1/+20
|
* s4 dns: Move record lookup to dns_utils.cKai Blin2011-12-173-36/+58
|
* s4 dns: Implement dns record comparison functionKai Blin2011-12-172-0/+57
|
* s4 dns: Implement dns name equality checkKai Blin2011-12-172-0/+10
|
* s4 dns: Fix some typos in comments and a whitespaceKai Blin2011-12-171-3/+3
|
* check_name() not needed in mkdir.Jeremy Allison2011-12-171-5/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 17 02:44:55 CET 2011 on sn-devel-104
* Ensure VALID_STAT before accessing fields.Jeremy Allison2011-12-171-1/+3
|
* s4:torture/rap/printing: check smbcli_rap_netprintqgetinfo() WERR statusStefan Metzmacher2011-12-171-0/+7
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Dec 17 01:09:32 CET 2011 on sn-devel-104
* Fix bug #8664 - Renaming a symlink fails if the symlink target is outside of ↵Jeremy Allison2011-12-161-2/+4
| | | | | | | the share. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 16 23:32:26 CET 2011 on sn-devel-104
* Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.Jeremy Allison2011-12-161-1/+4
|
* wafsamba: Fix undefined variable name in error message.Jelmer Vernooij2011-12-161-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Dec 16 21:53:57 CET 2011 on sn-devel-104
* s3:idmap_autorid: use less transactionsChristian Ambach2011-12-161-55/+76
| | | | | | | | reduce the amount of transactions that are mostly unnecessary because no updates were done, only reads Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Dec 16 20:18:37 CET 2011 on sn-devel-104
* s3:dbwrap fix return value of db_tdb_parseChristian Ambach2011-12-161-1/+5
| | | | | use the TDB ecode to determine the NTSTATUS return value and not the return code that is just -1
* s3:printing/spoolssd: avoid using server_messaging_context()Stefan Metzmacher2011-12-161-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 16:29:41 CET 2011 on sn-devel-104
* s3:smbd: remove unused sconn_server_id()Stefan Metzmacher2011-12-164-31/+0
| | | | metze
* s3:smbd: avoid using sconn_server_id()Stefan Metzmacher2011-12-169-19/+24
| | | | metze
* s3:locking: avoid using sconn_server_id()Stefan Metzmacher2011-12-162-7/+7
| | | | metze
* s3:lib/conn_tdb: avoid using sconn_server_id()Stefan Metzmacher2011-12-161-1/+2
| | | | metze
* s4:libcli/rap: the caller should get talloc children from ↵Stefan Metzmacher2011-12-162-1/+6
| | | | | | | | | | | | call->ndr_pull_{param,data} This should fix the flakey 'rap.printing.rap_printq_getinfo' test, see https://git.samba.org/autobuild.flakey/2011-12-16-0022/samba4.stdout metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 13:11:42 CET 2011 on sn-devel-104
* s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'Stefan Metzmacher2011-12-161-2/+2
| | | | metze
* s4:libcli/rap: use talloc_zero() and initialize everythingStefan Metzmacher2011-12-161-8/+3
| | | | metze
* s4:libcli/rap: remove unused members from struct rap_callStefan Metzmacher2011-12-161-3/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104
* s4:libcli/rap: initialize call->rcv_datalenStefan Metzmacher2011-12-161-0/+1
| | | | metze
* s3: Add some const to find_oplock_typesVolker Lendecke2011-12-161-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 16 09:10:07 CET 2011 on sn-devel-104
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-3/+2
| | | | Move the declaration of "id" closer to its use
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-4/+6
| | | | Move the calculation of "new_file_created" closer to its use
* s3: Make open_file_ntcreate a bit easier to readVolker Lendecke2011-12-161-3/+3
| | | | Remove a negation where it's not necessary