kai/samba-autobuild/.git
14 years agos3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()
Stefan Metzmacher [Sat, 9 Jan 2010 10:30:39 +0000 (11:30 +0100)]
s3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()
Stefan Metzmacher [Wed, 6 Jan 2010 16:14:25 +0000 (17:14 +0100)]
s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()

Only data needs to be non-const.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: use a 'bool ok' variable to make the code more readable
Stefan Metzmacher [Thu, 7 Jan 2010 09:43:23 +0000 (10:43 +0100)]
s3:ntlmssp: use a 'bool ok' variable to make the code more readable

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: fix some formating
Stefan Metzmacher [Sat, 9 Jan 2010 13:06:27 +0000 (14:06 +0100)]
s3:ntlmssp: fix some formating

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: inline ntlmssp_weaken_keys()
Stefan Metzmacher [Wed, 6 Jan 2010 14:45:38 +0000 (15:45 +0100)]
s3:ntlmssp: inline ntlmssp_weaken_keys()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make send_seal_key and recv_seal_key local variables
Stefan Metzmacher [Wed, 6 Jan 2010 14:22:24 +0000 (15:22 +0100)]
s3:ntlmssp: make send_seal_key and recv_seal_key local variables

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: rename void *auth_context; into void *callback_private;
Stefan Metzmacher [Wed, 30 Dec 2009 13:53:08 +0000 (14:53 +0100)]
s3:ntlmssp: rename void *auth_context; into void *callback_private;

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: add some consts
Stefan Metzmacher [Wed, 30 Dec 2009 14:23:16 +0000 (15:23 +0100)]
s3:ntlmssp: add some consts

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: remove unused get_global_myname() and get_domain() from ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 13:17:51 +0000 (14:17 +0100)]
s3:ntlmssp: remove unused get_global_myname() and get_domain() from ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them
Stefan Metzmacher [Wed, 30 Dec 2009 13:13:45 +0000 (14:13 +0100)]
s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* fields also...
Stefan Metzmacher [Wed, 30 Dec 2009 12:29:54 +0000 (13:29 +0100)]
s3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* fields also for the client

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 10:55:23 +0000 (11:55 +0100)]
s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 09:07:32 +0000 (10:07 +0100)]
s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make use of C99 types in ntlmssp_sign.c
Stefan Metzmacher [Tue, 29 Dec 2009 16:25:47 +0000 (17:25 +0100)]
s3:ntlmssp: make use of C99 types in ntlmssp_sign.c

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: use uint8_t in calc_ntlmv2_key()
Stefan Metzmacher [Tue, 29 Dec 2009 16:25:20 +0000 (17:25 +0100)]
s3:ntlmssp: use uint8_t in calc_ntlmv2_key()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
Stefan Metzmacher [Thu, 7 Jan 2010 09:10:13 +0000 (10:10 +0100)]
s4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: make use of dump_arc4_state()
Stefan Metzmacher [Fri, 8 Jan 2010 21:11:10 +0000 (14:11 -0700)]
s4:ntlmssp: make use of dump_arc4_state()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: copy dump_arc4_state() from source3
Stefan Metzmacher [Wed, 6 Jan 2010 15:59:35 +0000 (16:59 +0100)]
s4:ntlmssp: copy dump_arc4_state() from source3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()
Stefan Metzmacher [Fri, 8 Jan 2010 20:58:42 +0000 (13:58 -0700)]
s4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: make use of calc_ntlmv2_key() for seal keys
Stefan Metzmacher [Fri, 8 Jan 2010 20:49:54 +0000 (13:49 -0700)]
s4:ntlmssp: make use of calc_ntlmv2_key() for seal keys

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add calc_ntlmv2_key() from source3
Stefan Metzmacher [Fri, 8 Jan 2010 20:37:43 +0000 (13:37 -0700)]
s4:ntlmssp: add calc_ntlmv2_key() from source3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_talloc
Stefan Metzmacher [Fri, 8 Jan 2010 20:36:37 +0000 (13:36 -0700)]
s4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_talloc

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: inline ntlmssp_weakend_keys()
Stefan Metzmacher [Fri, 8 Jan 2010 20:07:33 +0000 (13:07 -0700)]
s4:ntlmssp: inline ntlmssp_weakend_keys()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: use a 'bool ok' helper variable to make the code more readable
Stefan Metzmacher [Wed, 6 Jan 2010 15:58:52 +0000 (16:58 +0100)]
s4:ntlmssp: use a 'bool ok' helper variable to make the code more readable

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: fix some formating
Stefan Metzmacher [Thu, 7 Jan 2010 09:24:12 +0000 (10:24 +0100)]
s4:ntlmssp: fix some formating

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_state
Stefan Metzmacher [Wed, 6 Jan 2010 13:53:30 +0000 (14:53 +0100)]
s4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_state
Stefan Metzmacher [Tue, 5 Jan 2010 17:24:02 +0000 (18:24 +0100)]
s4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_state
Stefan Metzmacher [Tue, 5 Jan 2010 17:21:10 +0000 (18:21 +0100)]
s4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: keep a ntlmssp_server_auth_state to transport variables from preauth...
Stefan Metzmacher [Tue, 5 Jan 2010 17:18:29 +0000 (18:18 +0100)]
s4:ntlmssp: keep a ntlmssp_server_auth_state to transport variables from preauth to postauth hooks

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove unused server_multiple_authentications feature.
Stefan Metzmacher [Tue, 5 Jan 2010 16:51:53 +0000 (17:51 +0100)]
s4:ntlmssp: remove unused server_multiple_authentications feature.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 16:57:54 +0000 (17:57 +0100)]
s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: split gensec_ntlmssp_unseal_packet() and ntlmssp_unseal_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:02:37 +0000 (16:02 +0100)]
s4:ntlmssp: split gensec_ntlmssp_unseal_packet() and ntlmssp_unseal_packet()

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: split gensec_ntlmssp_seal_packet() and ntlmssp_seal_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:02:37 +0000 (16:02 +0100)]
s4:ntlmssp: split gensec_ntlmssp_seal_packet() and ntlmssp_seal_packet()

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: split gensec_ntlmssp_check_packet() and ntlmssp_check_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:01:28 +0000 (16:01 +0100)]
s4:ntlmssp: split gensec_ntlmssp_check_packet() and ntlmssp_check_packet()

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: split gensec_ntlmssp_sign_packet() and ntlmssp_sign_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 14:58:05 +0000 (15:58 +0100)]
s4:ntlmssp: split gensec_ntlmssp_sign_packet() and ntlmssp_sign_packet()

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 14:23:37 +0000 (15:23 +0100)]
s4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove server_name from (gensec_)ntlmssp_state and fill the server.*...
Stefan Metzmacher [Wed, 30 Dec 2009 14:00:02 +0000 (15:00 +0100)]
s4:ntlmssp: remove server_name from (gensec_)ntlmssp_state and fill the server.* fields also for the client

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: calculate server names at startup and store them in (gensec_)ntlmssp_stat...
Stefan Metzmacher [Wed, 30 Dec 2009 14:14:38 +0000 (15:14 +0100)]
s4:ntlmssp: calculate server names at startup and store them in (gensec_)ntlmssp_state->server.*

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: replace server_role by a server.is_standalone in (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 09:14:07 +0000 (10:14 +0100)]
s4:ntlmssp: replace server_role by a server.is_standalone in (gensec_)ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove more whitespaces...
Stefan Metzmacher [Tue, 29 Dec 2009 16:29:47 +0000 (17:29 +0100)]
s4:ntlmssp: remove more whitespaces...

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3
Stefan Metzmacher [Tue, 29 Dec 2009 15:46:05 +0000 (16:46 +0100)]
s4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_data
Stefan Metzmacher [Wed, 30 Dec 2009 07:23:13 +0000 (08:23 +0100)]
s4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_data

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove gensec_security from (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 07:06:28 +0000 (08:06 +0100)]
s4:ntlmssp: remove gensec_security from (gensec_)ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove backend specifix stuff from (gensec_)ntlmssp_state
Stefan Metzmacher [Tue, 29 Dec 2009 16:56:56 +0000 (17:56 +0100)]
s4:ntlmssp: remove backend specifix stuff from (gensec_)ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: create a gensec_ntlmssp_context between gensec_security and ntlmssp_state
Stefan Metzmacher [Tue, 29 Dec 2009 16:01:28 +0000 (17:01 +0100)]
s4:ntlmssp: create a gensec_ntlmssp_context between gensec_security and ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add definition of gensec_ntlmssp_context
Stefan Metzmacher [Tue, 29 Dec 2009 15:48:38 +0000 (16:48 +0100)]
s4:ntlmssp: add definition of gensec_ntlmssp_context

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add a callback_private pointer to gensec_ntlmssp_state
Stefan Metzmacher [Tue, 29 Dec 2009 15:47:11 +0000 (16:47 +0100)]
s4:ntlmssp: add a callback_private pointer to gensec_ntlmssp_state

