samba.git
12 years agos3-libnetjoin: fix uninitialized variable.
Günther Deschner [Thu, 12 May 2011 22:19:13 +0000 (00:19 +0200)]
s3-libnetjoin: fix uninitialized variable.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 13 01:22:18 CEST 2011 on sn-devel-104

12 years agos3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf changes.
Günther Deschner [Thu, 12 May 2011 22:15:41 +0000 (00:15 +0200)]
s3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf changes.

Guenther

12 years agolibcli/auth/krb5_wrap: correctly use discard_const().
Günther Deschner [Thu, 12 May 2011 22:09:48 +0000 (00:09 +0200)]
libcli/auth/krb5_wrap: correctly use discard_const().

Jeremy, please check.

Guenther

12 years agos3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().
Günther Deschner [Thu, 12 May 2011 15:03:20 +0000 (17:03 +0200)]
s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104

12 years agos3-waf: stop building smbtortre4.
Günther Deschner [Thu, 12 May 2011 12:33:15 +0000 (14:33 +0200)]
s3-waf: stop building smbtortre4.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May 12 15:35:02 CEST 2011 on sn-devel-104

12 years agolibcli/auth/smbencrypt: in E_deshash, use talloc_stackframe instead of "#if _SAMBA_BU...
Michael Adam [Wed, 11 May 2011 09:57:10 +0000 (11:57 +0200)]
libcli/auth/smbencrypt: in E_deshash, use talloc_stackframe instead of "#if _SAMBA_BUILD_ == 3" and talloc_tos()

talloc_stackframe() is used in other shared components already,
and if the stack is a talloc_pool, then in most cases, it should
also not be more expensive than directly using talloc_tos().

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 12 12:52:02 CEST 2011 on sn-devel-104

12 years agos3:registry: add a warning debug message when the sorted subkeys is created from...
Michael Adam [Wed, 11 May 2011 14:19:41 +0000 (16:19 +0200)]
s3:registry: add a warning debug message when the sorted subkeys is created from key_exists()

12 years agos3:registry: recreate the sorted subkeys cache when storing keys
Michael Adam [Wed, 11 May 2011 13:58:48 +0000 (15:58 +0200)]
s3:registry: recreate the sorted subkeys cache when storing keys

This is to avoid turning the next read operation into a write op.

12 years agos3:registry: add create_sorted_subkeys() to delete and recreate the sorted subkeys key
Michael Adam [Wed, 11 May 2011 13:27:01 +0000 (15:27 +0200)]
s3:registry: add create_sorted_subkeys() to delete and recreate the sorted subkeys key

This is to be used from other places than the key_exists() code path.

12 years agos3:registry: turn create_sorted_subkeys_internal to NTSTATUS return type
Michael Adam [Wed, 11 May 2011 12:53:48 +0000 (14:53 +0200)]
s3:registry: turn create_sorted_subkeys_internal to NTSTATUS return type

(from bool)

12 years agos3:registry: rename create_sorted_subkeys() to create_sorted_subkeys_internal()
Michael Adam [Wed, 11 May 2011 12:49:10 +0000 (14:49 +0200)]
s3:registry: rename create_sorted_subkeys() to create_sorted_subkeys_internal()

12 years agos3:registry: fix a typo in a debug message
Michael Adam [Wed, 11 May 2011 12:17:21 +0000 (14:17 +0200)]
s3:registry: fix a typo in a debug message

12 years agos3: Slightly simplify smbd_smb2_request_next_vector
Volker Lendecke [Fri, 6 May 2011 09:26:56 +0000 (11:26 +0200)]
s3: Slightly simplify smbd_smb2_request_next_vector

Metze, Jeremy, please check!

12 years agos4/drepl_fsmo: Add an CR so that message is visible in the logs
Kamen Mazdrashki [Wed, 11 May 2011 18:05:42 +0000 (21:05 +0300)]
s4/drepl_fsmo: Add an CR so that message is visible in the logs

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed May 11 21:03:59 CEST 2011 on sn-devel-104

12 years agos4/getnc_exop: Initial implementation of a testsuite for GetNCChanges extended opeart...
Kamen Mazdrashki [Wed, 11 May 2011 18:04:54 +0000 (21:04 +0300)]
s4/getnc_exop: Initial implementation of a testsuite for GetNCChanges extended opeartion handling

