samba-svnmirror.git
11 years agoldb: Build and install python modules when possible. v4-0
jelmer [Thu, 10 Jan 2008 15:36:35 +0000 (15:36 +0000)]
ldb: Build and install python modules when possible.

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

11 years agotdb: Build and install Python bindings when possible.
jelmer [Thu, 10 Jan 2008 15:17:26 +0000 (15:17 +0000)]
tdb: Build and install Python bindings when possible.

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

11 years agoSome minor cosmetics for pidl samba3 server code.
gd [Wed, 9 Jan 2008 11:28:53 +0000 (11:28 +0000)]
Some minor cosmetics for pidl samba3 server code.

Guenther

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

11 years agoPrettify samba3 client code a little more.
gd [Wed, 9 Jan 2008 10:56:07 +0000 (10:56 +0000)]
Prettify samba3 client code a little more.

Guenther

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

11 years agoLeak less memory into the ldb context.
abartlet [Wed, 9 Jan 2008 05:36:02 +0000 (05:36 +0000)]
Leak less memory into the ldb context.

(Trying to chase down memory leaks in provision)

Andrew Bartlett

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

11 years agoSome more minor pidl samba3 client cosmetics.
gd [Tue, 8 Jan 2008 22:56:44 +0000 (22:56 +0000)]
Some more minor pidl samba3 client cosmetics.

Guenther

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

11 years agoCosmetic fix for pidl generated samba3 client code.
gd [Tue, 8 Jan 2008 17:02:53 +0000 (17:02 +0000)]
Cosmetic fix for pidl generated samba3 client code.

Guenther

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

11 years agoasn1: Fix header and some typo's.
jelmer [Tue, 8 Jan 2008 14:27:40 +0000 (14:27 +0000)]
asn1: Fix header and some typo's.

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

11 years agoAdd (untested) libnet_rpc_groupdel function.
mimir [Tue, 8 Jan 2008 10:20:44 +0000 (10:20 +0000)]
Add (untested) libnet_rpc_groupdel function.

rafal

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

11 years agoregistry: Treat key and value names case-insensitively.
jelmer [Mon, 7 Jan 2008 23:41:55 +0000 (23:41 +0000)]
registry: Treat key and value names case-insensitively.

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

11 years agoregistry: Add subkeys required for Server Manager Alerts and Peplication. See bugs...
jelmer [Mon, 7 Jan 2008 22:34:53 +0000 (22:34 +0000)]
registry: Add subkeys required for Server Manager Alerts and Peplication. See bugs 4934 and 4935.

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

11 years agotorture: Move torture_context_init() to the ui.c, where all functions related to...
jelmer [Mon, 7 Jan 2008 22:34:46 +0000 (22:34 +0000)]
torture: Move torture_context_init() to the ui.c, where all functions related to it are.

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

11 years agoregistry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
jelmer [Mon, 7 Jan 2008 14:11:29 +0000 (14:11 +0000)]
registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().

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

11 years agoFix listing remote predefined keys and subkeys. This fixes bug 3431.
jelmer [Mon, 7 Jan 2008 14:11:25 +0000 (14:11 +0000)]
Fix listing remote predefined keys and subkeys. This fixes bug 3431.

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

11 years agopython: Update status after feedback from abartlett.
jelmer [Mon, 7 Jan 2008 14:11:19 +0000 (14:11 +0000)]
python: Update status after feedback from abartlett.

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

11 years agoFix bug 5143 by Jason Tarbet. This prevented an easy cut-and-paste of
abartlet [Mon, 7 Jan 2008 05:50:04 +0000 (05:50 +0000)]
Fix bug 5143 by Jason Tarbet.  This prevented an easy cut-and-paste of
the provision options used.

Andrew Bartlett

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

11 years agoFix bug 5137 by Mark Ridley. The RPC-ATSVC test is not tested, so was
abartlet [Mon, 7 Jan 2008 05:41:16 +0000 (05:41 +0000)]
Fix bug 5137 by Mark Ridley.  The RPC-ATSVC test is not tested, so was
broken by 'ref' changes long ago.

