jelmer/samba4-debian.git
16 years agor26615: Fix Python syntax
Jelmer Vernooij [Fri, 28 Dec 2007 05:31:54 +0000 (23:31 -0600)]
r26615: Fix Python syntax

16 years agor26614: Fix options parsing for credentials in Python.
Jelmer Vernooij [Fri, 28 Dec 2007 05:31:42 +0000 (23:31 -0600)]
r26614: Fix options parsing for credentials in Python.

16 years agor26613: Add a function to write a DATA_BLOB into an LDAPString.
Andrew Bartlett [Thu, 27 Dec 2007 13:47:11 +0000 (07:47 -0600)]
r26613: Add a function to write a DATA_BLOB into an LDAPString.

This respects the length set in the DATA_BLOB, rather than hoping to
see NULL termination of the data pointer.

(found testing the Ambigious Name Resolution code against OpenLDAP).

Andrew Bartlett

16 years agor26612: Tests show that we don't need to use a callback.
Andrew Bartlett [Thu, 27 Dec 2007 13:45:22 +0000 (07:45 -0600)]
r26612: Tests show that we don't need to use a callback.

Andrew Bartlett

16 years agor26611: Tridge didn't write this...
Andrew Bartlett [Thu, 27 Dec 2007 13:44:57 +0000 (07:44 -0600)]
r26611: Tridge didn't write this...

Andrew Bartlett

16 years agor26610: Write out a memberof.conf, to run the memberof plugin on all linked
Andrew Bartlett [Thu, 27 Dec 2007 10:18:54 +0000 (04:18 -0600)]
r26610: Write out a memberof.conf, to run the memberof plugin on all linked

attributes, as found in the schema.

Index 'cn', as otherwise exact match searches on this attribute always
fail (need to figure out what is so special about cn in OpenLDAP).

Andrew Bartlett

16 years agor26609: Try a few more variatations to get the selftest to run against
Andrew Bartlett [Thu, 27 Dec 2007 10:17:28 +0000 (04:17 -0600)]
r26609: Try a few more variatations to get the selftest to run against

OpenLDAP.

Andrew Bartlett

16 years agor26608: More improvements to the upgrade code.
Jelmer Vernooij [Thu, 27 Dec 2007 09:09:49 +0000 (03:09 -0600)]
r26608: More improvements to the upgrade code.

16 years agor26607: Fix reading of values and subkeys in Samba 3 registry files.
Jelmer Vernooij [Thu, 27 Dec 2007 02:55:05 +0000 (20:55 -0600)]
r26607: Fix reading of values and subkeys in Samba 3 registry files.

16 years agor26606: masktest: Dynamically allocate strings.
Kai Blin [Wed, 26 Dec 2007 17:38:49 +0000 (11:38 -0600)]
r26606: masktest: Dynamically allocate strings.

16 years agor26605: masktest: Get rid of pstrings.
Kai Blin [Wed, 26 Dec 2007 16:25:07 +0000 (10:25 -0600)]
r26605: masktest: Get rid of pstrings.

16 years agor26604: Don't depend on Python just yet, since the code that uses it is ifdeffed...
Jelmer Vernooij [Wed, 26 Dec 2007 10:04:23 +0000 (04:04 -0600)]
r26604: Don't depend on Python just yet, since the code that uses it is ifdeffed out.

16 years agor26603: Don't install no longer available upgrade script.
Jelmer Vernooij [Wed, 26 Dec 2007 03:14:06 +0000 (21:14 -0600)]
r26603: Don't install no longer available upgrade script.

16 years agor26602: Revert my previous commit as it only works with GNU make.
Jelmer Vernooij [Tue, 25 Dec 2007 23:34:07 +0000 (17:34 -0600)]
r26602: Revert my previous commit as it only works with GNU make.

16 years agor26601: Remove existing files to prevent errors.
Jelmer Vernooij [Tue, 25 Dec 2007 22:37:05 +0000 (16:37 -0600)]
r26601: Remove existing files to prevent errors.

