ira/wip.git
16 years agotorture/eventlog: fix crash bugs!
Stefan Metzmacher [Wed, 13 Feb 2008 13:52:53 +0000 (14:52 +0100)]
torture/eventlog: fix crash bugs!

This bug was introduced in 92b8bde561277a6b83048ce003cc29ff1b380255
and this shows that we need to be very, very careful in changing
idl elements from scalars to [ref] pointers!

metze

16 years agopidl: $size can be 'foo / 2' so we need to add '(' and ')'
Stefan Metzmacher [Wed, 13 Feb 2008 12:04:54 +0000 (13:04 +0100)]
pidl: $size can be 'foo / 2' so we need to add '(' and ')'

'foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.

metze

16 years agoidl_types: remove unused lstring
Stefan Metzmacher [Wed, 13 Feb 2008 09:41:57 +0000 (10:41 +0100)]
idl_types: remove unused lstring

metze

16 years agospoolss.idl: improve idl for EnumPrinterData and not use 'lstring' any more
Stefan Metzmacher [Wed, 13 Feb 2008 09:36:49 +0000 (10:36 +0100)]
spoolss.idl: improve idl for EnumPrinterData and not use 'lstring' any more

metze

16 years agoMakefile: --enable-automatic-dependencies usage
Stefan Metzmacher [Tue, 12 Feb 2008 13:39:52 +0000 (14:39 +0100)]
Makefile: --enable-automatic-dependencies usage

metze

16 years agomissed another spot in the SMB2 create conversion
Andrew Tridgell [Wed, 13 Feb 2008 06:36:41 +0000 (17:36 +1100)]
missed another spot in the SMB2 create conversion