We need a working script to aim against windows.

Andrew Bartlett

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

11 years agoTrivial cleanup from Matthias Dieter Wallnöfer, from bug 5090
abartlet [Mon, 7 Jan 2008 05:22:14 +0000 (05:22 +0000)]
Trivial cleanup from Matthias Dieter Wallnöfer, from bug 5090

Andrew Bartlett

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

11 years agoAdd another testcase. I still don't know what's wrong here.
abartlet [Mon, 7 Jan 2008 04:46:13 +0000 (04:46 +0000)]
Add another testcase.  I still don't know what's wrong here.

Andrew Bartlett

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

11 years agoMove CLDAP to the modern torture system, and add value checking.
abartlet [Mon, 7 Jan 2008 03:15:39 +0000 (03:15 +0000)]
Move CLDAP to the modern torture system, and add value checking.

Andrew Bartlett

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

11 years agoUse fewer magic numbers.
abartlet [Mon, 7 Jan 2008 03:14:51 +0000 (03:14 +0000)]
Use fewer magic numbers.

Andrew Bartlett

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

11 years agoDon't always advertise GC functionality.
abartlet [Mon, 7 Jan 2008 00:47:01 +0000 (00:47 +0000)]
Don't always advertise GC functionality.

Andrew Bartlett

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

11 years agoIt is very bad to free the ldb handle when you didn't create it...
abartlet [Mon, 7 Jan 2008 00:46:39 +0000 (00:46 +0000)]
It is very bad to free the ldb handle when you didn't create it...

(My bad when copying this code into samdb_is_gc()).

Andrew Bartlett

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

11 years agoCheck in auto-generated swig files.
tpot [Sun, 6 Jan 2008 23:42:46 +0000 (23:42 +0000)]
Check in auto-generated swig files.

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

11 years agoImplement and test iter{keys,values,items} for tdb bindings.
tpot [Sun, 6 Jan 2008 23:17:55 +0000 (23:17 +0000)]
Implement and test iter{keys,values,items} for tdb bindings.

Use tempfile.mkstemp() instead of os.tmpnam() in tests.

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

11 years agolibcli: Fill in lp_workgroup() again, should fix my breakage of cifsdd tests. Thanks...
jelmer [Sun, 6 Jan 2008 22:01:31 +0000 (22:01 +0000)]
libcli: Fill in lp_workgroup() again, should fix my breakage of cifsdd tests. Thanks to Andrew for catching this.

Also fixes a typo in sessetup.c.

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

11 years agomkproto: Add --all argument, fix some perl warnings.
jelmer [Sat, 5 Jan 2008 21:29:25 +0000 (21:29 +0000)]
mkproto: Add --all argument, fix some perl warnings.

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

11 years agosmb_composite: Avoid use of global_loadparm.
jelmer [Sat, 5 Jan 2008 19:33:11 +0000 (19:33 +0000)]
smb_composite: Avoid use of global_loadparm.

Hopefully this fixes OpenChange's mapiadmin.

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

11 years agoselftest: Document the purpose and output format of samba4_tests.sh.
jelmer [Sat, 5 Jan 2008 19:33:05 +0000 (19:33 +0000)]
selftest: Document the purpose and output format of samba4_tests.sh.

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

11 years agoJanitorial: Remove uses of global_loadparm.
jelmer [Sat, 5 Jan 2008 19:03:43 +0000 (19:03 +0000)]
Janitorial: Remove uses of global_loadparm.

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

11 years agorap: Convert the RAP tests to the new torture API and run them by default.
jelmer [Sat, 5 Jan 2008 19:03:36 +0000 (19:03 +0000)]
rap: Convert the RAP tests to the new torture API and run them by default.

We don't have a server-side implementation of netservergetinfo yet, so it is
marked as known failing.

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

11 years agoJanitorial: Remove global_loadparm uses.
jelmer [Sat, 5 Jan 2008 15:36:37 +0000 (15:36 +0000)]
Janitorial: Remove global_loadparm uses.

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