16 years agor26600: Provide dir variable with current basedir in Makefile.
Jelmer Vernooij [Tue, 25 Dec 2007 22:37:02 +0000 (16:37 -0600)]
r26600: Provide dir variable with current basedir in Makefile.

16 years agor26599: Attempt to also support provisioning using Python in the BECOME-DC test.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:58 +0000 (16:36 -0600)]
r26599: Attempt to also support provisioning using Python in the BECOME-DC test.

Not tested yet as the test it is part of has been disabled because it's broken.

16 years agor26598: Simplify the way Python tests are run.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:53 +0000 (16:36 -0600)]
r26598: Simplify the way Python tests are run.

16 years agor26597: Attempt to provide alternative for hosts that don't have python-config.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:50 +0000 (16:36 -0600)]
r26597: Attempt to provide alternative for hosts that don't have python-config.

16 years agor26596: Fixed upgrade.py.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:44 +0000 (16:36 -0600)]
r26596: Fixed upgrade.py.

Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.

16 years agor26595: Fix includes for hosts without gssapi as system header.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:39 +0000 (16:36 -0600)]
r26595: Fix includes for hosts without gssapi as system header.

16 years agor26594: Add right paths to the Python sys.path setting so we don't have to set magic...
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:36 +0000 (16:36 -0600)]
r26594: Add right paths to the Python sys.path setting so we don't have to set magic environment variables when running from the build directory.

16 years agor26593: - More work on the python versions of samba3dump and the samba3sam tests.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:31 +0000 (16:36 -0600)]
r26593: - More work on the python versions of samba3dump and the samba3sam tests.

- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.

16 years agor26592: Finish fixing the samba3dump script.
Jelmer Vernooij [Tue, 25 Dec 2007 22:36:23 +0000 (16:36 -0600)]
r26592: Finish fixing the samba3dump script.

16 years agor26591: Get the first bits of samba3dump to work again.
Jelmer Vernooij [Mon, 24 Dec 2007 20:16:59 +0000 (14:16 -0600)]
r26591: Get the first bits of samba3dump to work again.

16 years agor26590: Parsing routines for the smbpasswd file and idmap database.
Jelmer Vernooij [Mon, 24 Dec 2007 20:16:40 +0000 (14:16 -0600)]
r26590: Parsing routines for the smbpasswd file and idmap database.

16 years agor26589: torture: Add non-const version of torture_tcase_add_simple_test
Kai Blin [Mon, 24 Dec 2007 19:06:57 +0000 (13:06 -0600)]
r26589: torture: Add non-const version of torture_tcase_add_simple_test

16 years agor26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
Kai Blin [Mon, 24 Dec 2007 19:04:56 +0000 (13:04 -0600)]
r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.

Also rename the corresponding wrap_ functions.

16 years agor26587: Fix reading Samba 3 WINS database and initial work on group db, aliases and...
Jelmer Vernooij [Mon, 24 Dec 2007 19:04:33 +0000 (13:04 -0600)]
r26587: Fix reading Samba 3 WINS database and initial work on group db, aliases and secrets.

16 years agor26586: Rename fetch to get for consistency with the Python dictionary interface.
Jelmer Vernooij [Mon, 24 Dec 2007 19:04:13 +0000 (13:04 -0600)]
r26586: Rename fetch to get for consistency with the Python dictionary interface.

16 years agor26585: Fix samba3.python tests.
Jelmer Vernooij [Mon, 24 Dec 2007 17:02:52 +0000 (11:02 -0600)]
r26585: Fix samba3.python tests.

16 years agor26584: Fix exception handling in ldb constructor.
Jelmer Vernooij [Mon, 24 Dec 2007 17:02:45 +0000 (11:02 -0600)]
r26584: Fix exception handling in ldb constructor.

16 years agor26583: Throw a proper exception in the python code when tdb_open() fails, fix indent...
Jelmer Vernooij [Mon, 24 Dec 2007 17:02:32 +0000 (11:02 -0600)]
r26583: Throw a proper exception in the python code when tdb_open() fails, fix indentation in generated SWIG code from pidl.