We'll remove any gensec specific stuff from gensec_ntlmssp_state
and rename it to ntlmssp_state again.

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-testparm: Throw warning when 'workgroup' and 'netbios name' are identical.
Karolin Seeger [Wed, 24 Mar 2010 13:55:15 +0000 (14:55 +0100)]
s3-testparm: Throw warning when 'workgroup' and 'netbios name' are identical.

Address bug #7285 (NetBIOS Namespace Clash Handling).

Karolin

14 years agoidl: drsuapi.idl - fix few more comments
Kamen Mazdrashki [Wed, 17 Mar 2010 01:27:05 +0000 (03:27 +0200)]
idl: drsuapi.idl - fix few more comments

14 years agoidl: Regenerate DRSUAPI idl files
Kamen Mazdrashki [Wed, 17 Mar 2010 01:09:09 +0000 (03:09 +0200)]
idl: Regenerate DRSUAPI idl files

14 years agos4/drs: Pretty print for drsuapi_SecBufferType
Kamen Mazdrashki [Wed, 17 Mar 2010 01:08:56 +0000 (03:08 +0200)]
s4/drs: Pretty print for drsuapi_SecBufferType

It is a type and mask combined in one DRS field so
we have to make a custom ndr_print implementation for this type

14 years agos4/idl: DsAddEntry V3 request description
Kamen Mazdrashki [Wed, 17 Mar 2010 01:07:01 +0000 (03:07 +0200)]
s4/idl: DsAddEntry V3 request description

