ira/wip.git
11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 23 Dec 2008 21:12:23 +0000 (22:12 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

11 years agoFix compiler warnings in libnet.
Jelmer Vernooij [Tue, 23 Dec 2008 21:11:21 +0000 (22:11 +0100)]
Fix compiler warnings in libnet.

11 years agoFix use of "time offset" parameter, and add test to make sure I don't break it again :-)
Jelmer Vernooij [Tue, 23 Dec 2008 21:10:34 +0000 (22:10 +0100)]
Fix use of "time offset" parameter, and add test to make sure I don't break it again :-)

11 years agoFix more asprintf warnings and some error path errors.
Jeremy Allison [Tue, 23 Dec 2008 20:11:12 +0000 (12:11 -0800)]
Fix more asprintf warnings and some error path errors.
Jeremy.

11 years agoMore asprintf warning fixes.
Jeremy Allison [Tue, 23 Dec 2008 19:56:48 +0000 (11:56 -0800)]
More asprintf warning fixes.
Jeremy.

11 years agoMore asprintf warning fixes.
Jeremy Allison [Tue, 23 Dec 2008 19:45:26 +0000 (11:45 -0800)]
More asprintf warning fixes.
Jeremy.

11 years agoFix more asprintf errors and error code paths.
Jeremy Allison [Tue, 23 Dec 2008 19:27:19 +0000 (11:27 -0800)]
Fix more asprintf errors and error code paths.
Jeremy.

11 years agoAdd missing includes, required for use of gensec by 3rd-party
Matthias Dieter Wallnöfer [Tue, 23 Dec 2008 19:17:59 +0000 (20:17 +0100)]
Add missing includes, required for use of gensec by 3rd-party
applications.

11 years agopytevent: Add missing file.
Jelmer Vernooij [Tue, 23 Dec 2008 19:13:17 +0000 (20:13 +0100)]
pytevent: Add missing file.

11 years agoAllow using external libtevent.
Jelmer Vernooij [Tue, 23 Dec 2008 18:59:57 +0000 (19:59 +0100)]
Allow using external libtevent.

11 years agostandalone: Use more variables, preparing to include these files from main
Jelmer Vernooij [Tue, 23 Dec 2008 18:39:52 +0000 (19:39 +0100)]
standalone: Use more variables, preparing to include these files from main
Samba 4 makefile.

11 years agoMerge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Tue, 23 Dec 2008 18:43:02 +0000 (10:43 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba

11 years agoFix more ‘asprintf’, declared with attribute warn_unused_result.
Jeremy Allison [Tue, 23 Dec 2008 18:42:25 +0000 (10:42 -0800)]
Fix more ‘asprintf’, declared with attribute warn_unused_result.
Jeremy.

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 23 Dec 2008 18:30:16 +0000 (19:30 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

11 years agoMove Samba4-specific file out of common libtevent.
Jelmer Vernooij [Tue, 23 Dec 2008 18:28:22 +0000 (19:28 +0100)]
Move Samba4-specific file out of common libtevent.

11 years agoFix more "warning: ignoring return value of ‘asprintf’, declared with
Jeremy Allison [Tue, 23 Dec 2008 18:27:24 +0000 (10:27 -0800)]
Fix more "warning: ignoring return value of ‘asprintf’, declared with
attribute warn_unused_result"
Jeremy.

11 years agoFix another "format not a string literal and no format arguments" warning.
Jeremy Allison [Tue, 23 Dec 2008 17:50:10 +0000 (09:50 -0800)]
Fix another "format not a string literal and no format arguments" warning.
Jeremy

11 years agoFix silly typo.
Jelmer Vernooij [Tue, 23 Dec 2008 11:14:25 +0000 (12:14 +0100)]
Fix silly typo.

11 years agopyldb: Provide replacement for sizeargfunc, not available before Python2.5.
Jelmer Vernooij [Tue, 23 Dec 2008 10:48:14 +0000 (11:48 +0100)]
pyldb: Provide replacement for sizeargfunc, not available before Python2.5.

11 years agosamba.tests.samdb: Fix test after merger of samba.security and
Jelmer Vernooij [Tue, 23 Dec 2008 10:44:10 +0000 (11:44 +0100)]
samba.tests.samdb: Fix test after merger of samba.security and
samba.dcerpc.security

11 years agopython: Define Py_ssize_t if the Python library doesn't.
Jelmer Vernooij [Tue, 23 Dec 2008 10:25:06 +0000 (11:25 +0100)]
python: Define Py_ssize_t if the Python library doesn't.

11 years agos3: Fix stream marshalling to return the correct streaminfo status
Tim Prouty [Tue, 23 Dec 2008 06:35:24 +0000 (22:35 -0800)]
s3: Fix stream marshalling to return the correct streaminfo status

When there are enough streams on a file to fill up the max_data_count
when responding to a trans2 streaminfo, samba is returning
NT_STATUS_BUFFER_TOO_SMALL.  Windows handles this by returning
NT_STATUS_BUFFER_OVERFLOW while still sending as much of the data that
it can fit into the buffer.  When the windows client sees
BUFFER_OVERFLOW, it retries the streaminfo with a larger buffer (2x).
The windows client starts at 2K and will continue increasing the
buffer size by two until it reaches 64K.  If the streams don't fit in
64K the windows client seems to give up.

This patch fixes marshall_stream_info to overfill the buffer by 1
stream so that send_trans2_replies can properly detect the overflow
and return the correct status.

11 years agopyldb: Fix segfault because of incorrect reference counting.
Jelmer Vernooij [Tue, 23 Dec 2008 04:34:21 +0000 (05:34 +0100)]
pyldb: Fix segfault because of incorrect reference counting.

11 years agopyldb: Avoid use of pytalloc, as it may not be available.
Jelmer Vernooij [Tue, 23 Dec 2008 04:07:29 +0000 (05:07 +0100)]
pyldb: Avoid use of pytalloc, as it may not be available.

11 years agoIn gcc version 4.3.2 we get warnings for functions declared with
Jeremy Allison [Tue, 23 Dec 2008 04:08:14 +0000 (20:08 -0800)]
In gcc version 4.3.2 we get warnings for functions declared with
attribute warn_unused_result. Start to fix these.
Jeremy.

11 years agoldb: Include tevent.h rather than events.h.
Jelmer Vernooij [Tue, 23 Dec 2008 03:21:35 +0000 (04:21 +0100)]
ldb: Include tevent.h rather than events.h.

11 years agoldb: Fix linking against tevent library (rather than events)
Jelmer Vernooij [Tue, 23 Dec 2008 03:18:31 +0000 (04:18 +0100)]
ldb: Fix linking against tevent library (rather than events)
replace: Fix copyright for dlfcn.c.

11 years agopytalloc: Add some comments, use talloc object location in repr rather
Jelmer Vernooij [Tue, 23 Dec 2008 03:06:21 +0000 (04:06 +0100)]
pytalloc: Add some comments, use talloc object location in repr rather
than python object location.

11 years agopython/tevent: Remove use of pytalloc.h.
Jelmer Vernooij [Tue, 23 Dec 2008 02:24:39 +0000 (03:24 +0100)]
python/tevent: Remove use of pytalloc.h.

11 years agopidl: Fix typelist test after addition of type origin tracking.
Jelmer Vernooij [Tue, 23 Dec 2008 02:17:01 +0000 (03:17 +0100)]
pidl: Fix typelist test after addition of type origin tracking.

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 23 Dec 2008 01:06:05 +0000 (02:06 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

11 years agomerged build: Remove shared-build related variables, as they are already set up corre...
Jelmer Vernooij [Tue, 23 Dec 2008 01:04:50 +0000 (02:04 +0100)]
merged build: Remove shared-build related variables, as they are already set up correctly by the main configure.

11 years agoUse make variable for Samba 4 shared library output directory.
Jelmer Vernooij [Tue, 23 Dec 2008 00:53:38 +0000 (01:53 +0100)]
Use make variable for Samba 4 shared library output directory.

11 years agoFix prefixing swig library directory with prefix.
Jelmer Vernooij [Tue, 23 Dec 2008 00:40:08 +0000 (01:40 +0100)]
Fix prefixing swig library directory with prefix.

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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.

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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__.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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.

11 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

11 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

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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

11 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.

11 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.

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

11 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.

11 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

11 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.

11 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

11 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.

11 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.

11 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.