12 years agos4/getncchanges: Pre-mark extended requests as success in case a sub-function "forget...
Kamen Mazdrashki [Wed, 11 May 2011 18:09:34 +0000 (21:09 +0300)]
s4/getncchanges: Pre-mark extended requests as success in case a sub-function "forget" to do this

12 years agos4/getncchanges: Implement placeholder for handling ex-op collection of objects
Kamen Mazdrashki [Wed, 11 May 2011 17:49:42 +0000 (20:49 +0300)]
s4/getncchanges: Implement placeholder for handling ex-op collection of objects

Right now it is solely based on function that handles objects
in normal DsGetNCChanges calls.

12 years agos4/getncchanges: Move the code that collects objects into separate function
Kamen Mazdrashki [Wed, 11 May 2011 17:48:53 +0000 (20:48 +0300)]
s4/getncchanges: Move the code that collects objects into separate function

12 years agos4/getncchanges: Don't mask Extended operation result - callers need it
Kamen Mazdrashki [Mon, 9 May 2011 17:11:22 +0000 (20:11 +0300)]
s4/getncchanges: Don't mask Extended operation result - callers need it

12 years agos4/getncchanges: Fail extended request rather than failing whole request
Kamen Mazdrashki [Mon, 9 May 2011 17:09:49 +0000 (20:09 +0300)]
s4/getncchanges: Fail extended request rather than failing whole request

in case that destination_dsa_guid is not valid

12 years agos3-printing: make cups_pull_comment_location() work again.
Günther Deschner [Wed, 11 May 2011 08:30:42 +0000 (10:30 +0200)]
s3-printing: make cups_pull_comment_location() work again.

we deal with lp_cups_server in cups_connect() already, inside the URI all our
other cups functions we use ipp://localhost, do the same here.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May 11 11:36:07 CEST 2011 on sn-devel-104

12 years agos3:librpc: remove unneded gssapi includes from source3/librpc/crypto/gse.c
Michael Adam [Tue, 10 May 2011 20:02:49 +0000 (22:02 +0200)]
s3:librpc: remove unneded gssapi includes from source3/librpc/crypto/gse.c

These come in via the smb_krb5.h include (and lib/replace/system/kerberos.h)
in the end.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue May 10 23:12:31 CEST 2011 on sn-devel-104

12 years agolibcli/auth: fix "no talloc stackframe around" message from the samba4.blackbox.kinit...
Michael Adam [Tue, 10 May 2011 19:59:38 +0000 (21:59 +0200)]
libcli/auth: fix "no talloc stackframe around" message from the samba4.blackbox.kinit test

create_kerberos_key_from_string_direct() used talloc_tos() directly.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

12 years agolib/replace: fix an #if HAVE_GSSAPI_GSSAPI_EXT_H to be an #ifdef
Michael Adam [Tue, 10 May 2011 18:54:06 +0000 (20:54 +0200)]
lib/replace: fix an #if HAVE_GSSAPI_GSSAPI_EXT_H to be an #ifdef