14 years agos4/drs: Implement DsAddEntry V3 error handling
Kamen Mazdrashki [Mon, 15 Mar 2010 11:57:41 +0000 (13:57 +0200)]
s4/drs: Implement DsAddEntry V3 error handling

14 years agos4/idl: Remove drsuapi_DsAddEntryExtraErrorBuffer - it is not used anymore
Kamen Mazdrashki [Tue, 16 Mar 2010 23:20:31 +0000 (01:20 +0200)]
s4/idl: Remove drsuapi_DsAddEntryExtraErrorBuffer - it is not used anymore

14 years agos4/idl: Complete drsuapi_DsAddEntryErrorInfo description
Kamen Mazdrashki [Tue, 16 Mar 2010 19:58:22 +0000 (21:58 +0200)]
s4/idl: Complete drsuapi_DsAddEntryErrorInfo description

Members for Security, Service, Update and System errors renamed
to be more descriptive.

All those error types share same description.

14 years agos4/idl: Add DsAddEntry Referral error definition
Kamen Mazdrashki [Mon, 15 Mar 2010 23:30:05 +0000 (01:30 +0200)]
s4/idl: Add DsAddEntry Referral error definition

14 years agos4/idl: Add DsAddEntry Name resolution error definition
Kamen Mazdrashki [Sun, 14 Mar 2010 14:07:49 +0000 (16:07 +0200)]
s4/idl: Add DsAddEntry Name resolution error definition

14 years agos4/drs: Refactor error handling for DsAddEntry V3 replies
Kamen Mazdrashki [Fri, 12 Mar 2010 15:05:58 +0000 (17:05 +0200)]
s4/drs: Refactor error handling for DsAddEntry V3 replies

Dumping for specific error classes are to be implemented properly
in the near future.

14 years agos4/drs: pretty print for drsuapi_DsAddEntry_AttrErrListItem_V1
Kamen Mazdrashki [Fri, 12 Mar 2010 13:06:19 +0000 (15:06 +0200)]
s4/drs: pretty print for drsuapi_DsAddEntry_AttrErrListItem_V1