11 years agoJanitorial: Remove uses of global_loadparm.
jelmer [Sat, 5 Jan 2008 15:36:33 +0000 (15:36 +0000)]
Janitorial: Remove uses of global_loadparm.

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

11 years agotdb/python: Fix default value of open_flags for tdb.
jelmer [Sat, 5 Jan 2008 15:36:26 +0000 (15:36 +0000)]
tdb/python: Fix default value of open_flags for tdb.

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

11 years agopidl/python: Don't generate casts anymore; this will generate warnings with older...
jelmer [Sat, 5 Jan 2008 14:00:12 +0000 (14:00 +0000)]
pidl/python: Don't generate casts anymore; this will generate warnings with older Pythons, but will be a lot cleaner with newer versions.

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

11 years agopython: Prefer newer Python versions as they use const properly.
jelmer [Sat, 5 Jan 2008 14:00:07 +0000 (14:00 +0000)]
python: Prefer newer Python versions as they use const properly.

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

11 years agoregistry: Fix tests on bigendian machines.
jelmer [Sat, 5 Jan 2008 13:59:53 +0000 (13:59 +0000)]
registry: Fix tests on bigendian machines.

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

11 years agobuildsystem: Hopefully fix the shared library build on AIX.
jelmer [Fri, 4 Jan 2008 15:41:29 +0000 (15:41 +0000)]
buildsystem: Hopefully fix the shared library build on AIX.

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

11 years agoProper dependencies for pidl Python bindings.
jelmer [Fri, 4 Jan 2008 03:44:41 +0000 (03:44 +0000)]
Proper dependencies for pidl Python bindings.

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

11 years agopidl/python: Add constructors for struct/union types.
jelmer [Fri, 4 Jan 2008 03:44:38 +0000 (03:44 +0000)]
pidl/python: Add constructors for struct/union types.

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

11 years agopidl/python: More generic handling of NTSTATUS, add stubs for types.
jelmer [Fri, 4 Jan 2008 03:44:32 +0000 (03:44 +0000)]
pidl/python: More generic handling of NTSTATUS, add stubs for types.

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

11 years agopidl/python: Generate stub functions for DCE/RPC client functions, constructor for...
jelmer [Thu, 3 Jan 2008 23:58:38 +0000 (23:58 +0000)]
pidl/python: Generate stub functions for DCE/RPC client functions, constructor for interface objects.

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

11 years agopidl/python: Support string constants and handle modules.
jelmer [Thu, 3 Jan 2008 21:57:44 +0000 (21:57 +0000)]
pidl/python: Support string constants and handle modules.

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

11 years agopidl: Register Python modules.
jelmer [Thu, 3 Jan 2008 21:45:18 +0000 (21:45 +0000)]
pidl: Register Python modules.
librpc: Build Python module for the echo pipe, for testing purposes.

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

11 years agopidl: Add basics for generating Python modules.
jelmer [Thu, 3 Jan 2008 21:21:16 +0000 (21:21 +0000)]
pidl: Add basics for generating Python modules.

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

11 years agopython: Add file documentating the status of the Python migration.
jelmer [Thu, 3 Jan 2008 21:21:12 +0000 (21:21 +0000)]
python: Add file documentating the status of the Python migration.

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

11 years agotorture/auth/pac: remove uses of global_loadparm
jelmer [Thu, 3 Jan 2008 21:21:05 +0000 (21:21 +0000)]
torture/auth/pac: remove uses of global_loadparm

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

11 years agolibcli/smb_composite: Rather than specifying each of the gazillion options for SMB...
jelmer [Thu, 3 Jan 2008 17:22:12 +0000 (17:22 +0000)]
libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.

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

11 years agoJanitorial: Remove global_loadparm use in two more places.
jelmer [Thu, 3 Jan 2008 17:22:08 +0000 (17:22 +0000)]
Janitorial: Remove global_loadparm use in two more places.

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

11 years agomsrpc_parse/msrpc_gen: Add iconv_convenience argument.
jelmer [Thu, 3 Jan 2008 17:22:04 +0000 (17:22 +0000)]
msrpc_parse/msrpc_gen: Add iconv_convenience argument.

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