12 years agolibsmbconf: Define a doxygen group for libsmbconf.
Andreas Schneider [Thu, 14 Apr 2011 09:59:57 +0000 (11:59 +0200)]
libsmbconf: Define a doxygen group for libsmbconf.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_transaction_cancel().
Andreas Schneider [Thu, 14 Apr 2011 09:54:11 +0000 (11:54 +0200)]
libsmbconf: Document smbconf_transaction_cancel().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_transaction_commit().
Andreas Schneider [Thu, 14 Apr 2011 09:53:25 +0000 (11:53 +0200)]
libsmbconf: Document smbconf_transaction_commit().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_transaction_start().
Andreas Schneider [Thu, 14 Apr 2011 09:52:30 +0000 (11:52 +0200)]
libsmbconf: Document smbconf_transaction_start().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_delete_global_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:50:05 +0000 (11:50 +0200)]
libsmbconf: Document smbconf_delete_global_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_delete_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:49:24 +0000 (11:49 +0200)]
libsmbconf: Document smbconf_delete_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_set_global_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:48:15 +0000 (11:48 +0200)]
libsmbconf: Document smbconf_set_global_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_set_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:47:41 +0000 (11:47 +0200)]
libsmbconf: Document smbconf_set_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_global_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:45:14 +0000 (11:45 +0200)]
libsmbconf: Document smbconf_get_global_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_includes().
Andreas Schneider [Thu, 14 Apr 2011 09:44:22 +0000 (11:44 +0200)]
libsmbconf: Document smbconf_get_includes().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_delete_global_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:38:31 +0000 (11:38 +0200)]
libsmbconf: Document smbconf_delete_global_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_delete_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:37:59 +0000 (11:37 +0200)]
libsmbconf: Document smbconf_delete_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_global_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:36:36 +0000 (11:36 +0200)]
libsmbconf: Document smbconf_get_global_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:35:11 +0000 (11:35 +0200)]
libsmbconf: Document smbconf_get_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_set_global_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:32:06 +0000 (11:32 +0200)]
libsmbconf: Document smbconf_set_global_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_set_parameter().
Andreas Schneider [Thu, 14 Apr 2011 09:31:17 +0000 (11:31 +0200)]
libsmbconf: Document smbconf_set_parameter().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_delete_share().
Andreas Schneider [Thu, 14 Apr 2011 09:28:00 +0000 (11:28 +0200)]
libsmbconf: Document smbconf_delete_share().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_share().
Andreas Schneider [Thu, 14 Apr 2011 09:27:03 +0000 (11:27 +0200)]
libsmbconf: Document smbconf_get_share().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_create_share().
Andreas Schneider [Thu, 14 Apr 2011 09:25:07 +0000 (11:25 +0200)]
libsmbconf: Document smbconf_create_share().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_share_exists().
Andreas Schneider [Thu, 14 Apr 2011 09:23:56 +0000 (11:23 +0200)]
libsmbconf: Document smbconf_share_exists().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_share_names().
Andreas Schneider [Thu, 14 Apr 2011 09:22:25 +0000 (11:22 +0200)]
libsmbconf: Document smbconf_get_share_names().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_config().
Andreas Schneider [Thu, 14 Apr 2011 09:19:36 +0000 (11:19 +0200)]
libsmbconf: Document smbconf_get_config().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_drop().
Andreas Schneider [Thu, 14 Apr 2011 09:13:49 +0000 (11:13 +0200)]
libsmbconf: Document smbconf_drop().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_changed().
Andreas Schneider [Thu, 14 Apr 2011 09:12:27 +0000 (11:12 +0200)]
libsmbconf: Document smbconf_changed().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_shutdown().
Andreas Schneider [Thu, 14 Apr 2011 09:05:09 +0000 (11:05 +0200)]
libsmbconf: Document smbconf_shutdown().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_is_writeable().
Andreas Schneider [Thu, 14 Apr 2011 09:04:15 +0000 (11:04 +0200)]
libsmbconf: Document smbconf_is_writeable().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_backend_requires_messaging().
Andreas Schneider [Thu, 14 Apr 2011 09:02:49 +0000 (11:02 +0200)]
libsmbconf: Document smbconf_backend_requires_messaging().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-waf: Create a public libsmconf.
Andreas Schneider [Tue, 12 Apr 2011 09:02:07 +0000 (11:02 +0200)]
s3-waf: Create a public libsmconf.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-waf: Create a registry private library.
Andreas Schneider [Tue, 12 Apr 2011 08:59:20 +0000 (10:59 +0200)]
s3-waf: Create a registry private library.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_config() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 15:43:10 +0000 (17:43 +0200)]
libsmbconf: Convert smbconf_get_config() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_transaction_*() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 15:24:13 +0000 (17:24 +0200)]
libsmbconf: Convert smbconf_transaction_*() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 14:01:22 +0000 (16:01 +0200)]
libsmbconf: Convert smbconf_delete_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_set_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 13:14:52 +0000 (15:14 +0200)]
libsmbconf: Convert smbconf_set_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 12:52:52 +0000 (14:52 +0200)]
libsmbconf: Convert smbconf_get_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 12:20:32 +0000 (14:20 +0200)]
libsmbconf: Convert smbconf_delete_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 11:50:53 +0000 (13:50 +0200)]
libsmbconf: Convert smbconf_get_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_set_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 11:23:26 +0000 (13:23 +0200)]
libsmbconf: Convert smbconf_set_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_share() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 09:39:03 +0000 (11:39 +0200)]
libsmbconf: Convert smbconf_delete_share() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_share() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 15:20:35 +0000 (17:20 +0200)]
libsmbconf: Convert smbconf_get_share() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_create_share() to smbErr.
Andreas Schneider [Fri, 8 Apr 2011 13:48:01 +0000 (15:48 +0200)]
libsmbconf: Convert smbconf_create_share() to smbErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_share_names() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 12:19:15 +0000 (14:19 +0200)]
libsmbconf: Convert smbconf_get_share_names() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_drop() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 08:40:02 +0000 (10:40 +0200)]
libsmbconf: Convert smbconf_drop() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_open() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 08:28:17 +0000 (10:28 +0200)]
libsmbconf: Convert smbconf_open() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_init() to sbcErr.
Andreas Schneider [Thu, 7 Apr 2011 15:19:03 +0000 (17:19 +0200)]
libsmbconf: Convert smbconf_init() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Added a sbcErrorString() function.
Andreas Schneider [Thu, 7 Apr 2011 13:27:52 +0000 (15:27 +0200)]
libsmbconf: Added a sbcErrorString() function.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Introduce a sbcErrType.
Andreas Schneider [Thu, 7 Apr 2011 13:27:26 +0000 (15:27 +0200)]
libsmbconf: Introduce a sbcErrType.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoFix alpha version - we're now working on alpha16.
Jelmer Vernooij [Mon, 9 May 2011 07:13:15 +0000 (09:13 +0200)]
Fix alpha version - we're now working on alpha16.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue May 10 18:36:08 CEST 2011 on sn-devel-104