14 years agos4/idl: redefine drsuapi_DsAddEntryErrorInfo1
Kamen Mazdrashki [Fri, 12 Mar 2010 12:55:05 +0000 (14:55 +0200)]
s4/idl: redefine drsuapi_DsAddEntryErrorInfo1

This actually describes Attribute error during DsAddEntry execution.

Structure is renamed to drsuapi_DsAddEntryErrorInfo_Attr.
And structure to define Attribute error data are all
prefixed with drsuapi_DsAddEntry_AttrErr

14 years agos4/drs: drsuapi_DsAddEntry_ErrData propagate structure def in source code
Kamen Mazdrashki [Wed, 10 Mar 2010 14:37:38 +0000 (16:37 +0200)]
s4/drs: drsuapi_DsAddEntry_ErrData propagate structure def in source code

14 years agos4/idl: drsuapi_DsAddEntryError refactored
Kamen Mazdrashki [Fri, 12 Mar 2010 12:30:05 +0000 (14:30 +0200)]
s4/idl: drsuapi_DsAddEntryError refactored

Structure description and name was changed to be aligned with
WSPP definition.

Ref: [MS-DRSR] 4.1.1.1.23

14 years agos4/drs: DsAddEntry - extending error handling for V2 replies
Kamen Mazdrashki [Fri, 12 Mar 2010 11:42:05 +0000 (13:42 +0200)]
s4/drs: DsAddEntry - extending error handling for V2 replies

After having more complete definition for DsAddEntryReply V2
structure, we can now handle error state in more robust way,
not just counting on number of objects returned.

14 years agos4/idl: DsAddEntry - refactor DsAddEntryCtr2 structure
Kamen Mazdrashki [Tue, 9 Mar 2010 00:59:34 +0000 (02:59 +0200)]
s4/idl: DsAddEntry - refactor DsAddEntryCtr2 structure

Reply structure definition was aligned with WSPP documentation
Ref: [MS-DRSR], section 4.1.1.1.7

14 years agos4/drs: drsuapi_DsAddEntryErrorInfoX changes propagated to source code
Kamen Mazdrashki [Mon, 8 Mar 2010 01:52:14 +0000 (03:52 +0200)]
s4/drs: drsuapi_DsAddEntryErrorInfoX changes propagated to source code

14 years agos4/idl: Update drsuapi_DsAddEntryErrorInfoX definition
Kamen Mazdrashki [Mon, 8 Mar 2010 01:51:37 +0000 (03:51 +0200)]
s4/idl: Update drsuapi_DsAddEntryErrorInfoX definition

drsuapi_DsAddEntryErrorInfoX is an extended error
description used by most of the error infos returned
by DsAddEntry RPC method.

14 years agos4/idl: DIRERR error codes definition
Kamen Mazdrashki [Fri, 12 Mar 2010 11:39:52 +0000 (13:39 +0200)]
s4/idl: DIRERR error codes definition

DIRERR codes specify class of error returned from
DsAddEntry method call.

Ref: [MS-DRSR], section 4.1.1.1.25

14 years agos4/drs: DsAddEntry - Propagating unsigned switches to source code
Kamen Mazdrashki [Sun, 7 Mar 2010 19:46:39 +0000 (21:46 +0200)]
s4/drs: DsAddEntry - Propagating unsigned switches to source code

14 years agos4/idl: DsAddEntry - switch types should be unsigned
Kamen Mazdrashki [Sun, 7 Mar 2010 19:36:22 +0000 (21:36 +0200)]
s4/idl: DsAddEntry - switch types should be unsigned

14 years agos4-smbtorture: add missing checks for WERROR results in RPC-SAMBA3 tests.
Günther Deschner [Wed, 24 Mar 2010 12:34:01 +0000 (13:34 +0100)]
s4-smbtorture: add missing checks for WERROR results in RPC-SAMBA3 tests.

Guenther

14 years agos4-smbtorture: fix some invalid parameters in RPC-SAMSYNC test.
Günther Deschner [Wed, 24 Mar 2010 12:18:33 +0000 (13:18 +0100)]
s4-smbtorture: fix some invalid parameters in RPC-SAMSYNC test.