16 years agomissed a spot in the SMB2 create conversion
Andrew Tridgell [Wed, 13 Feb 2008 06:24:23 +0000 (17:24 +1100)]
missed a spot in the SMB2 create conversion

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Wed, 13 Feb 2008 04:06:05 +0000 (15:06 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test

16 years agoupdated SMB2 create operation to match WSPP.
Andrew Tridgell [Wed, 13 Feb 2008 04:05:44 +0000 (15:05 +1100)]
updated SMB2 create operation to match WSPP.

Adding some defined for various new create options

16 years agoSupport ETT_FIELD keyword.
Julien Kerihuel [Wed, 13 Feb 2008 01:24:11 +0000 (02:24 +0100)]
Support ETT_FIELD keyword.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Wed, 13 Feb 2008 01:20:02 +0000 (02:20 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

16 years agoInitial work on a test for samba.tests.samdb
Jelmer Vernooij [Wed, 13 Feb 2008 01:18:45 +0000 (02:18 +0100)]
Initial work on a test for samba.tests.samdb

16 years agoAdd python version of newuser.py.
Jelmer Vernooij [Wed, 13 Feb 2008 00:22:09 +0000 (01:22 +0100)]
Add python version of newuser.py.

16 years agoFix invalid symbol.
Jelmer Vernooij [Wed, 13 Feb 2008 00:21:06 +0000 (01:21 +0100)]
Fix invalid symbol.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Tue, 12 Feb 2008 23:14:04 +0000 (10:14 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test

16 years agoupdated SMB2 tcon as per WSPP docs
Andrew Tridgell [Tue, 12 Feb 2008 23:13:28 +0000 (10:13 +1100)]
updated SMB2 tcon as per WSPP docs

16 years agoRaise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.
Michael Adam [Tue, 12 Feb 2008 21:52:58 +0000 (22:52 +0100)]
Raise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.

Michael

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Tue, 12 Feb 2008 21:15:06 +0000 (22:15 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

16 years agoFix subunit runner exit codes.
Jelmer Vernooij [Tue, 12 Feb 2008 21:10:25 +0000 (22:10 +0100)]
Fix subunit runner exit codes.

16 years agoCorrectly increment counters in Subunit test runner.
Jelmer Vernooij [Tue, 12 Feb 2008 20:59:23 +0000 (21:59 +0100)]
Correctly increment counters in Subunit test runner.

16 years agolibrpc: remove special support for fixed length strings
Stefan Metzmacher [Tue, 12 Feb 2008 15:16:35 +0000 (16:16 +0100)]
librpc: remove special support for fixed length strings

Fixed arrays with the charset() attribute do the same

metze

16 years agospoolss.idl: don't use string32 anymore and use an charset() array
Stefan Metzmacher [Tue, 12 Feb 2008 15:15:34 +0000 (16:15 +0100)]
spoolss.idl: don't use string32 anymore and use an charset() array

metze

16 years agonbt.idl: don't use astring15 anymore and use an charset() array
Stefan Metzmacher [Tue, 12 Feb 2008 15:14:43 +0000 (16:14 +0100)]
nbt.idl: don't use astring15 anymore and use an charset() array

metze

16 years agoFix open file tracking in vfs_cifs so that oplock breaks can propagate
Amin Azez [Tue, 29 Jan 2008 16:10:48 +0000 (16:10 +0000)]
Fix open file tracking in vfs_cifs so that oplock breaks can propagate

Oplock breaks were not propagating because the list of open files was not
being maintained.

This fixes that based on best-guess of how it should work.

It has been tested manually with windows XP client obtaining an oplock from a
windows 2003 server, which then broke the lock when smbclient read the same file.

Previously the smbclient read blocked until the oplock timed out

16 years agoSupport using shared library during testsuite run if tdb was built with a shared...
Jelmer Vernooij [Tue, 12 Feb 2008 12:51:03 +0000 (13:51 +0100)]
Support using shared library during testsuite run if tdb was built with a shared lib internally.

16 years agomake sure libraries are built before attempting to install.
Jelmer Vernooij [Tue, 12 Feb 2008 12:34:19 +0000 (13:34 +0100)]
make sure libraries are built before attempting to install.

16 years agoSpecify PICFLAG when compiling python modules.
Jelmer Vernooij [Tue, 12 Feb 2008 12:07:16 +0000 (13:07 +0100)]
Specify PICFLAG when compiling python modules.

16 years ago[PATCH] composite: make it possible to call composite_is_ok() without callback fn
Stefan Metzmacher [Tue, 12 Feb 2008 11:16:38 +0000 (12:16 +0100)]
[PATCH] composite: make it possible to call composite_is_ok() without callback fn

metze

16 years agoMake sure talloc.so is build before installing.
Jelmer Vernooij [Tue, 12 Feb 2008 11:46:33 +0000 (12:46 +0100)]
Make sure talloc.so is build before installing.

16 years agoFix installation of python module for ldb and tdb.
Jelmer Vernooij [Tue, 12 Feb 2008 11:41:21 +0000 (12:41 +0100)]
Fix installation of python module for ldb and tdb.

16 years agofixed crash when 0 dialects (thanks metze!)
Andrew Tridgell [Tue, 12 Feb 2008 09:29:31 +0000 (20:29 +1100)]
fixed crash when 0 dialects (thanks metze!)

16 years agoupdated SMB2 header defines to match WSPP docs
Andrew Tridgell [Tue, 12 Feb 2008 06:00:35 +0000 (17:00 +1100)]
updated SMB2 header defines to match WSPP docs

16 years agoconverted SMB2 session setup to use WSPP protocol field names
Andrew Tridgell [Tue, 12 Feb 2008 05:43:38 +0000 (16:43 +1100)]
converted SMB2 session setup to use WSPP protocol field names

16 years agoconverted the out side of SMB2 negprot handling
Andrew Tridgell [Tue, 12 Feb 2008 05:20:13 +0000 (16:20 +1100)]
converted the out side of SMB2 negprot handling

This follows the SMB2 PFIF docs. Current versions of Vista can now connect to Samba4 as a SMB2 server
and do basic operations

16 years agoadded some helper functions for GUID handling
Andrew Tridgell [Tue, 12 Feb 2008 05:18:51 +0000 (16:18 +1100)]
added some helper functions for GUID handling

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Tue, 12 Feb 2008 01:56:30 +0000 (12:56 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test

16 years agofixed up the .in side of SMB2 negprot
Andrew Tridgell [Tue, 12 Feb 2008 01:54:44 +0000 (12:54 +1100)]
fixed up the .in side of SMB2 negprot

fixed the input side of the SMB2 negprot structure and parsers according to the documentation

16 years agotdb/ldb: Use prefix in case DESTDIR is not set.
Jelmer Vernooij [Tue, 12 Feb 2008 01:15:09 +0000 (02:15 +0100)]
tdb/ldb: Use prefix in case DESTDIR is not set.

16 years agoCreate the required directories when installing Python code.
Jelmer Vernooij [Tue, 12 Feb 2008 00:58:42 +0000 (01:58 +0100)]
Create the required directories when installing Python code.

16 years agoMark the reprovision test as known failing for now.
Jelmer Vernooij [Tue, 12 Feb 2008 00:52:07 +0000 (01:52 +0100)]
Mark the reprovision test as known failing for now.

16 years agoReintroduce samba3sam EJS test, at least until the Python test is ready.
Jelmer Vernooij [Tue, 12 Feb 2008 00:42:58 +0000 (01:42 +0100)]
Reintroduce samba3sam EJS test, at least until the Python test is ready.

16 years agoAdd blackbox test for provisioning code to make sure it can be run more than once...
Jelmer Vernooij [Tue, 12 Feb 2008 00:39:31 +0000 (01:39 +0100)]
Add blackbox test for provisioning code to make sure it can be run more than once in a row.

16 years agoAvoid using setup.py for intsallation.
Jelmer Vernooij [Tue, 12 Feb 2008 00:21:10 +0000 (01:21 +0100)]
Avoid using setup.py for intsallation.

16 years agoManually compile python files rather than use setup.py.
Jelmer Vernooij [Mon, 11 Feb 2008 23:49:36 +0000 (00:49 +0100)]
Manually compile python files rather than use setup.py.

16 years agoManually compile python files rather than using setup.py.
Jelmer Vernooij [Mon, 11 Feb 2008 23:35:11 +0000 (00:35 +0100)]
Manually compile python files rather than using setup.py.

16 years agoFix out of tree builds.
Jelmer Vernooij [Mon, 11 Feb 2008 22:51:59 +0000 (23:51 +0100)]
Fix out of tree builds.

16 years agoSplit actual content out of tdb Makefile into a separate file.
Jelmer Vernooij [Mon, 11 Feb 2008 21:55:51 +0000 (22:55 +0100)]
Split actual content out of tdb Makefile into a separate file.

16 years agoSplit actual content out of talloc Makefile into talloc.mk.
Jelmer Vernooij [Mon, 11 Feb 2008 21:52:42 +0000 (22:52 +0100)]
Split actual content out of talloc Makefile into talloc.mk.

16 years agoMove some more rules to rules.mk
Jelmer Vernooij [Mon, 11 Feb 2008 21:14:31 +0000 (22:14 +0100)]
Move some more rules to rules.mk

16 years agoSplit rules.mk out of Makefile.
Jelmer Vernooij [Mon, 11 Feb 2008 21:05:52 +0000 (22:05 +0100)]
Split rules.mk out of Makefile.

16 years agoSplit rules out of tdb Makefile.
Jelmer Vernooij [Mon, 11 Feb 2008 21:02:57 +0000 (22:02 +0100)]
Split rules out of tdb Makefile.

16 years agoldb: Split up the Makefile so it will be possible later on to directly include fragme...
Jelmer Vernooij [Mon, 11 Feb 2008 20:54:13 +0000 (21:54 +0100)]
ldb: Split up the Makefile so it will be possible later on to directly include fragments in the Samba 3 or 4 makefile.

16 years agoUse make variables in cflags file (now supported by cflags.pl)
Jelmer Vernooij [Mon, 11 Feb 2008 18:28:59 +0000 (19:28 +0100)]
Use make variables in cflags file (now supported by cflags.pl)

16 years agoSupport including files in the cflags.pl script.
Jelmer Vernooij [Mon, 11 Feb 2008 18:10:21 +0000 (19:10 +0100)]
Support including files in the cflags.pl script.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Mon, 11 Feb 2008 17:26:28 +0000 (18:26 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

Conflicts:

source/Makefile
source/rules.mk

16 years agoTORTUREDIR as target dir for binaries is no longer used, remove it.
Jelmer Vernooij [Mon, 11 Feb 2008 17:07:22 +0000 (18:07 +0100)]
TORTUREDIR as target dir for binaries is no longer used, remove it.

16 years agoClean up data.mk file in distclean.
Jelmer Vernooij [Mon, 11 Feb 2008 14:57:52 +0000 (15:57 +0100)]
Clean up data.mk file in distclean.

16 years agoPrint warning when config.status doesn't exist and the user tries to
Jelmer Vernooij [Mon, 11 Feb 2008 14:52:34 +0000 (15:52 +0100)]
Print warning when config.status doesn't exist and the user tries to
run make.

16 years agoRemove unused function.
Jelmer Vernooij [Mon, 11 Feb 2008 13:53:28 +0000 (14:53 +0100)]
Remove unused function.

16 years agoMove pidl bits to a separate file.
Jelmer Vernooij [Mon, 11 Feb 2008 13:48:39 +0000 (14:48 +0100)]
Move pidl bits to a separate file.

16 years agoFix typo.
Jelmer Vernooij [Mon, 11 Feb 2008 11:39:47 +0000 (12:39 +0100)]
Fix typo.

16 years agoAvoid autogenerating the Makefile but rather include a data.mk file
Jelmer Vernooij [Mon, 11 Feb 2008 00:42:29 +0000 (01:42 +0100)]
Avoid autogenerating the Makefile but rather include a data.mk file
that is autogenerated.

16 years agoMake versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.
Michael Adam [Mon, 11 Feb 2008 11:50:03 +0000 (12:50 +0100)]
Make versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.

Not sure if we can produce one from the other, so I manually made
them equal for now.

Michael

16 years agoFix a c++ warning
Volker Lendecke [Thu, 10 Jan 2008 10:35:40 +0000 (11:35 +0100)]
Fix a c++ warning

16 years agotalloc_free_children can only reset pool if it's empty
Volker Lendecke [Thu, 10 Jan 2008 10:35:17 +0000 (11:35 +0100)]
talloc_free_children can only reset pool if it's empty

16 years agoMark talloc_pool memory for valgrind
Volker Lendecke [Thu, 10 Jan 2008 10:34:07 +0000 (11:34 +0100)]
Mark talloc_pool memory for valgrind

16 years agoImplement talloc_pool()
Volker Lendecke [Sat, 5 Jan 2008 17:26:54 +0000 (18:26 +0100)]
Implement talloc_pool()

A talloc pool is a chunk of memory that can be used as a context for further
talloc calls. Allocations with the pool as the parent just chew from that
memory by incrementing a pointer. If the talloc pool is full, then we fall back
to the normal system-level malloc(3) to get memory.

The use case for talloc pools is the transient memory that is used for handling
a single SMB request. Incrementing a pointer will be way faster than any malloc
implementation.

There is a downside of this: If you use talloc_steal() to move something out of
the pool, the whole pool memory is kept around until the last object inside the
pool is freed. So if you talloc_free() the pool, it might happen that the
memory is freed later. So don't hang anything off a talloc pool that should
live long.

Volker

16 years agoAdd a comment.
Michael Adam [Wed, 9 Jan 2008 00:35:43 +0000 (01:35 +0100)]
Add a comment.

Michael

16 years agoFix talloctort: move size check after referenced ptr check.
Michael Adam [Wed, 9 Jan 2008 00:34:21 +0000 (01:34 +0100)]
Fix talloctort: move size check after referenced ptr check.

Michael

16 years agoDon't shrink a talloc area if we have less than 1k to gain
Volker Lendecke [Tue, 8 Jan 2008 21:42:27 +0000 (22:42 +0100)]
Don't shrink a talloc area if we have less than 1k to gain

16 years agoMake data about what subsystems/libraries are enabled available in the mkconfig.mk...
Jelmer Vernooij [Mon, 11 Feb 2008 13:39:21 +0000 (14:39 +0100)]
Make data about what subsystems/libraries are enabled available in the mkconfig.mk file.

16 years agoFix the build: remove reference to inexistent header samba3_proto.h
Michael Adam [Mon, 11 Feb 2008 13:27:10 +0000 (14:27 +0100)]
Fix the build: remove reference to inexistent header samba3_proto.h

Michael

16 years agoFix accidently introduced typo.
Jelmer Vernooij [Mon, 11 Feb 2008 12:58:04 +0000 (13:58 +0100)]
Fix accidently introduced typo.

16 years agoIgnore mkconfig.mk file, which is autogenerated.
Jelmer Vernooij [Mon, 11 Feb 2008 12:54:12 +0000 (13:54 +0100)]
Ignore mkconfig.mk file, which is autogenerated.

16 years agoRemove Samba 3 backwards compatibility code in C.
Jelmer Vernooij [Mon, 11 Feb 2008 12:51:09 +0000 (13:51 +0100)]
Remove Samba 3 backwards compatibility code in C.

This code is no longer used, and equivalent code already exists in Python
(scripting/python/samba/samba3.py)

16 years agoRemove tests for Samba 3 EJS code.
Jelmer Vernooij [Mon, 11 Feb 2008 12:38:07 +0000 (13:38 +0100)]
Remove tests for Samba 3 EJS code.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Mon, 11 Feb 2008 12:26:59 +0000 (13:26 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

16 years agoUse SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
Jelmer Vernooij [Mon, 11 Feb 2008 12:20:24 +0000 (13:20 +0100)]
Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-python
Jelmer Vernooij [Mon, 11 Feb 2008 12:10:11 +0000 (13:10 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-python

16 years agoFix typo.
Jelmer Vernooij [Mon, 11 Feb 2008 11:39:47 +0000 (12:39 +0100)]
Fix typo.

16 years agoautoconf: We build Samba from git now, not from SVN.
Kai Blin [Mon, 11 Feb 2008 10:57:17 +0000 (11:57 +0100)]
autoconf: We build Samba from git now, not from SVN.

16 years agoFix switching of hives in regshell (#5254)
Jelmer Vernooij [Mon, 11 Feb 2008 10:47:31 +0000 (11:47 +0100)]
Fix switching of hives in regshell (#5254)

16 years agoprovision: Fix new user creation.
Kai Blin [Mon, 11 Feb 2008 09:37:26 +0000 (10:37 +0100)]
provision: Fix new user creation.

Spotted by nobody88 in IRC.

16 years agopidl/Samba3::ServerNDR: use talloc_tos() instead of NULL
Stefan Metzmacher [Mon, 11 Feb 2008 07:44:56 +0000 (08:44 +0100)]
pidl/Samba3::ServerNDR: use talloc_tos() instead of NULL

metze

16 years agoAvoid autogenerating the Makefile but rather include a data.mk file
Jelmer Vernooij [Mon, 11 Feb 2008 00:42:29 +0000 (01:42 +0100)]
Avoid autogenerating the Makefile but rather include a data.mk file
that is autogenerated.

16 years agoFix case.
Jelmer Vernooij [Mon, 11 Feb 2008 00:15:54 +0000 (01:15 +0100)]
Fix case.

16 years agoMove some more variables to static .mk file.
Jelmer Vernooij [Mon, 11 Feb 2008 00:02:16 +0000 (01:02 +0100)]
Move some more variables to static .mk file.

16 years agoAutomatically write AC_SUBST() vars to mkconfig.mk and use them.
Jelmer Vernooij [Sun, 10 Feb 2008 23:21:20 +0000 (00:21 +0100)]
Automatically write AC_SUBST() vars to mkconfig.mk and use them.

16 years agoMove some variables to a separate .mk file that could also be included by a non-smb_b...
Jelmer Vernooij [Sun, 10 Feb 2008 22:32:31 +0000 (23:32 +0100)]
Move some variables to a separate .mk file that could also be included by a non-smb_build build system.

16 years agoStart working on generating .mk file from configure for inclusion in Makefile.
Jelmer Vernooij [Sun, 10 Feb 2008 21:58:03 +0000 (22:58 +0100)]
Start working on generating .mk file from configure for inclusion in Makefile.

16 years agoMake formatting a bit more ReST-valid.
Jelmer Vernooij [Sun, 10 Feb 2008 21:24:09 +0000 (22:24 +0100)]
Make formatting a bit more ReST-valid.

16 years agoChange README to be ReST-compatible.
Jelmer Vernooij [Sun, 10 Feb 2008 21:14:08 +0000 (22:14 +0100)]
Change README to be ReST-compatible.

16 years agoMore syntax fixes, use more standard python functions.
Jelmer Vernooij [Sat, 9 Feb 2008 23:56:55 +0000 (00:56 +0100)]
More syntax fixes, use more standard python functions.

16 years agoStart working on python conversion of minschema.
Jelmer Vernooij [Sat, 9 Feb 2008 23:21:41 +0000 (00:21 +0100)]
Start working on python conversion of minschema.

16 years agoAdd tests for upgrade of WINS database.
Jelmer Vernooij [Sat, 9 Feb 2008 21:29:42 +0000 (22:29 +0100)]
Add tests for upgrade of WINS database.

16 years agoRemove unused define.
Jelmer Vernooij [Sat, 9 Feb 2008 19:47:12 +0000 (20:47 +0100)]
Remove unused define.

16 years agoMerge branch 'v4-0-trivial' into v4-0-python
Jelmer Vernooij [Sat, 9 Feb 2008 19:38:07 +0000 (20:38 +0100)]
Merge branch 'v4-0-trivial' into v4-0-python

Conflicts:

source/scripting/python/config.m4

16 years agoFix typo.
Jelmer Vernooij [Sat, 9 Feb 2008 19:09:58 +0000 (20:09 +0100)]
Fix typo.

16 years agoMerge branch 'v4-0-trivial' into v4-0-python
Jelmer Vernooij [Sat, 9 Feb 2008 19:06:54 +0000 (20:06 +0100)]
Merge branch 'v4-0-trivial' into v4-0-python

16 years agoFix tests.
Jelmer Vernooij [Sat, 9 Feb 2008 18:16:44 +0000 (19:16 +0100)]
Fix tests.