ira/wip.git
13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 23 Dec 2008 00:03:49 +0000 (01:03 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoUse relative paths for Python modules. Seems to workaround a strange bug in
Jelmer Vernooij [Mon, 22 Dec 2008 23:59:39 +0000 (00:59 +0100)]
Use relative paths for Python modules. Seems to workaround a strange bug in
GNU make.

13 years agos4: Fix a getaddrinfo/EAI_NODATA portability issue
Tim Prouty [Mon, 22 Dec 2008 23:04:10 +0000 (15:04 -0800)]
s4: Fix a getaddrinfo/EAI_NODATA portability issue

FreeBSD has explicitly deprecated EAI_NODATA as a return value from
getaddrinfo by removing it from netdb.h.  On systems that don't have
EAI_NODATA, EAI_NONAME should be used instead.

13 years agoFix installation of standalone tevent Python module.
Jelmer Vernooij [Mon, 22 Dec 2008 22:55:01 +0000 (23:55 +0100)]
Fix installation of standalone tevent Python module.

13 years agoFix standalone build of tdb python module, update ignores for standalone tdb.
Jelmer Vernooij [Mon, 22 Dec 2008 22:39:30 +0000 (23:39 +0100)]
Fix standalone build of tdb python module, update ignores for standalone tdb.

13 years agoForce symbolic links for shared library sonames to be created,
Jelmer Vernooij [Mon, 22 Dec 2008 22:36:48 +0000 (23:36 +0100)]
Force symbolic links for shared library sonames to be created,
as they are required at run-time.

13 years agoFix two remaining missing symbols in smbtorture4.
Jelmer Vernooij [Mon, 22 Dec 2008 22:00:10 +0000 (23:00 +0100)]
Fix two remaining missing symbols in smbtorture4.

13 years agoFix build of the Python bindings now that SWIG is gone.
Jelmer Vernooij [Mon, 22 Dec 2008 21:08:01 +0000 (22:08 +0100)]
Fix build of the Python bindings now that SWIG is gone.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Mon, 22 Dec 2008 20:15:59 +0000 (21:15 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoFix missing symbols issues when building with shared libraries.
Jelmer Vernooij [Mon, 22 Dec 2008 20:03:09 +0000 (21:03 +0100)]
Fix missing symbols issues when building with shared libraries.

13 years agoMake it clearer when RAW-STREAMS is failing (don't always print names).
Jeremy Allison [Mon, 22 Dec 2008 19:58:38 +0000 (11:58 -0800)]
Make it clearer when RAW-STREAMS is failing (don't always print names).
Jeremy.

13 years agoFix "allow trusted domain" so it disables trusted domains.
Gerald (Jerry) Carter [Mon, 22 Dec 2008 19:07:29 +0000 (11:07 -0800)]
Fix "allow trusted domain" so it disables trusted domains.

13 years agoFix function name in error message when failing to load module.
Jelmer Vernooij [Mon, 22 Dec 2008 18:17:13 +0000 (19:17 +0100)]
Fix function name in error message when failing to load module.

13 years agoSet right LD_LIBRARY_PATH for finding Samba4's libraries.
Jelmer Vernooij [Mon, 22 Dec 2008 18:13:28 +0000 (19:13 +0100)]
Set right LD_LIBRARY_PATH for finding Samba4's libraries.

13 years agoBuild samba 4 plugins in merged build.
Jelmer Vernooij [Mon, 22 Dec 2008 18:06:17 +0000 (19:06 +0100)]
Build samba 4 plugins in merged build.

13 years agos4: Fix subsystem for various services in samba daemon.
Jelmer Vernooij [Mon, 22 Dec 2008 18:04:55 +0000 (19:04 +0100)]
s4: Fix subsystem for various services in samba daemon.

13 years agoFix segfault when there are no tests registered.
Jelmer Vernooij [Mon, 22 Dec 2008 17:53:19 +0000 (18:53 +0100)]
Fix segfault when there are no tests registered.

13 years agomerged build: Build Samba 4 using shared libraries internally, when
Jelmer Vernooij [Mon, 22 Dec 2008 17:14:59 +0000 (18:14 +0100)]
merged build: Build Samba 4 using shared libraries internally, when
we're also doing so for Samba 3. This saves a significant amount of disk
space.

13 years agos4: Always link in auth, as some of the core infrastructure depends on it.
Jelmer Vernooij [Mon, 22 Dec 2008 17:12:22 +0000 (18:12 +0100)]
s4: Always link in auth, as some of the core infrastructure depends on it.

13 years agoNever build tevent modules as shared objects.
Jelmer Vernooij [Mon, 22 Dec 2008 16:56:28 +0000 (17:56 +0100)]
Never build tevent modules as shared objects.

13 years agoRemove unused Samba4-specific init functions for libtevent.
Jelmer Vernooij [Mon, 22 Dec 2008 16:43:46 +0000 (17:43 +0100)]
Remove unused Samba4-specific init functions for libtevent.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Mon, 22 Dec 2008 15:33:06 +0000 (16:33 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agomerged build: Remove SWIG checks, set flags for shared Samba 4 build.
Jelmer Vernooij [Mon, 22 Dec 2008 15:30:53 +0000 (16:30 +0100)]
merged build: Remove SWIG checks, set flags for shared Samba 4 build.

13 years agoRaise proper exceptions when lp file can't be found, be a
Jelmer Vernooij [Mon, 22 Dec 2008 05:34:18 +0000 (06:34 +0100)]
Raise proper exceptions when lp file can't be found, be a
bit less strict when no file was specified.

13 years agopidl/python: Factor out connect code rather than duplicating it in each
Jelmer Vernooij [Mon, 22 Dec 2008 03:56:41 +0000 (04:56 +0100)]
pidl/python: Factor out connect code rather than duplicating it in each
Python module.

13 years agoAdd header for pyparam.
Jelmer Vernooij [Mon, 22 Dec 2008 03:38:57 +0000 (04:38 +0100)]
Add header for pyparam.

13 years agoRemove includes of py_*.h, which are no longer generated.
Jelmer Vernooij [Mon, 22 Dec 2008 03:21:20 +0000 (04:21 +0100)]
Remove includes of py_*.h, which are no longer generated.

13 years agoRemove unnecessary dependencies between Python modules.
Jelmer Vernooij [Mon, 22 Dec 2008 03:13:16 +0000 (04:13 +0100)]
Remove unnecessary dependencies between Python modules.

13 years agoUse consistent names for dcerpc python modules; fixes messaging test.
Jelmer Vernooij [Mon, 22 Dec 2008 03:03:55 +0000 (04:03 +0100)]
Use consistent names for dcerpc python modules; fixes messaging test.

13 years agopidl/python: Skip unknown types, rather than dieing.
Jelmer Vernooij [Mon, 22 Dec 2008 02:22:28 +0000 (03:22 +0100)]
pidl/python: Skip unknown types, rather than dieing.

13 years agopidl: Allow location argument to warning() and error() to be undef, in case it is
Jelmer Vernooij [Mon, 22 Dec 2008 02:21:10 +0000 (03:21 +0100)]
pidl: Allow location argument to warning() and error() to be undef, in case it is
not known.

13 years agoImport types from other Python mechanisms using the Python import mechanism, to ensur...
Jelmer Vernooij [Mon, 22 Dec 2008 00:51:38 +0000 (01:51 +0100)]
Import types from other Python mechanisms using the Python import mechanism, to ensure they are initialized.

13 years agoFix comparison in tests now that we use __cmp__ rather than __eq__.
Jelmer Vernooij [Sun, 21 Dec 2008 22:24:36 +0000 (23:24 +0100)]
Fix comparison in tests now that we use __cmp__ rather than __eq__.

13 years agoFix more tests, improve repr() functions for various Python types.
Jelmer Vernooij [Sun, 21 Dec 2008 22:05:35 +0000 (23:05 +0100)]
Fix more tests, improve repr() functions for various Python types.

13 years agoRemove infrastructure for (no longer used) SWIG.
Jelmer Vernooij [Sun, 21 Dec 2008 20:16:40 +0000 (21:16 +0100)]
Remove infrastructure for (no longer used) SWIG.

13 years agoSimplify customization of pidl-generated Python modules.
Jelmer Vernooij [Sun, 21 Dec 2008 20:10:40 +0000 (21:10 +0100)]
Simplify customization of pidl-generated Python modules.

13 years agoAllow providing extra module-level Python functions.
Jelmer Vernooij [Sun, 21 Dec 2008 17:46:59 +0000 (18:46 +0100)]
Allow providing extra module-level Python functions.

13 years agoMerge the rest of security.i into samba.dcerpc.security.
Jelmer Vernooij [Sun, 21 Dec 2008 17:25:59 +0000 (18:25 +0100)]
Merge the rest of security.i into samba.dcerpc.security.

13 years agoRemove duplicate Python bindings for dom_sid, security_descriptor and
Jelmer Vernooij [Sun, 21 Dec 2008 17:03:27 +0000 (18:03 +0100)]
Remove duplicate Python bindings for dom_sid, security_descriptor and
security_token.

13 years agoRemove libcli_smb SWIG bindings - only one (useless on its own) function was wrapped...
Jelmer Vernooij [Sun, 21 Dec 2008 16:01:50 +0000 (17:01 +0100)]
Remove libcli_smb SWIG bindings - only one (useless on its own) function was wrapped anyway.

13 years agoMove tests for ParamFile.
Jelmer Vernooij [Sun, 21 Dec 2008 15:39:17 +0000 (16:39 +0100)]
Move tests for ParamFile.

13 years agoConvert param Python module to "manual" C.
Jelmer Vernooij [Sun, 21 Dec 2008 15:32:47 +0000 (16:32 +0100)]
Convert param Python module to "manual" C.

13 years agoProvide simple Python replacement for ParamFile, which currently exists
Jelmer Vernooij [Sun, 21 Dec 2008 14:55:23 +0000 (15:55 +0100)]
Provide simple Python replacement for ParamFile, which currently exists
with a lot of overhead.

13 years agos3:loadparm/docs: Set default for "ldap ssl" to "start tls".
root [Sun, 21 Dec 2008 07:55:30 +0000 (08:55 +0100)]
s3:loadparm/docs: Set default for "ldap ssl" to "start tls".

This has been discussed on samba-technical before.
3.3 and newer only!

Karolin

13 years agos3: loadparm: Clean-up list of parameters.
Karolin Seeger [Sun, 21 Dec 2008 07:23:39 +0000 (08:23 +0100)]
s3: loadparm: Clean-up list of parameters.

We don't need to list several combinations of lowercase and uppercase here.

Karolin

13 years agoFix various Python-related bugs.
Jelmer Vernooij [Sun, 21 Dec 2008 06:34:27 +0000 (07:34 +0100)]
Fix various Python-related bugs.

13 years agoInclude errors.i verbatim in security.i, as it's the only file still using it.
Jelmer Vernooij [Sun, 21 Dec 2008 04:35:39 +0000 (05:35 +0100)]
Include errors.i verbatim in security.i, as it's the only file still using it.

13 years agoConvert credentials Python module to "manual" C - no SWIG used to generate
Jelmer Vernooij [Sun, 21 Dec 2008 04:29:23 +0000 (05:29 +0100)]
Convert credentials Python module to "manual" C - no SWIG used to generate
the C code.

13 years agoRemove remaining fragments of SWIG code in pyldb.
Jelmer Vernooij [Sun, 21 Dec 2008 03:42:51 +0000 (04:42 +0100)]
Remove remaining fragments of SWIG code in pyldb.

13 years agoFix more introduced regressions in new bindings.
Jelmer Vernooij [Sun, 21 Dec 2008 03:36:16 +0000 (04:36 +0100)]
Fix more introduced regressions in new bindings.

13 years agoConvert auth python module to "plain" C rather than using SWIG.
Jelmer Vernooij [Sun, 21 Dec 2008 02:37:31 +0000 (03:37 +0100)]
Convert auth python module to "plain" C rather than using SWIG.

13 years agopy: Fix initialisation of subtypes, fix segfaults.
Jelmer Vernooij [Sun, 21 Dec 2008 02:08:14 +0000 (03:08 +0100)]
py: Fix initialisation of subtypes, fix segfaults.

13 years agoAvoid linking in all Python modules to the samba binaries - we can just let Python...
Jelmer Vernooij [Sat, 20 Dec 2008 23:53:06 +0000 (00:53 +0100)]
Avoid linking in all Python modules to the samba binaries - we can just let Python dlopen() them.

13 years agoCreate and use convenience function for creating new talloc-wrapping Python Objects...
Jelmer Vernooij [Sat, 20 Dec 2008 23:37:31 +0000 (00:37 +0100)]
Create and use convenience function for creating new talloc-wrapping Python Objects, support subtypes of DCE/RPC interfaces properly

13 years agoImplement some of the stubs in misc python module.
Jelmer Vernooij [Sat, 20 Dec 2008 23:24:54 +0000 (00:24 +0100)]
Implement some of the stubs in misc python module.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Sat, 20 Dec 2008 23:11:50 +0000 (00:11 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoSupport custom constructors for pidl-created types and support types based on pidl...
Jelmer Vernooij [Sat, 20 Dec 2008 23:09:30 +0000 (00:09 +0100)]
Support custom constructors for pidl-created types and support types based on pidl-created types.

13 years agoUse plain C implementation for misc Python module rather than SWIG.
Jelmer Vernooij [Sat, 20 Dec 2008 22:38:30 +0000 (23:38 +0100)]
Use plain C implementation for misc Python module rather than SWIG.

13 years agoSupport subtypes of ldb.Ldb.
Jelmer Vernooij [Sat, 20 Dec 2008 22:00:23 +0000 (23:00 +0100)]
Support subtypes of ldb.Ldb.

13 years agoFix all pyldb tests except for modules.
Jelmer Vernooij [Sat, 20 Dec 2008 21:21:39 +0000 (22:21 +0100)]
Fix all pyldb tests except for modules.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Sat, 20 Dec 2008 20:21:19 +0000 (21:21 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoFix tevent python module build as part of samba 4.
Jelmer Vernooij [Sat, 20 Dec 2008 20:19:48 +0000 (21:19 +0100)]
Fix tevent python module build as part of samba 4.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into tevent-standalone
Jelmer Vernooij [Sat, 20 Dec 2008 19:33:02 +0000 (20:33 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into tevent-standalone

13 years agoStop using SWIG for ldb Python bindings.
Jelmer Vernooij [Sat, 20 Dec 2008 18:54:13 +0000 (19:54 +0100)]
Stop using SWIG for ldb Python bindings.

13 years agoFix standalone compilation of events library.
Jelmer Vernooij [Sat, 20 Dec 2008 18:23:30 +0000 (19:23 +0100)]
Fix standalone compilation of events library.

13 years agoAdd missing files for standalone build.
Jelmer Vernooij [Sat, 20 Dec 2008 17:06:31 +0000 (18:06 +0100)]
Add missing files for standalone build.

13 years agoCorrections to Microsoft's schema and the OpenLDAP mapping file
Andrew Bartlett [Sat, 20 Dec 2008 05:43:48 +0000 (16:43 +1100)]
Corrections to Microsoft's schema and the OpenLDAP mapping file

13 years agoTreat DN+STring as a binary string for now
Andrew Bartlett [Sat, 20 Dec 2008 04:11:40 +0000 (15:11 +1100)]
Treat DN+STring as a binary string for now

This matches the way we work with DN+Binary.  We need this for the
OpenLDAP backend.

Andrew Bartlett

13 years agoDon't trust sscanf not to run off the end of the string
Andrew Bartlett [Sat, 20 Dec 2008 01:05:48 +0000 (12:05 +1100)]
Don't trust sscanf not to run off the end of the string

The memory allocations here are wasteful, but they do nicely ensure we
cannot walk off the end of the DATA_BLOB that might be a string, or
might be binary and might not be NULL terminated.

Andrew Bartlett

13 years agoNow store the GUID and SID from a DN over DRSUAPI into ldb.
Andrew Bartlett [Fri, 19 Dec 2008 04:24:36 +0000 (15:24 +1100)]
Now store the GUID and SID from a DN over DRSUAPI into ldb.

Until the extended DN work was compleated, there was no way to store
the additional metadata.

Andrew Bartlett

13 years agoFix compiler warning when parsing a SID in a data blob
Andrew Bartlett [Fri, 19 Dec 2008 04:23:58 +0000 (15:23 +1100)]
Fix compiler warning when parsing a SID in a data blob

13 years agoAdd torture test for bug #5986 - streams rename, so we don't regress.
Jeremy Allison [Sat, 20 Dec 2008 02:01:26 +0000 (18:01 -0800)]
Add torture test for bug #5986 - streams rename, so we don't regress.
Jeremy.

13 years agoMerge branch 'pyregistry' of git://git.samba.org/jelmer/samba
Jelmer Vernooij [Fri, 19 Dec 2008 22:55:45 +0000 (23:55 +0100)]
Merge branch 'pyregistry' of git://git.samba.org/jelmer/samba

Conflicts:
source4/lib/ldb/ldb_wrap.c

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Fri, 19 Dec 2008 22:51:23 +0000 (23:51 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoExtend the chain1 test with write&x
Volker Lendecke [Fri, 19 Dec 2008 22:49:14 +0000 (23:49 +0100)]
Extend the chain1 test with write&x

13 years agoReprocess LDB SWIG file.
Jelmer Vernooij [Fri, 19 Dec 2008 22:48:30 +0000 (23:48 +0100)]
Reprocess LDB SWIG file.

13 years agoAdd a torture test simulating Windows write behaviour
Volker Lendecke [Fri, 19 Dec 2008 22:41:19 +0000 (23:41 +0100)]
Add a torture test simulating Windows write behaviour

Jeremy, enjoy :-)

13 years agoMake smbclient "put" use cli_push
Volker Lendecke [Fri, 19 Dec 2008 22:33:55 +0000 (23:33 +0100)]
Make smbclient "put" use cli_push

This should fill the TCP socket even beyond the smbclient io_bufsize, very much
like smbclient "get" should do it since 3.2

13 years agoDepend on specific version of LDB, as the API seems to unstable
Jelmer Vernooij [Fri, 19 Dec 2008 22:33:43 +0000 (23:33 +0100)]
Depend on specific version of LDB, as the API seems to unstable
to predict that newer versions (even minor versions) are going to be be
backwards compatible :-(

13 years agoAdd async cli_write_andx and cli_pull
Volker Lendecke [Fri, 19 Dec 2008 21:58:34 +0000 (22:58 +0100)]
Add async cli_write_andx and cli_pull

13 years agoFix bug #5986 - Editing a stream is broken (rename problems).
Jeremy Allison [Fri, 19 Dec 2008 21:59:12 +0000 (13:59 -0800)]
Fix bug #5986 - Editing a stream is broken (rename problems).
Jeremy.

13 years agoSpecify explicit path to tevent.h, compilation breaks without it for me.
Jelmer Vernooij [Fri, 19 Dec 2008 21:03:11 +0000 (22:03 +0100)]
Specify explicit path to tevent.h, compilation breaks without it for me.

13 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Fri, 19 Dec 2008 20:47:45 +0000 (21:47 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

13 years agoAvoid use of parentheses in Python import statements, as it's not supported by Python2.3.
Jelmer Vernooij [Fri, 19 Dec 2008 20:47:31 +0000 (21:47 +0100)]
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.

13 years agoFix setting smb_len for huge write&x calls
Volker Lendecke [Fri, 19 Dec 2008 17:15:30 +0000 (18:15 +0100)]
Fix setting smb_len for huge write&x calls

13 years agoAdd the cli_wct_ofs routine to calculate the offset for write&x
Volker Lendecke [Fri, 19 Dec 2008 17:12:44 +0000 (18:12 +0100)]
Add the cli_wct_ofs routine to calculate the offset for write&x

13 years agoRemove the direct inbuf reference from construct_reply_common()
Volker Lendecke [Fri, 19 Dec 2008 17:07:44 +0000 (18:07 +0100)]
Remove the direct inbuf reference from construct_reply_common()

13 years agoAdd a doxygen comment line I forgot to merge
Volker Lendecke [Fri, 19 Dec 2008 16:50:34 +0000 (17:50 +0100)]
Add a doxygen comment line I forgot to merge

13 years agoConvert cli_request->outbuf to uint8_t
Volker Lendecke [Fri, 19 Dec 2008 16:44:32 +0000 (17:44 +0100)]
Convert cli_request->outbuf to uint8_t

13 years agoFix more tests.
Jelmer Vernooij [Fri, 19 Dec 2008 16:08:35 +0000 (16:08 +0000)]
Fix more tests.

13 years agoFor large smbwrite&x, we need more than 64k bcc
Volker Lendecke [Fri, 19 Dec 2008 15:11:14 +0000 (16:11 +0100)]
For large smbwrite&x, we need more than 64k bcc

13 years agoAdd some comments
Volker Lendecke [Fri, 19 Dec 2008 15:10:08 +0000 (16:10 +0100)]
Add some comments

If it takes more than 10 seconds to understand the code you've written yourself
less than a year ago, it's time for comments or refactoring. I couldn't find a
way to refactor that cleanly, so add comments :-)

13 years agos4:cosmetic: Remove trailing tabs and spaces
Simo Sorce [Fri, 19 Dec 2008 14:58:28 +0000 (09:58 -0500)]
s4:cosmetic: Remove trailing tabs and spaces

13 years agoSmall cosmetic LDB patch regarding return values.
Matthias Dieter Wallnöfer [Fri, 19 Dec 2008 14:54:20 +0000 (09:54 -0500)]
Small cosmetic LDB patch regarding return values.
It changes some "return 0" in "return LDB_SUCCESS"

13 years agoFix the padding calculation in smb_splice_chain for "bytes_padding!=0"
Volker Lendecke [Fri, 19 Dec 2008 13:28:29 +0000 (14:28 +0100)]
Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"

13 years agoPass "bytes_alignment" up through cli_request_send
Volker Lendecke [Fri, 19 Dec 2008 13:27:20 +0000 (14:27 +0100)]
Pass "bytes_alignment" up through cli_request_send

This parameter makes smb_spice_chain add padding before the bytes field

13 years agoPort over more functionality to new SWIGless Python module.
Jelmer Vernooij [Fri, 19 Dec 2008 13:41:44 +0000 (13:41 +0000)]
Port over more functionality to new SWIGless Python module.

13 years agocorrect the description of the "ldap timeout" parameter
Björn Jacke [Fri, 19 Dec 2008 11:12:59 +0000 (12:12 +0100)]
correct the description of the "ldap timeout" parameter

13 years agoFix a "ignoring function call result" warning
Volker Lendecke [Fri, 28 Nov 2008 18:53:59 +0000 (19:53 +0100)]
Fix a "ignoring function call result" warning

13 years agoPrefer network writes over reads
Volker Lendecke [Mon, 15 Dec 2008 11:06:00 +0000 (12:06 +0100)]
Prefer network writes over reads

If we really want to keep the pipe busy, we need to write everything we have as
early as possible, giving the kernel the chance to get rid of the buffers
quickly :-)