Guenther

14 years agos4-smbtorture: cleanup some of the RPC-SAMBA3 tests.
Günther Deschner [Mon, 22 Mar 2010 14:58:09 +0000 (15:58 +0100)]
s4-smbtorture: cleanup some of the RPC-SAMBA3 tests.

This avoids printf, uses simplication functions where appropriate, etc.

Guenther

14 years agos4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.
Günther Deschner [Mon, 22 Mar 2010 16:24:38 +0000 (17:24 +0100)]
s4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.

Guenther

14 years agoidl: fix comment and convert whitespaces to tabs
Simo Sorce [Wed, 24 Mar 2010 11:45:15 +0000 (07:45 -0400)]
idl: fix comment and convert whitespaces to tabs

14 years agos4:selftest Test --sign and --encrypt options to ldbsearch
Andrew Bartlett [Wed, 24 Mar 2010 08:27:18 +0000 (19:27 +1100)]
s4:selftest Test --sign and --encrypt options to ldbsearch

14 years agos4:cmdline Add --sign and --encrypt options to our common command line
Andrew Bartlett [Wed, 24 Mar 2010 08:26:02 +0000 (19:26 +1100)]
s4:cmdline Add --sign and --encrypt options to our common command line

This allows ldbsearch to accept --sign and --encrypt.  I'll soon work
to integrate with the --signing= option in smbclient.

Andrew Bartlett

14 years agos4:ntlmssp Ensure that we always negotiate signing if we negotiate sealing.
Andrew Bartlett [Wed, 24 Mar 2010 05:09:02 +0000 (16:09 +1100)]
s4:ntlmssp Ensure that we always negotiate signing if we negotiate sealing.

Without this, a sealed LDAP connection to windows does not work.

Andrew Bartlett

14 years agos3: Optimize gencache for smbd exit
Volker Lendecke [Tue, 23 Mar 2010 17:36:55 +0000 (18:36 +0100)]
s3: Optimize gencache for smbd exit

If thousands of smbds try to gencache_stabilize at the same time because the
network died, all of them might be sitting in transaction_start. Don't do the
stabilize transaction if nothing has changed in gencache_notrans.tdb.

Volker

14 years agolibreplace: fixed declaration of dprintf() on FreeBSD
Andrew Tridgell [Tue, 23 Mar 2010 18:06:25 +0000 (05:06 +1100)]
libreplace: fixed declaration of dprintf() on FreeBSD

14 years agos4-provision: FreeBSD uses 'staff' for users
Andrew Tridgell [Wed, 24 Mar 2010 05:52:37 +0000 (16:52 +1100)]
s4-provision: FreeBSD uses 'staff' for users

14 years agos4-provision: solaris uses the group "other"
Andrew Tridgell [Tue, 23 Mar 2010 15:02:32 +0000 (11:02 -0400)]
s4-provision: solaris uses the group "other"

14 years agobuild: fixed nss_wrapper on solaris
Andrew Tridgell [Mon, 22 Mar 2010 07:40:44 +0000 (18:40 +1100)]
build: fixed nss_wrapper on solaris

solaris has different getpwnam_r syntax

14 years agoidl: fix forest trust information idl
Simo Sorce [Tue, 23 Mar 2010 22:45:20 +0000 (18:45 -0400)]
idl: fix forest trust information idl

--validate now passes

14 years agos4-smbtorture: remove tailing whitespace in samba3rpc testsuite.
Günther Deschner [Tue, 23 Mar 2010 17:32:06 +0000 (18:32 +0100)]
s4-smbtorture: remove tailing whitespace in samba3rpc testsuite.

Guenther

14 years agos4:librpc/rpc/pyrpc.h: librpc/rpc/dcerpc.h isn't needed anymore
Stefan Metzmacher [Thu, 18 Mar 2010 17:55:49 +0000 (18:55 +0100)]
s4:librpc/rpc/pyrpc.h: librpc/rpc/dcerpc.h isn't needed anymore

metze

14 years agos4:lib/messaging: pymessaging needs libndr.h
Stefan Metzmacher [Thu, 18 Mar 2010 18:36:50 +0000 (19:36 +0100)]
s4:lib/messaging: pymessaging needs libndr.h

