summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tdb: version 1.3.5tdb-1.3.5Alexander Drozdov2015-04-292-1/+70
| | | | | | | | | | | ABI change: tdb_chainlock_read_nonblock() has been added. Signed-off-by: Alexander Drozdov <al.drozdov@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 29 00:05:29 CEST 2015 on sn-devel-104
* tdb: introduce tdb_chainlock_read_nonblock(), a nonblock variant of ↵Alexander Drozdov2015-04-282-0/+8
| | | | | | | | tdb_chainlock_read() Signed-off-by: Alexander Drozdov <al.drozdov@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Remove server_id_str()Volker Lendecke2015-04-2817-79/+87
| | | | | | | | | | Call server_id_str_buf instead Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Apr 28 20:48:01 CEST 2015 on sn-devel-104
* lib: Simplify dom_sid_parse_lengthVolker Lendecke2015-04-281-8/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Fix a typoVolker Lendecke2015-04-281-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Fix the O3 developer buildVolker Lendecke2015-04-281-3/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Remove procid_str_staticVolker Lendecke2015-04-2811-36/+61
| | | | | | | | Replace all callers with direct calls to server_id_str_buf without talloc_tos() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_gpfs: Fix ENODATA for getacl on .snapshot dirsRalph Wuerthner2015-04-281-0/+8
| | | | | | | | | | | Fall back to POSIX ACLs in this case. Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Apr 28 13:19:25 CEST 2015 on sn-devel-104
* lib: Use isspace on unsigned charVolker Lendecke2015-04-271-5/+14
| | | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11223 Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Apr 27 23:54:27 CEST 2015 on sn-devel-104
* Add set date to tdb manpages.Jelmer Vernooij2015-04-274-0/+4
| | | | | | | This makes builds reproducible. Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reveiewed-by: Jeremy Allison <jra@samba.org>
* Drop unused and uninstalled SWIG wrapper for talloc.Jelmer Vernooij2015-04-271-31/+0
| | | | | | | This file was also still incorrectly licensed under the GPLv3. Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* pep8: Move to third_party/.Jelmer Vernooij2015-04-2755-1959/+5446
| | | | | | | Also, update to latest upstream version. Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* ctdb-scripts: New configuration variable CTDB_NODE_ADDRESSMartin Schwenke2015-04-272-0/+24
| | | | | | | | | | | | | Required when automatic address detection can not be used. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net.ipv4.ip_nonlocal_bind=1. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Apr 27 06:10:08 CEST 2015 on sn-devel-104
* ctdb-doc: Move --listen documentation from debugging optionsMartin Schwenke2015-04-271-21/+22
| | | | | | | There are valid real-world use cases. Improve the documentation. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Simplify a command pipelineMartin Schwenke2015-04-271-1/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Replace uses of "ctdb pnn" with ctdb_get_pnn()Martin Schwenke2015-04-274-10/+9
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Changed uses of "ctdb xpnn" to ctdb_get_pnn()Martin Schwenke2015-04-273-9/+9
| | | | | | | | | | "ctdb xpnn" does not work when sysctl net.ipv4.ip_nonlocal_bind=1, since it determines the node by attempting to bind to each addres in the nodes file. The solution is to not use "ctdb xpnn". After the initial call, ctdb_get_pnn() will be more efficient that "ctdb xpnn". Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: New function ctdb_set_pnn() to change PNNMartin Schwenke2015-04-274-14/+21
| | | | | | | | | | | | | | | | | ctdb_get_pnn() incorrectly caches to the same file regardless of what node is selected via FAKE_CTDB_PNN. Instead, set the PNN using new function ctdb_get_pnn(), which also makes CTDB_VARDIR point to a node-specific subdirectory. This means that ctdb_get_pnn() will correctly cache to the node-specific directory. Fake tickle and TDB files/directories used by the ctdb stub need to be the same across all PNNs, so change these to use $EVENTSCRIPTS_TESTS_VAR_DIR instead of node-specific $CTDB_VARDIR. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: New function ctdb_get_pnn() does cached retrieval of PNNMartin Schwenke2015-04-271-0/+14
| | | | | | | | This avoids the expense of establishing a client connection to the daemon just to get the PNN of the current node. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* Revert "wafsamba: flags from enviroment are put before our own internal ↵Ralph Boehme2015-04-261-42/+0
| | | | | | | | | | | | versions" This reverts commit b2bb6aeb8057ac725f6ad12378344b201c3a3ba2. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Apr 26 18:40:39 CEST 2015 on sn-devel-104
* s4: rpc: Refactor dcesrv_alter() function into setup and send steps.Jeremy Allison2015-04-251-52/+62
| | | | | | | | | | | | | | Fixes bug: https://bugzilla.samba.org/show_bug.cgi?id=11236 Based on code from Julien Kerihuel <j.kerihuel@openchange.org> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 25 02:43:22 CEST 2015 on sn-devel-104
* sharesec: Use common parse_ace functionChristof Schmitt2015-04-251-174/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* sharesec: Print ACEs in similar format as expected in inputChristof Schmitt2015-04-252-13/+9
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* util_sd: Make server conncection optionalChristof Schmitt2015-04-251-1/+5
| | | | | | | | | If cli is not set, only attempt numeric conversions. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Move sec_desc_print to common fileChristof Schmitt2015-04-253-81/+84
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Move print_ace and parse_ace to common fileChristof Schmitt2015-04-253-354/+358
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Move StringToSid to common fileChristof Schmitt2015-04-253-62/+62
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Move SidToString to common fileChristof Schmitt2015-04-254-86/+145
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Use defines for security flagsChristof Schmitt2015-04-251-9/+10
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbcacls: Make 'numeric' a local variableChristof Schmitt2015-04-251-20/+25
| | | | | | | | | | This will allow moving code to a shared file without relying on a global variable. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* docs: correctly depend on used xsl files and catalog for building manpages.tMichael Adam2015-04-241-1/+3
| | | | | | | | | | So changes in (e.g.) our man.xsl will trigger a rebuild of the manpages. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Apr 24 15:39:31 CEST 2015 on sn-devel-104
* s4-setup: Add saltPrincipal to secrets_dns.ldifAndreas Schneider2015-04-241-0/+1
| | | | | | | | | | | | This adds the correct salt principal to the secretsdb so that we generate a valid keytab entries for AES and DES keys. The test doesn't fails with Heimdal cause it always uses RC4 which doesn't have a salt. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Apr 24 13:02:37 CEST 2015 on sn-devel-104
* buildtools: Use all of pyext_PATTERN in map_shlib_extensionPetr Viktorin2015-04-241-1/+1
| | | | | | | | | | | | | | | | In Python 3, C extension module filenames have an ABI tag; the pyext_PATTERN is e.g. "%s.cpython-34m.so". The build system was only using the last dot-separated element of that extension (the ".so"). Use the whole extension when constructing the final filename. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Fri Apr 24 04:26:45 CEST 2015 on sn-devel-104
* buildtools: Honor LDVERSION when looking for Python libraryPetr Viktorin2015-04-241-5/+9
| | | | | | | | | | | | Since Python 3.2, Python .so files are tagged for ABI compatibility, so the library name is something like libpython3.4m.so (note the 'm'). This information is found in distutils.sysconfig.get_config_var('LDVERSION') This fixes waf issue 1405 (https://code.google.com/p/waf/issues/detail?id=1405) Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pytalloc: Add testsPetr Viktorin2015-04-243-1/+260
| | | | | | | | | | | Add tests for pytalloc. Since talloc objects can't be created from Python, a C extension with helpers is added. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* wafsamba: Add install argument to SAMBA_PYTHONPetr Viktorin2015-04-241-0/+2
| | | | | | | | This allows building Python modules that are only used for testing. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pytalloc: Fix comparison of disparate typesPetr Viktorin2015-04-241-1/+1
| | | | | | | | | | | | When fed Python objects of different types, pytalloc_default_cmp compared pointers to PyType objects that weren't part of an array, resulting in undefined behavior. This makes things a bit better (though it still casts ptrdiff_t to int). Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: overhaul the description of "smb encrypt" to include SMB3 encryption.Michael Adam2015-04-241-33/+199
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Apr 24 00:53:20 CEST 2015 on sn-devel-104
* Make sure we initialize conn to NULL, because a routine we call may give an ↵Richard Sharpe2015-04-231-1/+1
| | | | | | | error and not touch conn, and then we get an error when trying to TALLOC_FREE it. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture: Add smb2.notify.rmdirVolker Lendecke2015-04-231-0/+110
| | | | | | | | | | | | | We need to cancel a pending FileChangeNotify with DELETE_PENDING if the directory watched is about to be deleted. I know I just deleted a bool parameter, but to me torture is different :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 23 01:36:48 CEST 2015 on sn-devel-104
* smbd: Cancel pending notifies if the directory goes awayVolker Lendecke2015-04-225-1/+83
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Remove bool arg from set_delete_on_close_lckVolker Lendecke2015-04-223-13/+3
| | | | | | | | We now have reset_delete_on_close_lck, this was called with "true" everywhere now. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Use reset_delete_on_close_lck directlyVolker Lendecke2015-04-222-4/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Introduce reset_delete_on_close_lckVolker Lendecke2015-04-222-26/+37
| | | | | | | Boolean flags passed down make things more complex than necessary... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: use smbd_reinit_after_forkRalph Boehme2015-04-228-25/+8
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: add wrapper around reinit_after_forkRalph Boehme2015-04-222-0/+15
| | | | | | | | | | | | | smbd_reinit_after_fork is a simple wrapper around reinit_after_fork that should be used after forking from the main smbd. At the moment the only additional step it performs is resetting am_parent to NULL. A subsequent commit will make use of this function. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4-torture: add one more test for witness_RegisterEx() and invalid sharenames.Günther Deschner2015-04-221-0/+17
| | | | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Apr 22 20:21:18 CEST 2015 on sn-devel-104
* s4-torture: fix invalid dereference of binding handle in mgmt test.Günther Deschner2015-04-221-1/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: do some additional length checks for the mgmt_inq_princ_name test.Günther Deschner2015-04-221-0/+57
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: use torture_assert() macros in mgmt test.Günther Deschner2015-04-221-28/+15
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>