12 years agos3-printing: Fix double free of cups request.
Günther Deschner [Tue, 10 May 2011 13:49:05 +0000 (15:49 +0200)]
s3-printing: Fix double free of cups request.

We never free the request in our cups api usage except for here. The reason is
probably htis (from the cupsDoConnect API docs):

"This function sends the IPP request to the specified server, retrying and
authenticating as necessary. The request is freed with ippDelete() after
receiving a valid IPP response."

Revert "Fix a memory leak in cups_pull_comment_location"

This reverts commit fee2664dad37536b05ce8bdae3e74d45b257f632.

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 10 17:32:58 CEST 2011 on sn-devel-104

12 years agos3-printing: very obvious fix for cups_pull_comment_location().
Günther Deschner [Tue, 10 May 2011 13:48:25 +0000 (15:48 +0200)]
s3-printing: very obvious fix for cups_pull_comment_location().

This has been in there since 2008...

Guenther

12 years agos3-events: tevent_internal.h is not a public header
Andrew Tridgell [Tue, 10 May 2011 12:55:45 +0000 (14:55 +0200)]
s3-events: tevent_internal.h is not a public header

We need to use the "foo.h" form instead of the <foo.h> form for
headers that are not installed publicly. Otherwise when an external
version of tevent is used we won't find the header and the build will
fail.

Note that this creates a structure dependency between the
tevent structures in the external library and the headers in our
source tree. That is not ideal, but is currently OK as the waf build
will only use the external library if it is at least the same version
as the internal tree, which means it will actually be the same
version, as we release the external version from our tree.

We should come up with a better solution, but for now this allows
openchange to build again.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue May 10 16:06:40 CEST 2011 on sn-devel-104

12 years agos3: Use tevent_req_ntstatus properly in a few places
Volker Lendecke [Tue, 10 May 2011 09:05:47 +0000 (11:05 +0200)]
s3: Use tevent_req_ntstatus properly in a few places

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 10 13:11:10 CEST 2011 on sn-devel-104

12 years agos3: Use tevent_req_ntstatus properly in a few places
Volker Lendecke [Tue, 10 May 2011 09:05:47 +0000 (11:05 +0200)]
s3: Use tevent_req_ntstatus properly in a few places

12 years agoasync_smb.c: convert cli->timeout properly
Rusty Russell [Tue, 10 May 2011 08:03:11 +0000 (17:33 +0930)]
async_smb.c: convert cli->timeout properly