16 years agor26582: Use the same swig flags everywhere.
Jelmer Vernooij [Mon, 24 Dec 2007 07:55:09 +0000 (01:55 -0600)]
r26582: Use the same swig flags everywhere.

16 years agor26581: Make ldb_wait uniform, so that it is easy to remove it completely from modules
Simo Sorce [Mon, 24 Dec 2007 07:38:37 +0000 (01:38 -0600)]
r26581: Make ldb_wait uniform, so that it is easy to remove it completely from modules

later on.

16 years agor26580: Include sentinel in build.h, in case the list is empty.
Jelmer Vernooij [Mon, 24 Dec 2007 07:28:22 +0000 (01:28 -0600)]
r26580: Include sentinel in build.h, in case the list is empty.

16 years agor26579: Fix the typo that breaks the code coverage build.
Jelmer Vernooij [Mon, 24 Dec 2007 06:35:40 +0000 (00:35 -0600)]
r26579: Fix the typo that breaks the code coverage build.

16 years agor26578: Ensure directory exists.
Jelmer Vernooij [Mon, 24 Dec 2007 06:13:57 +0000 (00:13 -0600)]
r26578: Ensure directory exists.

16 years agor26577: Fix the standalone ldb build.
Jelmer Vernooij [Mon, 24 Dec 2007 06:10:08 +0000 (00:10 -0600)]
r26577: Fix the standalone ldb build.

16 years agor26576: Allow the static module loading code to be used for the Python modules.
Jelmer Vernooij [Mon, 24 Dec 2007 05:54:30 +0000 (23:54 -0600)]
r26576: Allow the static module loading code to be used for the Python modules.

Simplify the way module initialization functions are handled.

16 years agor26575: Build a private copy of the Python executable for Samba 4, so we know we...
Jelmer Vernooij [Mon, 24 Dec 2007 04:06:29 +0000 (22:06 -0600)]
r26575: Build a private copy of the Python executable for Samba 4, so we know we're always using the same library we build the modules for.

16 years agor26574: Do not call functions in the variable declaration, fix checking for tmp_ctx,
Simo Sorce [Mon, 24 Dec 2007 04:03:31 +0000 (22:03 -0600)]
r26574: Do not call functions in the variable declaration, fix checking for tmp_ctx,

and also makes code more readable and debuggable.

Eliminate silly parenthesys.

Simo.

16 years agor26573: Fix warnings.
Jelmer Vernooij [Mon, 24 Dec 2007 03:27:58 +0000 (21:27 -0600)]
r26573: Fix warnings.

16 years agor26572: Fix warnings in the Python code.
Jelmer Vernooij [Mon, 24 Dec 2007 02:56:41 +0000 (20:56 -0600)]
r26572: Fix warnings in the Python code.

16 years agor26571: Hide warnings about unused macros and casting qualifiers in autogenerated...
Jelmer Vernooij [Mon, 24 Dec 2007 02:22:46 +0000 (20:22 -0600)]
r26571: Hide warnings about unused macros and casting qualifiers in autogenerated files.

16 years agor26570: - Trim size of the swig-generated Python bindings by removing a bunch of...
Jelmer Vernooij [Mon, 24 Dec 2007 01:19:41 +0000 (19:19 -0600)]
r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.

- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.

16 years agor26569: Jelmer tells me that ldb must inevitably be build as a shared library,
Volker Lendecke [Sun, 23 Dec 2007 22:05:05 +0000 (16:05 -0600)]
r26569: Jelmer tells me that ldb must inevitably be build as a shared library,

otherwise it will break.

Sorry for breaking Samba4.

