metze/old/v4-0-wb-ndr.git
16 years agoAdd NET-API-CREATEGROUP test.
mimir [Sun, 30 Dec 2007 19:18:17 +0000 (19:18 +0000)]
Add NET-API-CREATEGROUP test.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26634 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoA couple of fixes in comments.
mimir [Sun, 30 Dec 2007 19:14:43 +0000 (19:14 +0000)]
A couple of fixes in comments.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26633 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd libnet_CreateGroup function.
mimir [Sun, 30 Dec 2007 19:13:50 +0000 (19:13 +0000)]
Add libnet_CreateGroup function.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26632 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb/python: Fix missing elements bug and memory leak.
jelmer [Sun, 30 Dec 2007 16:46:14 +0000 (16:46 +0000)]
ldb/python: Fix missing elements bug and memory leak.
 * Don't increase the PyDict_Next() counter - Python already does that for us.
 * Fix a talloc(NULL, ...) memory leak in the code that constructed ldb message
   elements.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26631 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSplit up big tests into various smaller functions, making it easier to debug.
jelmer [Sun, 30 Dec 2007 16:46:05 +0000 (16:46 +0000)]
Split up big tests into various smaller functions, making it easier to debug.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26630 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agopython: Improve documentation in various places.
jelmer [Sat, 29 Dec 2007 18:14:18 +0000 (18:14 +0000)]
python: Improve documentation in various places.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26629 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agopython: Add more documentation, simplify code in Samba3 module.
jelmer [Sat, 29 Dec 2007 18:14:15 +0000 (18:14 +0000)]
python: Add more documentation, simplify code in Samba3 module.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26628 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoparam: Provide a call for loading the system smb.conf.
jelmer [Sat, 29 Dec 2007 18:14:12 +0000 (18:14 +0000)]
param: Provide a call for loading the system smb.conf.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26627 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoInstall auth/session.h
jelmer [Sat, 29 Dec 2007 18:14:04 +0000 (18:14 +0000)]
Install auth/session.h

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26626 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoWrap some more events functions for Python and add a trivial test for it.
jelmer [Fri, 28 Dec 2007 16:55:45 +0000 (16:55 +0000)]
Wrap some more events functions for Python and add a trivial test for it.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26625 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibnet/python: Use standard function for constructing context, allow overriding crede...
jelmer [Fri, 28 Dec 2007 16:25:27 +0000 (16:25 +0000)]
libnet/python: Use standard function for constructing context, allow overriding credentials.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26624 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agopython: Allow specifying URL rather than host name on the command-line.
jelmer [Fri, 28 Dec 2007 16:25:20 +0000 (16:25 +0000)]
python: Allow specifying URL rather than host name on the command-line.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26623 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agopython: Update license version, clarify copyright.
jelmer [Fri, 28 Dec 2007 16:25:17 +0000 (16:25 +0000)]
python: Update license version, clarify copyright.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26622 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agovampire: Add simple Python-based vampire script
jelmer [Fri, 28 Dec 2007 16:25:13 +0000 (16:25 +0000)]
vampire: Add simple Python-based vampire script

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26621 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agopython: Allow not specifying event contexts, in which case a new context is used.
jelmer [Fri, 28 Dec 2007 16:25:05 +0000 (16:25 +0000)]
python: Allow not specifying event contexts, in which case a new context is used.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26620 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd Python bindings for libnet. No tests yet and no way to set the parameters...
jelmer [Fri, 28 Dec 2007 15:37:03 +0000 (15:37 +0000)]
Add Python bindings for libnet. No tests yet and no way to set the parameters...

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26619 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoImplement -W option support.
jelmer [Fri, 28 Dec 2007 15:36:55 +0000 (15:36 +0000)]
Implement -W option support.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26618 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoLoad smb.conf.
jelmer [Thu, 27 Dec 2007 23:32:05 +0000 (23:32 +0000)]
Load smb.conf.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26617 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSupport parsing of user data in SAmba 3 tdbsam.
jelmer [Thu, 27 Dec 2007 23:31:59 +0000 (23:31 +0000)]
Support parsing of user data in SAmba 3 tdbsam.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26616 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix Python syntax
jelmer [Thu, 27 Dec 2007 23:31:54 +0000 (23:31 +0000)]
Fix Python syntax

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26615 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix options parsing for credentials in Python.
jelmer [Thu, 27 Dec 2007 23:31:42 +0000 (23:31 +0000)]
Fix options parsing for credentials in Python.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26614 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd a function to write a DATA_BLOB into an LDAPString.
abartlet [Thu, 27 Dec 2007 07:47:11 +0000 (07:47 +0000)]
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26613 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoTests show that we don't need to use a callback.
abartlet [Thu, 27 Dec 2007 07:45:22 +0000 (07:45 +0000)]
Tests show that we don't need to use a callback.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26612 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoTridge didn't write this...
abartlet [Thu, 27 Dec 2007 07:44:57 +0000 (07:44 +0000)]
Tridge didn't write this...

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26611 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoWrite out a memberof.conf, to run the memberof plugin on all linked
abartlet [Thu, 27 Dec 2007 04:18:54 +0000 (04:18 +0000)]
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26610 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoTry a few more variatations to get the selftest to run against
abartlet [Thu, 27 Dec 2007 04:17:28 +0000 (04:17 +0000)]
Try a few more variatations to get the selftest to run against
OpenLDAP.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26609 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMore improvements to the upgrade code.
jelmer [Thu, 27 Dec 2007 03:09:49 +0000 (03:09 +0000)]
More improvements to the upgrade code.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26608 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix reading of values and subkeys in Samba 3 registry files.
jelmer [Wed, 26 Dec 2007 20:55:05 +0000 (20:55 +0000)]
Fix reading of values and subkeys in Samba 3 registry files.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26607 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agomasktest: Dynamically allocate strings.
kai [Wed, 26 Dec 2007 11:38:49 +0000 (11:38 +0000)]
masktest: Dynamically allocate strings.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26606 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agomasktest: Get rid of pstrings.
kai [Wed, 26 Dec 2007 10:25:07 +0000 (10:25 +0000)]
masktest: Get rid of pstrings.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26605 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoDon't depend on Python just yet, since the code that uses it is ifdeffed out.
jelmer [Wed, 26 Dec 2007 04:04:23 +0000 (04:04 +0000)]
Don't depend on Python just yet, since the code that uses it is ifdeffed out.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26604 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoDon't install no longer available upgrade script.
jelmer [Tue, 25 Dec 2007 21:14:06 +0000 (21:14 +0000)]
Don't install no longer available upgrade script.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26603 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRevert my previous commit as it only works with GNU make.
jelmer [Tue, 25 Dec 2007 17:34:07 +0000 (17:34 +0000)]
Revert my previous commit as it only works with GNU make.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26602 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove existing files to prevent errors.
jelmer [Tue, 25 Dec 2007 16:37:05 +0000 (16:37 +0000)]
Remove existing files to prevent errors.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26601 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoProvide dir variable with current basedir in Makefile.
jelmer [Tue, 25 Dec 2007 16:37:02 +0000 (16:37 +0000)]
Provide dir variable with current basedir in Makefile.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26600 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAttempt to also support provisioning using Python in the BECOME-DC test.
jelmer [Tue, 25 Dec 2007 16:36:58 +0000 (16:36 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26599 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSimplify the way Python tests are run.
jelmer [Tue, 25 Dec 2007 16:36:53 +0000 (16:36 +0000)]
Simplify the way Python tests are run.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26598 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAttempt to provide alternative for hosts that don't have python-config.
jelmer [Tue, 25 Dec 2007 16:36:50 +0000 (16:36 +0000)]
Attempt to provide alternative for hosts that don't have python-config.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26597 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFixed upgrade.py.
jelmer [Tue, 25 Dec 2007 16:36:44 +0000 (16:36 +0000)]
Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26596 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix includes for hosts without gssapi as system header.
jelmer [Tue, 25 Dec 2007 16:36:39 +0000 (16:36 +0000)]
Fix includes for hosts without gssapi as system header.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26595 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd right paths to the Python sys.path setting so we don't have to set magic environm...
jelmer [Tue, 25 Dec 2007 16:36:36 +0000 (16:36 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26594 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years ago- More work on the python versions of samba3dump and the samba3sam tests.
jelmer [Tue, 25 Dec 2007 16:36:31 +0000 (16:36 +0000)]
- 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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26593 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFinish fixing the samba3dump script.
jelmer [Tue, 25 Dec 2007 16:36:23 +0000 (16:36 +0000)]
Finish fixing the samba3dump script.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26592 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoGet the first bits of samba3dump to work again.
jelmer [Mon, 24 Dec 2007 14:16:59 +0000 (14:16 +0000)]
Get the first bits of samba3dump to work again.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26591 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoParsing routines for the smbpasswd file and idmap database.
jelmer [Mon, 24 Dec 2007 14:16:40 +0000 (14:16 +0000)]
Parsing routines for the smbpasswd file and idmap database.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26590 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotorture: Add non-const version of torture_tcase_add_simple_test
kai [Mon, 24 Dec 2007 13:06:57 +0000 (13:06 +0000)]
torture: Add non-const version of torture_tcase_add_simple_test

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26589 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoJanitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
kai [Mon, 24 Dec 2007 13:04:56 +0000 (13:04 +0000)]
Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.

Also rename the corresponding wrap_ functions.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26588 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix reading Samba 3 WINS database and initial work on group db, aliases and secrets.
jelmer [Mon, 24 Dec 2007 13:04:33 +0000 (13:04 +0000)]
Fix reading Samba 3 WINS database and initial work on group db, aliases and secrets.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26587 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRename fetch to get for consistency with the Python dictionary interface.
jelmer [Mon, 24 Dec 2007 13:04:13 +0000 (13:04 +0000)]
Rename fetch to get for consistency with the Python dictionary interface.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26586 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix samba3.python tests.
jelmer [Mon, 24 Dec 2007 11:02:52 +0000 (11:02 +0000)]
Fix samba3.python tests.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26585 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix exception handling in ldb constructor.
jelmer [Mon, 24 Dec 2007 11:02:45 +0000 (11:02 +0000)]
Fix exception handling in ldb constructor.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26584 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoThrow a proper exception in the python code when tdb_open() fails, fix indentation...
jelmer [Mon, 24 Dec 2007 11:02:32 +0000 (11:02 +0000)]
Throw a proper exception in the python code when tdb_open() fails, fix indentation in generated SWIG code from pidl.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26583 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoUse the same swig flags everywhere.
jelmer [Mon, 24 Dec 2007 01:55:09 +0000 (01:55 +0000)]
Use the same swig flags everywhere.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26582 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake ldb_wait uniform, so that it is easy to remove it completely from modules
idra [Mon, 24 Dec 2007 01:38:37 +0000 (01:38 +0000)]
Make ldb_wait uniform, so that it is easy to remove it completely from modules
later on.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26581 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoInclude sentinel in build.h, in case the list is empty.
jelmer [Mon, 24 Dec 2007 01:28:22 +0000 (01:28 +0000)]
Include sentinel in build.h, in case the list is empty.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26580 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix the typo that breaks the code coverage build.
jelmer [Mon, 24 Dec 2007 00:35:40 +0000 (00:35 +0000)]
Fix the typo that breaks the code coverage build.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26579 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoEnsure directory exists.
jelmer [Mon, 24 Dec 2007 00:13:57 +0000 (00:13 +0000)]
Ensure directory exists.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26578 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix the standalone ldb build.
jelmer [Mon, 24 Dec 2007 00:10:08 +0000 (00:10 +0000)]
Fix the standalone ldb build.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26577 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAllow the static module loading code to be used for the Python modules.
jelmer [Sun, 23 Dec 2007 23:54:30 +0000 (23:54 +0000)]
Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26576 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoBuild a private copy of the Python executable for Samba 4, so we know we're always...
jelmer [Sun, 23 Dec 2007 22:06:29 +0000 (22:06 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26575 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoDo not call functions in the variable declaration, fix checking for tmp_ctx,
idra [Sun, 23 Dec 2007 22:03:31 +0000 (22:03 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26574 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix warnings.
jelmer [Sun, 23 Dec 2007 21:27:58 +0000 (21:27 +0000)]
Fix warnings.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26573 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix warnings in the Python code.
jelmer [Sun, 23 Dec 2007 20:56:41 +0000 (20:56 +0000)]
Fix warnings in the Python code.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26572 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoHide warnings about unused macros and casting qualifiers in autogenerated files.
jelmer [Sun, 23 Dec 2007 20:22:46 +0000 (20:22 +0000)]
Hide warnings about unused macros and casting qualifiers in autogenerated files.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26571 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years ago- Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
jelmer [Sun, 23 Dec 2007 19:19:41 +0000 (19:19 +0000)]
- 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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26570 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoJelmer tells me that ldb must inevitably be build as a shared library,
vlendec [Sun, 23 Dec 2007 16:05:05 +0000 (16:05 +0000)]
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 :-(((

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26569 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRevert r26482
vlendec [Sun, 23 Dec 2007 15:57:58 +0000 (15:57 +0000)]
Revert r26482

Next attempt to fix the Samba3 torture breakage

Jelmer, can you please review this?

Thanks,

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26568 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAllow registering new ldb modules from python.
jelmer [Sat, 22 Dec 2007 14:28:45 +0000 (14:28 +0000)]
Allow registering new ldb modules from python.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26567 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix member provision when using python.
jelmer [Sat, 22 Dec 2007 05:11:21 +0000 (05:11 +0000)]
Fix member provision when using python.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26566 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.
jelmer [Sat, 22 Dec 2007 05:03:02 +0000 (05:03 +0000)]
Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26565 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMore python bindings for registry code.
jelmer [Sat, 22 Dec 2007 05:02:57 +0000 (05:02 +0000)]
More python bindings for registry code.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26564 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix reg_diff_apply argument order.
jelmer [Sat, 22 Dec 2007 05:02:48 +0000 (05:02 +0000)]
Fix reg_diff_apply argument order.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26563 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix provisioning using Python.
jelmer [Sat, 22 Dec 2007 02:26:38 +0000 (02:26 +0000)]
Fix provisioning using Python.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26562 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix make gdbtest, valgrindtest and testenv for shared libs.
jelmer [Sat, 22 Dec 2007 00:47:48 +0000 (00:47 +0000)]
Fix make gdbtest, valgrindtest and testenv for shared libs.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26561 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd script for running in valgrind.
jelmer [Sat, 22 Dec 2007 00:47:44 +0000 (00:47 +0000)]
Add script for running in valgrind.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26560 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake the provision function a bit smaller.
jelmer [Sat, 22 Dec 2007 00:47:36 +0000 (00:47 +0000)]
Make the provision function a bit smaller.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26559 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd IDL for netr_GetForestTrustInformation().
gd [Fri, 21 Dec 2007 23:52:14 +0000 (23:52 +0000)]
Add IDL for netr_GetForestTrustInformation().

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26558 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agosync WHATSNEW with release branch of Samba4
abartlet [Fri, 21 Dec 2007 22:55:02 +0000 (22:55 +0000)]
sync WHATSNEW with release branch of Samba4

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26557 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake Fedora DS consistant use FEDORA_DS_ROOT, now we use OPENLDAP_ROOT.
abartlet [Fri, 21 Dec 2007 02:33:43 +0000 (02:33 +0000)]
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26556 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoUse python-config utility to find python compile/link flags.
jelmer [Fri, 21 Dec 2007 00:36:17 +0000 (00:36 +0000)]
Use python-config utility to find python compile/link flags.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26555 0c0555d6-39d7-0310-84fc-f1cc0bd64818

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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26554 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix html output.
jelmer [Thu, 20 Dec 2007 17:07:28 +0000 (17:07 +0000)]
Fix html output.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26553 0c0555d6-39d7-0310-84fc-f1cc0bd64818

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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26552 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake sure NULL is defined before using it to test for getifaddrs().
jpeach [Thu, 20 Dec 2007 16:35:42 +0000 (16:35 +0000)]
Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26551 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: fallback to __ss_family of struct sockaddr_storage
metze [Thu, 20 Dec 2007 15:59:39 +0000 (15:59 +0000)]
libreplace: fallback to __ss_family of struct sockaddr_storage

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26550 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove suite-specific bits.
jelmer [Thu, 20 Dec 2007 15:54:08 +0000 (15:54 +0000)]
Remove suite-specific bits.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26549 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove remaining variables from state hash.
jelmer [Thu, 20 Dec 2007 15:54:05 +0000 (15:54 +0000)]
Remove remaining variables from state hash.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26548 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake testsuites less special during subunit handling.
jelmer [Thu, 20 Dec 2007 15:54:02 +0000 (15:54 +0000)]
Make testsuites less special during subunit handling.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26547 0c0555d6-39d7-0310-84fc-f1cc0bd64818

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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26546 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSync output with ejs.
jelmer [Thu, 20 Dec 2007 15:53:56 +0000 (15:53 +0000)]
Sync output with ejs.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26545 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRevert my previous commit after concerns raised by Andrew.
jelmer [Thu, 20 Dec 2007 00:02:15 +0000 (00:02 +0000)]
Revert my previous commit after concerns raised by Andrew.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26540 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove unnecessary statics.
jelmer [Wed, 19 Dec 2007 23:27:42 +0000 (23:27 +0000)]
Remove unnecessary statics.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26539 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoPass path generation function around rather than base directory.
jelmer [Wed, 19 Dec 2007 23:27:38 +0000 (23:27 +0000)]
Pass path generation function around rather than base directory.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26538 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSupport ldb.add({'dn': 'dc=foo,bar=bla', ...}).
jelmer [Wed, 19 Dec 2007 23:27:34 +0000 (23:27 +0000)]
Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26537 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMore tests for provisioning code.
jelmer [Wed, 19 Dec 2007 23:27:31 +0000 (23:27 +0000)]
More tests for provisioning code.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26536 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoGet rid of all-knowing ProvisionSettings object.
jelmer [Wed, 19 Dec 2007 23:27:24 +0000 (23:27 +0000)]
Get rid of all-knowing ProvisionSettings object.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26535 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoconfigure: using == in shell scripts isn't portable
metze [Wed, 19 Dec 2007 11:34:36 +0000 (11:34 +0000)]
configure: using == in shell scripts isn't portable

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

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26534 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: hopefully fix the share library/module build on darwin
metze [Wed, 19 Dec 2007 08:18:57 +0000 (08:18 +0000)]
libreplace: hopefully fix the share library/module build on darwin

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26533 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix mistake in assignment.
mimir [Wed, 19 Dec 2007 00:46:43 +0000 (00:46 +0000)]
Fix mistake in assignment.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26532 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoPrevent from displaying the results if the function
mimir [Wed, 19 Dec 2007 00:45:07 +0000 (00:45 +0000)]
Prevent from displaying the results if the function
call has failed.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26531 0c0555d6-39d7-0310-84fc-f1cc0bd64818