I have a test failure on my 32-bit Ubuntu system, in that
samba3.smbtorture_s3.plain(s3dc).LOCK9 immediately times out (rather than
waiting 5 seconds for the child).

Debugging revealed this code: timeout is in ms and is set to > 1000 in
various places.  The code dates from 2002, and other perturbations didn't
reveal why it breaks now, but fix it anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue May 10 12:09:07 CEST 2011 on sn-devel-104

12 years agotdb_wrap.h: not a public header.
Rusty Russell [Tue, 10 May 2011 02:16:53 +0000 (11:46 +0930)]
tdb_wrap.h: not a public header.

It is a private library, and OpenChange has their own which they use, so
it's not for them either.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue May 10 05:21:19 CEST 2011 on sn-devel-104

13 years agogencache: don't use CLEAR_IF_FIRST as fallback.
Rusty Russell [Tue, 19 Apr 2011 02:36:05 +0000 (12:06 +0930)]
gencache: don't use CLEAR_IF_FIRST as fallback.

CLEAR_IF_FIRST only works if *all* openers use that flag.

So just truncate the file: it's racy, but that's what we're doing anyway.

We'd really need a TDB_OPENCHECK_OR_CLEAR flag to do this properly (or in
TDB2, a open hook at the right point).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoAdd -fno-common where supported (WAF only)
Rusty Russell [Tue, 10 May 2011 02:07:30 +0000 (11:37 +0930)]
Add -fno-common where supported (WAF only)

Normally under UNIX, uninitialized non-static global variables get
placed in the "common" section, where they are merged at link time.
This means if two C files define "int debug", they will end up
referring to the same variable.  Or if one does "float level" and the
other does "int level" you'll get an accidental union.

Such bugs can be hard to track down; fortunately GCC offers
-fno-common to disable this feature.  It didn't reveal any places
which need fixing, however).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agobuild: Remove --disable-s3build so we can rely on these subsystems
Andrew Bartlett [Mon, 9 May 2011 09:00:18 +0000 (11:00 +0200)]
build: Remove --disable-s3build so we can rely on these subsystems

This will make it easier to write code that uses the whole codebase.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 12:25:33 CEST 2011 on sn-devel-104

12 years agos3-build: Move generated config.h and config.h.in to include/autoconf
Andrew Bartlett [Mon, 9 May 2011 08:59:15 +0000 (10:59 +0200)]
s3-build: Move generated config.h and config.h.in to include/autoconf

This ensures that these are not found by the waf build, which causes
issues when the wrong config.h is used by the recursive smbtorture build

Andrew Bartlett

12 years agotevent: Fix a typo
Volker Lendecke [Mon, 9 May 2011 05:13:00 +0000 (07:13 +0200)]
tevent: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May  9 08:17:08 CEST 2011 on sn-devel-104

12 years agos3: Fix a typo
Samba-JP oota [Mon, 9 May 2011 05:12:25 +0000 (07:12 +0200)]
s3: Fix a typo

12 years agoselftest: Test both users created in plugin_s4_dc environment
Andrew Bartlett [Mon, 9 May 2011 02:22:01 +0000 (04:22 +0200)]
selftest: Test both users created in plugin_s4_dc environment

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 06:10:52 CEST 2011 on sn-devel-104

12 years agoselftest: don't override just-added username in plugin_s4_dc test
Andrew Bartlett [Mon, 9 May 2011 02:20:00 +0000 (04:20 +0200)]
selftest: don't override just-added username in plugin_s4_dc test

This will allow us to test a user added via smbpasswd as well as the
administrator added by provision.

Andrew Bartlett

12 years agonsswitch: Fix build check logic
Kai Blin [Sun, 8 May 2011 19:50:34 +0000 (21:50 +0200)]
nsswitch: Fix build check logic

Only build pam_winbind.so if we want pam modules _and_ have the libs

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun May  8 23:56:33 CEST 2011 on sn-devel-104

12 years agoselftest: Polish selftest-vars.sh a little so it can be used again
Kamen Mazdrashki [Sun, 8 May 2011 10:31:32 +0000 (13:31 +0300)]
selftest: Polish selftest-vars.sh a little so it can be used again

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun May  8 22:50:01 CEST 2011 on sn-devel-104

