summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix an IPv6 breakage I introduced by adding an strlcpy truncation check. ↵Jeremy Allison2012-03-311-3/+10
| | | | | | | | | | | Found by Matthieu Patou <mat@samba.org>. The truncate of the strlcpy() here was a *desired* side effect. strlcpy()/strlcat() should never be used like that. Be more explicit about the truncation and don't use strlcpy here. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 31 07:59:16 CEST 2012 on sn-devel-104
* Fix bug #8831 - Inconsistent (with manpage) command-line switch for "help" ↵Jeremy Allison2012-03-301-1/+1
| | | | | | | in smbtree Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 30 22:59:53 CEST 2012 on sn-devel-104
* Who would have guessed - checking returns from strlcat found a memory ↵Jeremy Allison2012-03-301-1/+1
| | | | overwrite bug :-).
* More strlcat/strlcpy truncate checks.Jeremy Allison2012-03-308-26/+94
|
* s4 dns: Allow updating PTR records.Kai Blin2012-03-301-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
* s3: Avoid a crash with debug level 10Volker Lendecke2012-03-301-1/+2
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 30 16:52:16 CEST 2012 on sn-devel-104
* ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl functionMatthieu Patou2012-03-308-23/+28
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
* Start to add truncate checks on all uses of strlcpy(). Reading lwnJeremy Allison2012-03-294-25/+38
| | | | | | | has it's uses :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 29 20:48:15 CEST 2012 on sn-devel-104
* Based on code from Richard Sharpe <realrichardsharpe@gmail.com>,Jeremy Allison2012-03-291-1/+4
| | | | ensure we don't crash on a NULL DACL.
* s3: Fix a valgrind errorVolker Lendecke2012-03-291-1/+8
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 29 15:50:13 CEST 2012 on sn-devel-104
* lib/tdb: Update ABIAmitay Isaacs2012-03-292-1/+67
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Mar 29 13:12:46 CEST 2012 on sn-devel-104
* lib/tdb: Add/expose lock functions to support CTDBAmitay Isaacs2012-03-291-2/+16
| | | | | | | | | | | | | | | | | | | This patch adds two lock functions used by CTDB to perform asynchronous locking. These functions do not actually perform any fcntl operations, but only increment internal counters. - tdb_transaction_write_lock_mark() - tdb_transaction_write_lock_unmark() It also exposes two internal functions - tdb_lock_nonblock() - tdb_unlock() These functions are NOT exposed in include/tdb.h to prevent any further uses of these functions. If you ever need to use these functions, consider using tdb2. Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* cast: make sure suncc sees a constant.Rusty Russell2012-03-292-8/+22
| | | | | | | | | | | | | | | | | | cast_const() et. al. are supposed to be a constant expression, so you can do things like: static char *p = cast_const(char *, (const char *)"hello"); Unfortunately, a cast to intptr_t and arithmetic makes suncc reject it as a constant expression. We need the cast, because (1) the expression could be a void *, so we can't just add to it, and (2) gcc complains with -Wcast-qual without it. So instead of adding BUILD_BUG_OR_ZERO, we use a ? :, which keeps everyone happy. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 74859ab18b10aaf990848e49d7789ff5c6cf96c6) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Mar 29 08:18:57 CEST 2012 on sn-devel-104
* cast: test/compile_fail-cast_static.c should fail without COMPOUND_LITERALS.Rusty Russell2012-03-291-3/+9
| | | | | | | It still gave a warning on gcc, because casting a char to a char* gives a warning. Not so on sun CC. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6569a707d169a629e25e10710c760c8dc84525c7)
* tdb2: fix prototype in tdb1 code.Rusty Russell2012-03-291-5/+5
| | | | | | | | | | We were handing an int-returning function where we should hand an enum TDB_ERROR returning function. Worse, it was returning 0/-1 instead of 0/TDB_ERR_*. Fortunately, it's only compared against success, but the Solaris compiler warns about it, and it's not correct anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s4-upgradedns: Make sure the attribute exists before accessing itAmitay Isaacs2012-03-281-4/+8
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 28 10:27:40 CEST 2012 on sn-devel-104
* Add DEBUG statements to show when access has been denied and why.Richard Sharpe2012-03-281-0/+2
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Wed Mar 28 07:07:26 CEST 2012 on sn-devel-104
* s4 dns: Only do recursive queries when allowed/desiredKai Blin2012-03-272-8/+27
| | | | | | | | If recursive queries are switched off in smb.conf or the client doesn't ask for recursion, don't recurse. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104
* s4 dns: Check smb.conf if we should allow recursionKai Blin2012-03-272-2/+24
|
* s4 dns: Allow changing the dns operation flags in handlersKai Blin2012-03-274-5/+23
|
* s4 dns: Only forward for zones we don't ownKai Blin2012-03-273-2/+33
|
* s4 dns: Forward questions we can't answer to another serverKai Blin2012-03-272-7/+80
| | | | | This makes use of libdns and currently hardcodes the forward server, but it works. :)
* s4 dns: Add a simple dns lookup helperKai Blin2012-03-273-0/+168
|
* s4 dns: Add a simple async client libraryKai Blin2012-03-274-0/+231
|
* selftest.py: Add get_interface.Jelmer Vernooij2012-03-272-4/+45
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 27 00:32:48 CEST 2012 on sn-devel-104
* ndr: Update ABI.Jelmer Vernooij2012-03-261-0/+245
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Mar 26 19:58:25 CEST 2012 on sn-devel-104
* wafsamba: Cope with slight differences in gdb output regarding incomplete ↵Jelmer Vernooij2012-03-265-246/+59
| | | | | | sequences. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8820
* Add ABI file for libndr.Jelmer Vernooij2012-03-262-2/+249
|
* s3: Pass filters explicitly through vfs notify watchVolker Lendecke2012-03-2612-32/+49
| | | | | | | | | This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
* s3: Fix a typoVolker Lendecke2012-03-261-1/+1
|
* s3: Rename a variable in inotify_watch for clarityVolker Lendecke2012-03-261-5/+5
|
* s3: Pass "filter" instead of "notify_entry" to inotify_mapVolker Lendecke2012-03-261-4/+4
| | | | This makes the potential modification a bit more obvious
* s3-docs: Prepend '/' to filename argument (Bug #8826)SATOH Fumiyasu2012-03-261-1/+1
|
* s4-dsdb: use constant-time search for descriptor -> get_last_structural_class()Andrew Bartlett2012-03-262-2/+4
| | | | | | | | | | The objectClass list is sorted at this point, as we are called below the objectclass module here, or are working from a search result. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Mar 26 05:38:13 CEST 2012 on sn-devel-104
* Fix the PyDoc comments in samba.smb.SMB and add a security_info argument to ↵Richard Sharpe2012-03-261-8/+23
| | | | | | | both get_acl and set_acl to allow the caller to specify what info is wanted. Defaults to 0 which means all info. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Mar 26 04:05:25 CEST 2012 on sn-devel-104
* s4:ldap.py - re-introduce the ↵Matthias Dieter Wallnöfer2012-03-261-11/+4
| | | | | | | | | | | | | "(dn=CN=ldaptestUSER3,CN=Users,DC=wallnoefer2,DC=local)" test This syntax is not supported by Windows AD and should also be denied by s4/LDB. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Mar 26 02:30:53 CEST 2012 on sn-devel-104
* LDB/s4 - deny the "(dn=...)" syntax on search filters when in AD modeMatthias Dieter Wallnöfer2012-03-264-2/+20
| | | | | | | Achieve this by introducing a "disallowDNFilter" flag. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer2012-03-269-31/+32
| | | | | | | Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ldap.py - test the already mentioned structural object class sorting ↵Matthias Dieter Wallnöfer2012-03-261-0/+15
| | | | | | | behaviour Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb - enhance "get_last_structural_class()" for optimisationsMatthias Dieter Wallnöfer2012-03-263-10/+29
| | | | | | | | If the objectclass entry has been sorted before we are able to determine the (last) structural or 88 object class in constant time. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:objectclass LDB module - fix up the sorting in respect to structural or ↵Matthias Dieter Wallnöfer2012-03-261-4/+18
| | | | | | | | | 88 objectclasses Please have a look at MS-ADTS 3.1.1.1.4. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:objectclass LDB module - clean up "objectclass_sort()"Matthias Dieter Wallnöfer2012-03-261-24/+13
| | | | | | | Make it easier to comprehend Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-make: Fix build with new smb2_session file.Jelmer Vernooij2012-03-261-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Mar 26 00:56:13 CEST 2012 on sn-devel-104
* LIBCLI_SMB2: Depend on cli_smb_common rather than libsmb.Jelmer Vernooij2012-03-251-1/+1
| | | | | The latter pulls in a fair number of other libraries, including popt and the Samba registry library.
* smb2: Move smb2cli session setup code to cli_smb_common.Jelmer Vernooij2012-03-253-207/+234
|
* libcli/smb: Stop generating unused proto file.Jelmer Vernooij2012-03-251-1/+0
|
* replace: Avoid DEBUG(), which is not available in libreplace.Jelmer Vernooij2012-03-251-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Mar 25 00:13:59 CET 2012 on sn-devel-104
* libreplace: Add usleep implementation.Jelmer Vernooij2012-03-242-0/+20
|
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-246-39/+4
| | | | usleep moving to libreplace.
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-2449-136/+95
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104