samba.git
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 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 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 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.

16 years agoSplit up tests a bit, output subunit.
Jelmer Vernooij [Sat, 9 Feb 2008 18:04:14 +0000 (19:04 +0100)]
Split up tests a bit, output subunit.

16 years agoAdd docstring.
Jelmer Vernooij [Sat, 9 Feb 2008 16:42:31 +0000 (17:42 +0100)]
Add docstring.

16 years agoIgnore Python apidocs, vim swap files.
Jelmer Vernooij [Sat, 9 Feb 2008 16:41:50 +0000 (17:41 +0100)]
Ignore Python apidocs, vim swap files.

16 years agoFix syntax of docstrings, set project name when generating Python API documentation.
Jelmer Vernooij [Sat, 9 Feb 2008 16:37:42 +0000 (17:37 +0100)]
Fix syntax of docstrings, set project name when generating Python API documentation.

16 years agoregistry: Fix warning.
Jelmer Vernooij [Sat, 9 Feb 2008 16:18:51 +0000 (17:18 +0100)]
registry: Fix warning.

16 years agoMove nmblookup blackbox test closer to the code it tests.
Jelmer Vernooij [Sat, 9 Feb 2008 16:17:21 +0000 (17:17 +0100)]
Move nmblookup blackbox test closer to the code it tests.

16 years agoMove first_prereq test to m4 code.
Jelmer Vernooij [Sat, 9 Feb 2008 16:07:02 +0000 (17:07 +0100)]
Move first_prereq test to m4 code.

16 years agoMove some static makefile variables to rules.mk.
Jelmer Vernooij [Sat, 9 Feb 2008 15:41:44 +0000 (16:41 +0100)]
Move some static makefile variables to rules.mk.

16 years agopidl: Allow fixed size arrays inside unions.
Julien Kerihuel [Sat, 9 Feb 2008 15:26:16 +0000 (16:26 +0100)]
pidl: Allow fixed size arrays inside unions.

16 years agoFix test count after pointer_default_top() removal.
Jelmer Vernooij [Sat, 9 Feb 2008 15:25:34 +0000 (16:25 +0100)]
Fix test count after pointer_default_top() removal.

16 years agoMove more make code to rules.mk
Jelmer Vernooij [Sat, 9 Feb 2008 15:23:02 +0000 (16:23 +0100)]
Move more make code to rules.mk

16 years agoUse mkinclude (makes the Makefile a bit shorter), use double-colon for phony makefile...
Jelmer Vernooij [Sat, 9 Feb 2008 15:05:55 +0000 (16:05 +0100)]
Use mkinclude (makes the Makefile a bit shorter), use double-colon for phony makefile targets.

16 years agoSupport 'mkinclude' command in .mk files.
Jelmer Vernooij [Sat, 9 Feb 2008 15:01:53 +0000 (16:01 +0100)]
Support 'mkinclude' command in .mk files.

16 years agoRemove unused path update.
Jelmer Vernooij [Sat, 9 Feb 2008 14:43:28 +0000 (15:43 +0100)]
Remove unused path update.