I will have to look how we can fix Samba3 :-(((

16 years agor26568: Revert r26482
Volker Lendecke [Sun, 23 Dec 2007 21:57:58 +0000 (15:57 -0600)]
r26568: Revert r26482

Next attempt to fix the Samba3 torture breakage

Jelmer, can you please review this?

Thanks,

Volker

16 years agor26567: Allow registering new ldb modules from python.
Jelmer Vernooij [Sat, 22 Dec 2007 20:28:45 +0000 (14:28 -0600)]
r26567: Allow registering new ldb modules from python.

16 years agor26566: Fix member provision when using python.
Jelmer Vernooij [Sat, 22 Dec 2007 11:11:21 +0000 (05:11 -0600)]
r26566: Fix member provision when using python.

16 years agor26565: Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.
Jelmer Vernooij [Sat, 22 Dec 2007 11:03:02 +0000 (05:03 -0600)]
r26565: Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.

16 years agor26564: More python bindings for registry code.
Jelmer Vernooij [Sat, 22 Dec 2007 11:02:57 +0000 (05:02 -0600)]
r26564: More python bindings for registry code.

16 years agor26563: Fix reg_diff_apply argument order.
Jelmer Vernooij [Sat, 22 Dec 2007 11:02:48 +0000 (05:02 -0600)]
r26563: Fix reg_diff_apply argument order.

16 years agor26562: Fix provisioning using Python.
Jelmer Vernooij [Sat, 22 Dec 2007 08:26:38 +0000 (02:26 -0600)]
r26562: Fix provisioning using Python.

16 years agor26561: Fix make gdbtest, valgrindtest and testenv for shared libs.
Jelmer Vernooij [Sat, 22 Dec 2007 06:47:48 +0000 (00:47 -0600)]
r26561: Fix make gdbtest, valgrindtest and testenv for shared libs.

16 years agor26560: Add script for running in valgrind.
Jelmer Vernooij [Sat, 22 Dec 2007 06:47:44 +0000 (00:47 -0600)]
r26560: Add script for running in valgrind.

16 years agor26559: Make the provision function a bit smaller.
Jelmer Vernooij [Sat, 22 Dec 2007 06:47:36 +0000 (00:47 -0600)]
r26559: Make the provision function a bit smaller.

16 years agor26558: Add IDL for netr_GetForestTrustInformation().
Günther Deschner [Sat, 22 Dec 2007 05:52:14 +0000 (23:52 -0600)]
r26558: Add IDL for netr_GetForestTrustInformation().

Guenther

16 years agor26557: sync WHATSNEW with release branch of Samba4
Andrew Bartlett [Sat, 22 Dec 2007 04:55:02 +0000 (22:55 -0600)]
r26557: sync WHATSNEW with release branch of Samba4

16 years agor26556: Make Fedora DS consistant use FEDORA_DS_ROOT, now we use OPENLDAP_ROOT.
Andrew Bartlett [Fri, 21 Dec 2007 08:33:43 +0000 (02:33 -0600)]
r26556: Make Fedora DS consistant use FEDORA_DS_ROOT, now we use OPENLDAP_ROOT.

Add in another varient to test with in the OpenLDAP module-guessing
game, from Howard Chu.

Andrew Bartlett

16 years agor26555: Use python-config utility to find python compile/link flags.
Jelmer Vernooij [Fri, 21 Dec 2007 06:36:17 +0000 (00:36 -0600)]
r26555: Use python-config utility to find python compile/link flags.

16 years agor26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
Jelmer Vernooij [Thu, 20 Dec 2007 16:07:31 +0000 (17:07 +0100)]
r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.

16 years agor26553: Fix html output.
Jelmer Vernooij [Thu, 20 Dec 2007 16:07:28 +0000 (17:07 +0100)]
r26553: Fix html output.

16 years agor26552: remove unused state variable, use dot as path separator for test names.
Jelmer Vernooij [Thu, 20 Dec 2007 16:07:21 +0000 (17:07 +0100)]
r26552: remove unused state variable, use dot as path separator for test names.

16 years agor26551: Make sure NULL is defined before using it to test for getifaddrs().
James Peach [Thu, 20 Dec 2007 15:35:42 +0000 (16:35 +0100)]
r26551: Make sure NULL is defined before using it to test for getifaddrs().

Patch from Timur I. Bakeyev <timur@com.bat.ru>.

16 years agor26550: libreplace: fallback to __ss_family of struct sockaddr_storage
Stefan Metzmacher [Thu, 20 Dec 2007 14:59:39 +0000 (15:59 +0100)]
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage

metze

16 years agor26549: Remove suite-specific bits.
Jelmer Vernooij [Thu, 20 Dec 2007 14:54:08 +0000 (15:54 +0100)]
r26549: Remove suite-specific bits.

16 years agor26548: Remove remaining variables from state hash.
Jelmer Vernooij [Thu, 20 Dec 2007 14:54:05 +0000 (15:54 +0100)]
r26548: Remove remaining variables from state hash.

16 years agor26547: Make testsuites less special during subunit handling.
Jelmer Vernooij [Thu, 20 Dec 2007 14:54:02 +0000 (15:54 +0100)]
r26547: Make testsuites less special during subunit handling.

16 years agor26546: Rather than having a gazillion targets, add output format variable for 'make...
Jelmer Vernooij [Thu, 20 Dec 2007 14:54:00 +0000 (15:54 +0100)]
r26546: Rather than having a gazillion targets, add output format variable for 'make test'.

16 years agor26545: Sync output with ejs.
Jelmer Vernooij [Thu, 20 Dec 2007 14:53:56 +0000 (15:53 +0100)]
r26545: Sync output with ejs.

16 years agoMerge commit 'release-4-0-0alpha2' into v4-0-test
Stefan Metzmacher [Fri, 21 Dec 2007 05:28:08 +0000 (06:28 +0100)]
Merge commit 'release-4-0-0alpha2' into v4-0-test

16 years agor26541: Mark this as the release
Andrew Bartlett [Thu, 20 Dec 2007 02:44:06 +0000 (03:44 +0100)]
r26541: Mark this as the release

16 years agor26501: Merge kblin's updated README
Andrew Bartlett [Mon, 17 Dec 2007 09:26:56 +0000 (10:26 +0100)]
r26501: Merge kblin's updated README

Andrew Bartlett

16 years agor26490: Update WHATSNEW. Unless some fancy new words arive soon, this is what
Andrew Bartlett [Mon, 17 Dec 2007 05:03:53 +0000 (06:03 +0100)]
r26490: Update WHATSNEW. Unless some fancy new words arive soon, this is what

we will put out...

Andrew Bartlett

16 years agor26489: Merge fixed ranged results module to release branch.
Andrew Bartlett [Mon, 17 Dec 2007 05:02:54 +0000 (06:02 +0100)]
r26489: Merge fixed ranged results module to release branch.

This is the last blocker for the release that I know of.

Andrew Bartlett

16 years agor26478: Update versions, fix typo.
Jelmer Vernooij [Mon, 17 Dec 2007 00:03:08 +0000 (01:03 +0100)]
r26478: Update versions, fix typo.

16 years agor26390: Start on a WHATSNEW for the alpah2 release.
Andrew Bartlett [Tue, 11 Dec 2007 01:53:40 +0000 (02:53 +0100)]
r26390: Start on a WHATSNEW for the alpah2 release.

Andrew Bartlett

16 years agor26388: Fix up SWAT provision (again...), after changes I made to the
Andrew Bartlett [Tue, 11 Dec 2007 01:09:37 +0000 (02:09 +0100)]
r26388: Fix up SWAT provision (again...), after changes I made to the

command-line version a while back.

Andrew Bartlett

16 years agor26387: Merge logfile segfault into alpha2 branch.
Andrew Bartlett [Mon, 10 Dec 2007 23:23:08 +0000 (00:23 +0100)]
r26387: Merge logfile segfault into alpha2 branch.

Andrew Bartlett

16 years agor26364: Branch Samba 4.0 for an alpha2 release.
Andrew Bartlett [Mon, 10 Dec 2007 05:39:42 +0000 (06:39 +0100)]
r26364: Branch Samba 4.0 for an alpha2 release.

Andrew Bartlett

16 years agor26540: Revert my previous commit after concerns raised by Andrew.
Jelmer Vernooij [Wed, 19 Dec 2007 23:02:15 +0000 (00:02 +0100)]
r26540: Revert my previous commit after concerns raised by Andrew.

16 years agor26539: Remove unnecessary statics.
Jelmer Vernooij [Wed, 19 Dec 2007 22:27:42 +0000 (23:27 +0100)]
r26539: Remove unnecessary statics.

16 years agor26538: Pass path generation function around rather than base directory.
Jelmer Vernooij [Wed, 19 Dec 2007 22:27:38 +0000 (23:27 +0100)]
r26538: Pass path generation function around rather than base directory.

16 years agor26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).
Jelmer Vernooij [Wed, 19 Dec 2007 22:27:34 +0000 (23:27 +0100)]
r26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).

16 years agor26536: More tests for provisioning code.
Jelmer Vernooij [Wed, 19 Dec 2007 22:27:31 +0000 (23:27 +0100)]
r26536: More tests for provisioning code.

16 years agor26535: Get rid of all-knowing ProvisionSettings object.
Jelmer Vernooij [Wed, 19 Dec 2007 22:27:24 +0000 (23:27 +0100)]
r26535: Get rid of all-knowing ProvisionSettings object.

16 years agor26534: configure: using == in shell scripts isn't portable
Stefan Metzmacher [Wed, 19 Dec 2007 10:34:36 +0000 (11:34 +0100)]
r26534: configure: using == in shell scripts isn't portable

Thanks to Björn Jacke <bj@sernet.de> for reporting this.

metze

16 years agor26533: libreplace: hopefully fix the share library/module build on darwin
Stefan Metzmacher [Wed, 19 Dec 2007 07:18:57 +0000 (08:18 +0100)]
r26533: libreplace: hopefully fix the share library/module build on darwin

metze

16 years agor26532: Fix mistake in assignment.
Rafal Szczesniak [Tue, 18 Dec 2007 23:46:43 +0000 (00:46 +0100)]
r26532: Fix mistake in assignment.

16 years agor26531: Prevent from displaying the results if the function
Rafal Szczesniak [Tue, 18 Dec 2007 23:45:07 +0000 (00:45 +0100)]
r26531: Prevent from displaying the results if the function

call has failed.

16 years agor26530: Add NET-API-GROUPLIST test.
Rafal Szczesniak [Tue, 18 Dec 2007 23:44:01 +0000 (00:44 +0100)]
r26530: Add NET-API-GROUPLIST test.

16 years agor26529: Indeed, this belongs in the schema module. Ranged results need to use
Andrew Bartlett [Tue, 18 Dec 2007 23:39:27 +0000 (00:39 +0100)]
r26529: Indeed, this belongs in the schema module. Ranged results need to use

an attribute with ';' in the name.

Andrew Bartlett

16 years agor26528: dsdb: Fix a warning.
Kai Blin [Tue, 18 Dec 2007 21:50:49 +0000 (22:50 +0100)]
r26528: dsdb: Fix a warning.

16 years agor26527: Start on tests for provision.
Jelmer Vernooij [Tue, 18 Dec 2007 17:54:19 +0000 (18:54 +0100)]
r26527: Start on tests for provision.

16 years agor26526: Fix argument value.
Jelmer Vernooij [Tue, 18 Dec 2007 16:29:08 +0000 (17:29 +0100)]
r26526: Fix argument value.

16 years agor26525: Consistency in the API.
Jelmer Vernooij [Tue, 18 Dec 2007 16:21:24 +0000 (17:21 +0100)]
r26525: Consistency in the API.

16 years agor26524: Import self join.
Jelmer Vernooij [Tue, 18 Dec 2007 16:21:20 +0000 (17:21 +0100)]
r26524: Import self join.

16 years agor26523: Refactor provisioning code.
Jelmer Vernooij [Tue, 18 Dec 2007 16:21:13 +0000 (17:21 +0100)]
r26523: Refactor provisioning code.

16 years agor26522: Fix warnings on SamDB connect from Python, simplify the setup code for the...
Jelmer Vernooij [Tue, 18 Dec 2007 01:21:28 +0000 (02:21 +0100)]
r26522: Fix warnings on SamDB connect from Python, simplify the setup code for the various LDBs.