11 years agolibsmb: Allow specifying signing policy from higher up.
jelmer [Thu, 3 Jan 2008 17:21:58 +0000 (17:21 +0000)]
libsmb: Allow specifying signing policy from higher up.

The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.

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

11 years agotorture/raw: Fix warnings in lockbench/openbench.
jelmer [Thu, 3 Jan 2008 17:21:50 +0000 (17:21 +0000)]
torture/raw: Fix warnings in lockbench/openbench.

I'm surprised this didn't cause any breakages. We should probably run (a subset of) RAW-LOCKBENCH + RAW-OPENBENCH in make test to make sure they don't regress.

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

11 years agoOnly claim to be a PDC if we are a PDC.
abartlet [Thu, 3 Jan 2008 06:00:38 +0000 (06:00 +0000)]
Only claim to be a PDC if we are a PDC.

Andrew Bartlett

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

11 years agoMove detection of global catalog captability to a central function, so
abartlet [Thu, 3 Jan 2008 04:40:24 +0000 (04:40 +0000)]
Move detection of global catalog captability to a central function, so
this can be shared with the CLDAP server (for the netlogon reply).

Andrew Bartlett

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

11 years agoMark 'valgrind_run' as executable
abartlet [Thu, 3 Jan 2008 03:31:14 +0000 (03:31 +0000)]
Mark 'valgrind_run' as executable

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

11 years agolibcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect struct...
jelmer [Wed, 2 Jan 2008 18:39:15 +0000 (18:39 +0000)]
libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections.

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

11 years agoJanitorial: Fix a couple of warnings.
jelmer [Wed, 2 Jan 2008 18:39:11 +0000 (18:39 +0000)]
Janitorial: Fix a couple of warnings.

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

11 years agoJanitorial: Pass resolve_context explicitly to various SMB functions, should help...
jelmer [Wed, 2 Jan 2008 18:39:01 +0000 (18:39 +0000)]
Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.

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

11 years agolibrpc: Remove uses of global_loadparm.
jelmer [Wed, 2 Jan 2008 15:00:58 +0000 (15:00 +0000)]
librpc: Remove uses of global_loadparm.

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

11 years agosamba3sam.py: Remove more EJS-specific code.
jelmer [Wed, 2 Jan 2008 01:52:31 +0000 (01:52 +0000)]
samba3sam.py: Remove more EJS-specific code.

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

11 years agoldb(Python): Remove some unnecessary {}'s.
jelmer [Wed, 2 Jan 2008 01:52:26 +0000 (01:52 +0000)]
ldb(Python): Remove some unnecessary {}'s.

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

11 years agoJanitorial: Remove some more uses of global_loadparm.
jelmer [Wed, 2 Jan 2008 01:52:18 +0000 (01:52 +0000)]
Janitorial: Remove some more uses of global_loadparm.

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

11 years agolibrpc: Pass iconv convenience on from RPC connection to NDR library, so it can be...
jelmer [Tue, 1 Jan 2008 22:05:13 +0000 (22:05 +0000)]
librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.

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

11 years agolibndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
jelmer [Tue, 1 Jan 2008 22:05:05 +0000 (22:05 +0000)]
libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().

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

11 years agoMore work converting to Python.
jelmer [Tue, 1 Jan 2008 22:04:57 +0000 (22:04 +0000)]
More work converting to Python.

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

11 years agoRemove useless 'backend' parameter, and make the memberof overlay use global.
abartlet [Tue, 1 Jan 2008 04:01:07 +0000 (04:01 +0000)]
Remove useless 'backend' parameter, and make the memberof overlay use global.

Andrew Bartlett

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

11 years agoThe OpenLDAP folks have been very accommodating, and their memberof plugin allows...
abartlet [Tue, 1 Jan 2008 03:27:53 +0000 (03:27 +0000)]
The OpenLDAP folks have been very accommodating, and their memberof plugin allows the error being returned to be adjusted.

Andrew Bartlett

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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