summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* s3:smb2_sesssetup: check that the connection belongs to the session in ↵Michael Adam2015-07-291-0/+8
| | | | | | | sess.setup Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* smbXsrv: use smb2srv_session_lookup_client in smbXsrv_session_close_loopMichael Adam2015-07-291-4/+3
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* smbXsrv: add smb2srv_session_lookup_client().Michael Adam2015-07-292-0/+12
| | | | | | | | | This is a variant of smb2srv_session_lookup_conn() that does not verify the session on the channel. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* smbXsrv: rename smb2srv_session_lookup -> smb2srv_session_lookup_connMichael Adam2015-07-294-14/+15
| | | | | | | | | | This is in preparation of adding a variant that operates on the client and does in particular not verify that the connection belongs to a session as a channel. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* smbXsrv: add a smbXsrv_connection argument to smb2srv_session_lookup_rawMichael Adam2015-07-291-2/+8
| | | | | | | | This way, we can verify that the session is valid on a channel. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* smbXsrv: add a smbXsrv_connection argument to smbXsrv_session_local_lookup()Stefan Metzmacher2015-07-291-2/+19
| | | | | | | | This way, we can verify that a session is valid on the channel. Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* build: fix build with gpfs support - add missing dependency to samba-debugBjörn Baumbach2015-07-291-0/+3
| | | | | | | | | | Pair-programmed-with: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Jul 29 13:38:59 CEST 2015 on sn-devel-104
* configure: add --with-gpfs option for selecting directory with gpfs headersBjörn Baumbach2015-07-292-1/+5
| | | | | | Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* s3:wscript: fix indentationBjörn Baumbach2015-07-291-1/+1
| | | | | | Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Check if updates are in flight when releasing all IPsMartin Schwenke2015-07-291-3/+15
| | | | | | | | | | Some code involved in releasing IPs is not re-entrant. Memory corruption can occur if, for example, overlapping attempts are made to ban a node. We haven't been able to recreate the corruption but this should protect against it. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-banning: If node is already banned, do not run ctdb_local_node_got_banned()Amitay Isaacs2015-07-291-1/+6
| | | | | | | | | This calls release_all_ips() only once on the first ban. If the node gets banned again due to event script timeout while running release_all_ips(), then avoid calling release_all_ips() in re-entrant fashion. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-client: Return the correct status sent from the daemonAmitay Isaacs2015-07-291-1/+1
| | | | | | | | If a control fails and error message is set, the returned status of the control is always set to -1 ignoring the status passed by the daemon. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* lib: replace: Add strsep function (missing on Solaris).Jeremy Allison2015-07-293-2/+27
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11359 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ira Cooper <ira@wakeful.net> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 29 02:24:55 CEST 2015 on sn-devel-104
* s3-passdb: Respect LOOKUP_NAME_GROUP flag in sid lookup.Justin Maggard2015-07-282-3/+3
| | | | | | | | | | | | | | | | | | | | Somewhere along the line, a config line like "valid users = @foo" broke when "foo" also exists as a user. user_ok_token() already does the right thing by adding the LOOKUP_NAME_GROUP flag; but lookup_name() was not respecting that flag, and went ahead and looked for users anyway. Regression test to follow. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11320 Signed-off-by: Justin Maggard <jmaggard@netgear.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Marc Muehlfeld <mmuehlfeld@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 28 21:35:58 CEST 2015 on sn-devel-104
* pidl: merge multiple 'genpad' implementations into one.Günther Deschner2015-07-245-39/+21
| | | | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Jul 24 16:44:16 CEST 2015 on sn-devel-104
* vfs: fix build warning in smb traffic analyzer.Günther Deschner2015-07-242-3/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4-torture: don't build the lsa forest trust krb5 tests when building with ↵Günther Deschner2015-07-241-0/+11
| | | | | | | | | | | MIT Kerberos. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11411 Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* install_with_python: Secure Python download with sha256 checks.Adrian Cochrane2015-07-241-11/+30
| | | | | | | | | | | Includes a fallback using md5sum and a refactor to ensure files are cleaned up on failure. Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 24 05:19:06 CEST 2015 on sn-devel-104
* tdb: Fix broken build with --disable-pythonMartin Schwenke2015-07-231-5/+6
| | | | | | | | | | With --disable-python, we should not install any python files. 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): Thu Jul 23 18:50:25 CEST 2015 on sn-devel-104
* tdb_wrap: Use a struct initializerVolker Lendecke2015-07-231-4/+1
| | | | | | | | | | ... this saves 3 lines a few bytes .text :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Jul 23 14:39:18 CEST 2015 on sn-devel-104
* tdb_wrap: Use talloc_pooled_objectVolker Lendecke2015-07-231-4/+3
| | | | | | | One malloc() less Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* ctdb-daemon: Correctly process the exit code from failed eventscriptsAmitay Isaacs2015-07-221-1/+5
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Jul 22 15:03:53 CEST 2015 on sn-devel-104
* ctdb-tool: Correctly print timed out event scripts outputAmitay Isaacs2015-07-221-0/+8
| | | | | | | | | | | | | | | | | | The timed out error is ignored for certain events (start_recovery, recoverd, takeip, releaseip). If these events time out, then the debug hung script outputs the following: 3 scripts were executed last releaseip cycle 00.ctdb Status:OK Duration:4.381 Thu Jul 16 23:45:24 2015 01.reclock Status:OK Duration:13.422 Thu Jul 16 23:45:28 2015 10.external Status:DISABLED 10.interface Status:OK Duration:-1437083142.208 Thu Jul 16 23:45:42 2015 The endtime for timed out scripts is not set. Since the status is not returned as -ETIME for some events, ctdb scriptstatus prints -ve duration. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* vfs: Fix CID 1312072 Failure to restore non-local valueVolker Lendecke2015-07-221-9/+12
| | | | | | | | 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): Wed Jul 22 09:06:29 CEST 2015 on sn-devel-104
* vfs: Fix CID 1312073 Argument cannot be negativeVolker Lendecke2015-07-221-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* WHATSNEW: Clear release notes for Samba 4.4.0pre1.Stefan Metzmacher2015-07-211-154/+3
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jul 21 22:07:14 CEST 2015 on sn-devel-104
* VERSION: Bump version up to 4.4.0pre1Stefan Metzmacher2015-07-211-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* VERSION: Release Samba 4.3.0rc1samba-4.3.0rc1Stefan Metzmacher2015-07-211-3/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* WHATSNEW: Start release notes for Samba 4.3.0rc1.Stefan Metzmacher2015-07-211-5/+143
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org>
* ldb: version 1.1.21ldb-1.1.21Stefan Metzmacher2015-07-213-1/+266
| | | | | | | | * build fixes * improved python bindings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tdb: version 1.3.7tdb-1.3.7Stefan Metzmacher2015-07-212-1/+70
| | | | | | | | | * first fix deadlock in the interaction between fcntl and mutex locking (bug #11381) * improved python3 bindings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* talloc: version 2.1.3talloc-2.1.3Stefan Metzmacher2015-07-213-1/+71
| | | | | | | | * improved python3 bindings * documentation fixes regarding talloc_reference() and talloc_unlink() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* testsuite/headers: remove unused checks for ntdb.hStefan Metzmacher2015-07-211-4/+0
| | | | | | | ntdb is already removed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
* tdb python binding: raise KeyError(key) when the key doesn't existAurelien Aptel2015-07-211-1/+5
| | | | | | | | | | This change makes tdb dicts more consistent with Python dicts. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7416 Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pytdb: Add tests for text interfacePetr Viktorin2015-07-211-23/+141
| | | | | | Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pyldb: Add a text-based interface for Python 3Petr Viktorin2015-07-213-0/+163
| | | | | | Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pytdb: Use new dict API on Python 3Petr Viktorin2015-07-212-11/+47
| | | | | | | | | - Remove has_key() method, add a fast "in" operator - Rename iterkeys() to keys() Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pytdb: Build for two versions of Python at oncePetr Viktorin2015-07-211-8/+8
| | | | | | Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pytdb: Port to Python 3Petr Viktorin2015-07-213-94/+141
| | | | | | | | | | | | - Use bytes for all data, text strings for repr() - Use PyLong instead of PyInt on py3 - Use new module initialization - Update tests - Run tests in "make test" Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pytdb: Allow nextkey() to be calledPetr Viktorin2015-07-211-1/+1
| | | | | | | | nextkey() was defined to take no arguments but expected one. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* buildtools: Fix crash on invalid --extra-python optionPetr Viktorin2015-07-211-1/+1
| | | | | | Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* buildtools: Don't configure Python more than oncePetr Viktorin2015-07-211-0/+4
| | | | | | Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-auth: Make sure error_string is correctly initializedAndreas Schneider2015-07-211-21/+29
| | | | | | | This should avoid a possible double free. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc_kpasswd: split out some code to a KPASSWD_GLUE subsystem.Günther Deschner2015-07-214-60/+172
| | | | | | | | | This can then be easier shared with MIT's kadmin services for kpasswd services. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc: move kdc_check_pac() to a new subsystem KDC-GLUE.Günther Deschner2015-07-215-50/+98
| | | | | | | | | | This subsystem should be used to provide shared code between the s4 heimdal kdc and the s4 heimdal wdc plugin. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc: only use a void* in samba_kdc_entry instead of hdb_entry_ex.Günther Deschner2015-07-211-1/+1
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc/pac_glue: remove old samba_kdc_build_edata_reply().Günther Deschner2015-07-212-36/+0
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc/mit_samba: add a copy of samba_kdc_build_edata_reply for MIT.Günther Deschner2015-07-211-0/+47
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4-kdc/wdc-samba4: add a copy of samba_kdc_build_edata_reply for Heimdal.Günther Deschner2015-07-211-0/+41
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* waf: Make mit_samba a subsystem and do not build with HeimdalAndreas Schneider2015-07-211-12/+13
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>