12 years agos4-selftest Add tests for proxy_samba4_dc
Andrew Bartlett [Sun, 8 May 2011 13:26:28 +0000 (15:26 +0200)]
s4-selftest Add tests for proxy_samba4_dc

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May  8 20:03:45 CEST 2011 on sn-devel-104

12 years agoselftest: Make the ncalrpc dir common between Samba4 and Samba3.
Andrew Bartlett [Sun, 8 May 2011 08:32:01 +0000 (10:32 +0200)]
selftest: Make the ncalrpc dir common between Samba4 and Samba3.

This also avoids creating the directory, as the startup routines will
create it with the correct permissions.

Andrew Bartlett

12 years agoncalrpc: Force ncalrpc dir to be mode 755 in all users
Andrew Bartlett [Sun, 8 May 2011 08:29:27 +0000 (10:29 +0200)]
ncalrpc: Force ncalrpc dir to be mode 755 in all users

This allows this directory to be shared between Samba3 and Samba4 in a
Franky-style setup easily.

Andrew Bartlett

12 years agoselftest: Add plugin_s4_dc environment
Andrew Bartlett [Sun, 8 May 2011 04:55:33 +0000 (06:55 +0200)]
selftest: Add plugin_s4_dc environment

This environment uses pdb_samba4 and auth_samba4 to plug these
critical subsystems into a mixed Samba3/Samba4 DC, in a similar way to
the 'Franky' proposal.

Andrew Barltett

12 years agos3-auth Add auth_samba4 module
Andrew Bartlett [Sun, 8 May 2011 12:48:11 +0000 (14:48 +0200)]
s3-auth Add auth_samba4 module

This module makes a direct call into the Samba4 auth stack to
authenticate Samba4 uses in a Samba3 file server.  The direct call
avoids the need to obtain schannel credentials.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

12 years agos3-passdb: added pdb_samba4
Andrew Bartlett [Fri, 6 May 2011 14:50:04 +0000 (00:50 +1000)]
s3-passdb: added pdb_samba4

This uses direct LDB operations and calls to the dsdb library to allow
passdb operations (such as pdbedit and smbpasswd) offline, and uses
transactions internally for database consistency.

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

12 years agos3-passdb Redirect domain GUID and SID queries to the passdb stack
Andrew Bartlett [Sun, 8 May 2011 10:52:06 +0000 (12:52 +0200)]
s3-passdb Redirect domain GUID and SID queries to the passdb stack

This is done if the passdb module supports PDB_ADS, and ensures that a
random SID is never made up locally for these directories.

This is only enabled when in the waf build, due to dependency issues.

Andrew Bartlett

12 years agos4-dsdb Add transactions to dsdb modify helpers
Andrew Bartlett [Sun, 8 May 2011 13:56:58 +0000 (15:56 +0200)]
s4-dsdb Add transactions to dsdb modify helpers

12 years agos4-samr Remove incorrect transaction_cancel() in error path
Andrew Bartlett [Sun, 8 May 2011 13:24:57 +0000 (15:24 +0200)]
s4-samr Remove incorrect transaction_cancel() in error path

The transactions are now handled entirely within dsdb_add_user()

Andrew Bartlett

12 years agos4-param cope with doulbe-parsing of -foo and +foo lists
Andrew Bartlett [Sun, 8 May 2011 04:58:19 +0000 (06:58 +0200)]
s4-param cope with doulbe-parsing of -foo and +foo lists

For some reason these lists are parsed twice, and so any -foo was
failing as it was already removed the first time.

Andrew Bartlett

12 years agobuild: Allow the C code to know if this is a waf build
Andrew Bartlett [Sun, 8 May 2011 15:35:05 +0000 (17:35 +0200)]
build: Allow the C code to know if this is a waf build

This allows addition of functionality that can't be handled (for
example, due to dependencies) in the autoconf build.

Andrew Bartlett

12 years agos4-interfaces: keep interfaces in the order they were declared
Andrew Tridgell [Sun, 8 May 2011 10:55:41 +0000 (12:55 +0200)]
s4-interfaces: keep interfaces in the order they were declared

the spoolss notify test depends on the interfaces order

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun May  8 13:57:58 CEST 2011 on sn-devel-104