metze

14 years agopidl:Samba4/Python: librpc/rpc/dcerpc.h isn't needed anymore
Stefan Metzmacher [Thu, 18 Mar 2010 17:55:00 +0000 (18:55 +0100)]
pidl:Samba4/Python: librpc/rpc/dcerpc.h isn't needed anymore

metze

14 years agos4:libnet: don't include librpc/rpc/dcerpc.h directly
Stefan Metzmacher [Fri, 19 Mar 2010 12:02:26 +0000 (13:02 +0100)]
s4:libnet: don't include librpc/rpc/dcerpc.h directly

metze

14 years agos3:librpc/rpc: move prototypes to dcerpc.h
Stefan Metzmacher [Fri, 19 Mar 2010 18:16:35 +0000 (19:16 +0100)]
s3:librpc/rpc: move prototypes to dcerpc.h

metze

14 years agos4-smbtorture: use torture_context in samsync test.
Günther Deschner [Tue, 23 Mar 2010 16:28:55 +0000 (17:28 +0100)]
s4-smbtorture: use torture_context in samsync test.

Guenther

14 years agos4-smbtorture: remove trailing whitespace from samsync torture test.
Günther Deschner [Tue, 23 Mar 2010 16:16:23 +0000 (17:16 +0100)]
s4-smbtorture: remove trailing whitespace from samsync torture test.

Guenther

14 years agos4-smbtorture: use torture_context in libnet domain tests as well.
Günther Deschner [Tue, 23 Mar 2010 15:30:05 +0000 (16:30 +0100)]
s4-smbtorture: use torture_context in libnet domain tests as well.

Guenther

14 years agos4:WINREG torture - fix an error (missing "break" in a "switch")
Matthias Dieter Wallnöfer [Tue, 23 Mar 2010 15:43:41 +0000 (16:43 +0100)]
s4:WINREG torture - fix an error (missing "break" in a "switch")

Sorry my fault - I didn't discover that earlier since we had binary data types
support activated in s4.

14 years agos4:registry - "reg_ldb_pack_value" - provide workarounds when the server receives...
Matthias Dieter Wallnöfer [Tue, 23 Mar 2010 15:19:26 +0000 (16:19 +0100)]
s4:registry - "reg_ldb_pack_value" - provide workarounds when the server receives non-standard data.

For now we reset/delete the "data" attribute. Anyway there is the need to find
a better solution (we probably want to change the format and save all data as
we got it like Windows itself does).

These workarounds are needed since for example the Windows 2000 Registry Editor
initialises empty REG_SZ strings with content '\0' and length 1 (not a valid
UTF16 sequence - "convert_string_talloc" breaks). So we simply reset/delete the
"data" attribute which works (no content).

14 years agos4:registry - "LDB backend" - fix indentation
Matthias Dieter Wallnöfer [Tue, 23 Mar 2010 15:17:25 +0000 (16:17 +0100)]
s4:registry - "LDB backend" - fix indentation

14 years agos4-smbtorture: use torture_context for debugging output everywhere in libnet torture...
Günther Deschner [Tue, 23 Mar 2010 14:31:27 +0000 (15:31 +0100)]
s4-smbtorture: use torture_context for debugging output everywhere in libnet torture tests.

Mimir, please check.

Guenther

14 years agos4-smbtorture: remove trailing whitespace in libnet torture tests.
Günther Deschner [Tue, 23 Mar 2010 15:04:30 +0000 (16:04 +0100)]
s4-smbtorture: remove trailing whitespace in libnet torture tests.

Guenther

14 years agos3-builtin: Add missing builtin groups.
Karolin Seeger [Tue, 23 Mar 2010 13:53:49 +0000 (14:53 +0100)]
s3-builtin: Add missing builtin groups.

Karolin

14 years agos3: Re-run make samba3-idl.
Karolin Seeger [Tue, 23 Mar 2010 14:24:25 +0000 (15:24 +0100)]
s3: Re-run make samba3-idl.

Karolin

14 years agosecurity.idl: Add missing builtin groups.
Karolin Seeger [Tue, 23 Mar 2010 13:26:51 +0000 (14:26 +0100)]
security.idl: Add missing builtin groups.

Karolin