16 years agoRe-enable python support in BECOME-DC test.
Jelmer Vernooij [Sat, 9 Feb 2008 14:42:19 +0000 (15:42 +0100)]
Re-enable python support in BECOME-DC test.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Sat, 9 Feb 2008 14:04:03 +0000 (15:04 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

16 years agoIgnore kinit with pkinit test failures for now.
Jelmer Vernooij [Sat, 9 Feb 2008 13:42:55 +0000 (14:42 +0100)]
Ignore kinit with pkinit test failures for now.

16 years agotorture: Merge util.c into util_smb.c
Jelmer Vernooij [Sat, 9 Feb 2008 13:26:46 +0000 (14:26 +0100)]
torture: Merge util.c into util_smb.c

16 years agoMove nt_time_equal() to libutil.
Jelmer Vernooij [Sat, 9 Feb 2008 13:24:24 +0000 (14:24 +0100)]
Move nt_time_equal() to libutil.

16 years agoA couple more ipsec classes for the schema.
Andrew Bartlett [Sat, 9 Feb 2008 03:48:56 +0000 (14:48 +1100)]
A couple more ipsec classes for the schema.

Andrew Bartlett

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Sat, 9 Feb 2008 03:13:58 +0000 (14:13 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local

16 years agoRemove the forced 'krb5' from the NET-API-BECOME-DC test.
Andrew Bartlett [Sat, 9 Feb 2008 03:13:23 +0000 (14:13 +1100)]
Remove the forced 'krb5' from the NET-API-BECOME-DC test.

If we want to try this authenication mechanism, we can always manually
specify the binding string.

Andrew Bartlett

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Sat, 9 Feb 2008 03:03:25 +0000 (14:03 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local

16 years agoGive a more useful error when the templates.ldb can't be found.
Andrew Bartlett [Sat, 9 Feb 2008 03:02:14 +0000 (14:02 +1100)]
Give a more useful error when the templates.ldb can't be found.

Andrew Bartlett

16 years agoMake the provision test more real, use a foo.example.com for the realm.
Andrew Bartlett [Sat, 9 Feb 2008 03:01:37 +0000 (14:01 +1100)]
Make the provision test more real, use a foo.example.com for the realm.

Andrew Bartlett

16 years agoFix upgrade after provision parameter rename.
Jelmer Vernooij [Sat, 9 Feb 2008 02:59:45 +0000 (03:59 +0100)]
Fix upgrade after provision parameter rename.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Sat, 9 Feb 2008 02:11:04 +0000 (03:11 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

16 years agoFix provision python test.
Jelmer Vernooij [Sat, 9 Feb 2008 02:09:56 +0000 (03:09 +0100)]
Fix provision python test.

16 years agoAdd tests for findnss(), add some docstrings.
Jelmer Vernooij [Sat, 9 Feb 2008 01:10:49 +0000 (02:10 +0100)]
Add tests for findnss(), add some docstrings.

16 years agoRemove unused class members.
Jelmer Vernooij [Sat, 9 Feb 2008 00:42:38 +0000 (01:42 +0100)]
Remove unused class members.

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Fri, 8 Feb 2008 23:00:14 +0000 (10:00 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local

16 years agoFrom a request from Peter Huang, include IPsec sechema.
Andrew Bartlett [Fri, 8 Feb 2008 22:59:45 +0000 (09:59 +1100)]
From a request from Peter Huang, include IPsec sechema.

(We may need to include more defaults in the template, but I want to
start small for now).

Andrew Bartlett

16 years agoReformat SMB_EXT_LIB_FROM_PKGCONFIG: fix spacing and indentation.
Michael Adam [Fri, 8 Feb 2008 15:28:04 +0000 (16:28 +0100)]
Reformat SMB_EXT_LIB_FROM_PKGCONFIG: fix spacing and indentation.

Sorry, could not resist: While trying to understand this bit of magic,
I had to bring indentation into shape to see more clearly what is going on.
Also, mixed tabs/spaces are changed to tabs.

Michael

16 years agobuild: Remove unused functions Import() and GetInfo().
Jelmer Vernooij [Fri, 8 Feb 2008 13:12:46 +0000 (14:12 +0100)]
build: Remove unused functions Import() and GetInfo().

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

Conflicts:

source/scripting/python/samba/provision.py

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Fri, 8 Feb 2008 06:20:03 +0000 (17:20 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local

16 years agoRemove unused parameter from provision()
Andrew Bartlett [Fri, 8 Feb 2008 06:12:54 +0000 (17:12 +1100)]
Remove unused parameter from provision()

Andrew Bartlett

16 years agoLDAP now works with the python provision!
Andrew Bartlett [Fri, 8 Feb 2008 06:12:25 +0000 (17:12 +1100)]
LDAP now works with the python provision!

Andrew Bartlett

16 years agoFix LDAP backend with python
Andrew Bartlett [Fri, 8 Feb 2008 06:11:26 +0000 (17:11 +1100)]
Fix LDAP backend with python

We were still setting the hard-coded users.ldb etc, rather than
switching to the ldapi:// URI

Andrew Bartlett

16 years agoReset error strings
Andrew Bartlett [Fri, 8 Feb 2008 06:09:49 +0000 (17:09 +1100)]
Reset error strings

Avoid leaking error strings up to the application, when we are ignoring them.

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Fri, 8 Feb 2008 03:13:48 +0000 (14:13 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test

16 years agomerge tdb changes from ctdb
Andrew Tridgell [Fri, 8 Feb 2008 03:13:19 +0000 (14:13 +1100)]
merge tdb changes from ctdb

16 years agoFix syntax in LDAP test
Andrew Bartlett [Fri, 8 Feb 2008 02:23:45 +0000 (13:23 +1100)]
Fix syntax in LDAP test

We don't get this far in the test at the moment however.

Andrew Bartlett

16 years agoFix formatting.
Jelmer Vernooij [Fri, 8 Feb 2008 02:03:44 +0000 (03:03 +0100)]
Fix formatting.

16 years agoRevert to ejs for 'provision'
Andrew Bartlett [Fri, 8 Feb 2008 01:54:09 +0000 (12:54 +1100)]
Revert to ejs for 'provision'

Andrew Bartlett

16 years agoRemove unused argument to provision().
Andrew Bartlett [Fri, 8 Feb 2008 01:52:54 +0000 (12:52 +1100)]
Remove unused argument to provision().

Andrew Bartlett

16 years agoLDAP backend provision now works with python.
Andrew Bartlett [Fri, 8 Feb 2008 01:49:30 +0000 (12:49 +1100)]
LDAP backend provision now works with python.

Andrew Bartlett

16 years agoRemove unused ldap_backend argument from provision.py
Andrew Bartlett [Fri, 8 Feb 2008 01:48:58 +0000 (12:48 +1100)]
Remove unused ldap_backend argument from provision.py

Andrew Bartlett

16 years agoFix LDAP backend with python provision
Andrew Bartlett [Fri, 8 Feb 2008 01:48:11 +0000 (12:48 +1100)]
Fix LDAP backend with python provision

The backend databases were still hard-coded as 'users.ldb' etc.

Andrew Bartlett

16 years agoEnsure expected errors do not leak up to the application.
Andrew Bartlett [Fri, 8 Feb 2008 01:45:51 +0000 (12:45 +1100)]
Ensure expected errors do not leak up to the application.

(reset the error string to be sure).

Andrew Bartlett

16 years agoSkip offline tests.
Jelmer Vernooij [Fri, 8 Feb 2008 00:19:14 +0000 (01:19 +0100)]
Skip offline tests.

16 years agoPut temporary test files in test directory.
Jelmer Vernooij [Thu, 7 Feb 2008 23:34:29 +0000 (00:34 +0100)]
Put temporary test files  in test directory.

16 years agoPut ldb test output in prefix.
Jelmer Vernooij [Thu, 7 Feb 2008 23:19:50 +0000 (00:19 +0100)]
Put ldb test output in prefix.

16 years agoMark RAW-OFFLINE as known failing for Samba 4 (because it doesn't have offline suppor...
Jelmer Vernooij [Thu, 7 Feb 2008 23:03:02 +0000 (00:03 +0100)]
Mark RAW-OFFLINE as known failing for Samba 4 (because it doesn't have offline support yet).

16 years agoOverride KRB5CCNAME so existing Kerberos tickets in the users environment don't get...
Jelmer Vernooij [Thu, 7 Feb 2008 22:47:18 +0000 (23:47 +0100)]
Override KRB5CCNAME so existing Kerberos tickets in the users environment don't get overwritten.

16 years agomerge growing tdb for tdb_wipe_all() fix from ctdb
Andrew Tridgell [Thu, 7 Feb 2008 12:06:44 +0000 (23:06 +1100)]
merge growing tdb for tdb_wipe_all() fix from ctdb

16 years agomake the multiplier in the RAW-OFFLINE test settable
Andrew Tridgell [Thu, 7 Feb 2008 12:05:44 +0000 (23:05 +1100)]
make the multiplier in the RAW-OFFLINE test settable

16 years agowkssvc.idl: fix idl for wkssvc_NetrGetJoinableOus[2]()
Stefan Metzmacher [Sun, 3 Feb 2008 01:54:23 +0000 (02:54 +0100)]
wkssvc.idl: fix idl for wkssvc_NetrGetJoinableOus[2]()

metze

16 years agopidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
Stefan Metzmacher [Thu, 31 Jan 2008 14:04:22 +0000 (15:04 +0100)]
pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers

The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze

16 years agopidl/NDR: fix handling of multilevel pointers in function elements
Stefan Metzmacher [Fri, 1 Feb 2008 22:09:37 +0000 (23:09 +0100)]
pidl/NDR: fix handling of multilevel pointers in function elements

The 2nd or higher level of wire pointers needs to be marked as deferred.

metze

16 years agopidl: get the pointer types correct when an element has multiple pointers
Stefan Metzmacher [Fri, 1 Feb 2008 09:30:47 +0000 (10:30 +0100)]
pidl: get the pointer types correct when an element has multiple pointers

Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze

16 years agowin32-tests: add a very usefull w32 programm to explore midl features
Stefan Metzmacher [Wed, 6 Feb 2008 15:34:36 +0000 (16:34 +0100)]
win32-tests: add a very usefull w32 programm to explore midl features

You have to define idl, call the client function
and add a server implementation.

Then you need to compile midltests.exe
and run it, it will dump the generated NDR on the
screen.

metze