samba.git
13 years agoREADME.Coding: add examples for good and bad comments
Stefan Metzmacher [Sat, 10 Jul 2010 08:06:17 +0000 (10:06 +0200)]
README.Coding: add examples for good and bad comments

metze

13 years agos4:provision: remove --policy-guid and --policy-guid-dc cmdline options
Stefan Metzmacher [Fri, 9 Jul 2010 11:08:07 +0000 (13:08 +0200)]
s4:provision: remove --policy-guid and --policy-guid-dc cmdline options

metze

13 years agos4:provision: also use fixed GUID names of the default group policies for domain...
Stefan Metzmacher [Fri, 25 Jun 2010 11:26:06 +0000 (13:26 +0200)]
s4:provision: also use fixed GUID names of the default group policies for domain and domain controllers in tests

metze

13 years agos4 provision: use correct GUID for default policies
Matthieu Patou [Thu, 8 Jul 2010 20:09:49 +0000 (00:09 +0400)]
s4 provision: use correct GUID for default policies

The value of GUID for policy is not random for default policies, it is
described here ("How Core Group Policy Works"):
http://technet.microsoft.com/en-us/library/cc784268%28WS.10%29.aspx
at paragraph System\Policies Container.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos4 unittests: remove the provision directory before (re)generating
Matthieu Patou [Fri, 9 Jul 2010 16:29:27 +0000 (20:29 +0400)]
s4 unittests: remove the provision directory before (re)generating

13 years agos4 net: Add spn module to list/add/remove spn on objects
Matthieu Patou [Fri, 2 Jul 2010 19:52:33 +0000 (23:52 +0400)]
s4 net: Add spn module to list/add/remove spn on objects

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agotestprogs/blackbox/subunit.sh: initialize failed to 0
Stefan Metzmacher [Sat, 10 Jul 2010 07:25:57 +0000 (09:25 +0200)]
testprogs/blackbox/subunit.sh: initialize failed to 0

This is a short-term workarround for broken scripts,
which use "exit $failed", without initializing failed.

We need a discussion on the mailing list how to handle this
in a nicer way.

This should fix some random failures in the blackbox tests.

metze

13 years agos4:winbind: let WBSRV_SAMBA3_SET_STRING() initialize the whole buffer
Stefan Metzmacher [Sat, 10 Jul 2010 07:09:28 +0000 (09:09 +0200)]
s4:winbind: let WBSRV_SAMBA3_SET_STRING() initialize the whole buffer

We should not send uninitialized bytes to the winbind pipe,
this makes also makes valgrind very unhappy.

metze

13 years agos4:wb_cmd_list_groups: also handle NT_STATUS_NO_MORE_ENTRIES
Stefan Metzmacher [Sat, 10 Jul 2010 07:08:57 +0000 (09:08 +0200)]
s4:wb_cmd_list_groups: also handle NT_STATUS_NO_MORE_ENTRIES

metze

13 years agos4:wb_cmd_list_users: also handle NT_STATUS_NO_MORE_ENTRIES
Stefan Metzmacher [Sat, 10 Jul 2010 07:08:31 +0000 (09:08 +0200)]
s4:wb_cmd_list_users: also handle NT_STATUS_NO_MORE_ENTRIES

metze

13 years agos4:libnet_GroupList: allocate children strings on the correct talloc parent
Stefan Metzmacher [Sat, 10 Jul 2010 07:06:44 +0000 (09:06 +0200)]
s4:libnet_GroupList: allocate children strings on the correct talloc parent

Otherwise the _recv() function won't move the children strings to the
callers memory context and let the callers crash.

metze

13 years agos4:libnet_UserList: allocate children strings on the correct talloc parent
Stefan Metzmacher [Sat, 10 Jul 2010 07:04:43 +0000 (09:04 +0200)]
s4:libnet_UserList: allocate children strings on the correct talloc parent

Otherwise the _recv() function won't move the children strings to the
callers memory context and let the callers crash.

metze

13 years agos4:buildtools: add 'make show_waf_options'
Stefan Metzmacher [Sat, 10 Jul 2010 07:14:15 +0000 (09:14 +0200)]
s4:buildtools: add 'make show_waf_options'

metze

13 years agos4:buildtools: make it possible to use advanced test options via the make waf wrapper
Stefan Metzmacher [Sat, 10 Jul 2010 07:10:52 +0000 (09:10 +0200)]
s4:buildtools: make it possible to use advanced test options via the make waf wrapper

You can to do thinks like this now:
make test TEST_OPTIONS="--valgrind-server" TESTS=wbinfo

metze

13 years agos3: Cleanup of the initial SMB2 counters patch.
Ira Cooper [Thu, 8 Jul 2010 20:30:12 +0000 (16:30 -0400)]
s3: Cleanup of the initial SMB2 counters patch.

This reorganizes smbd_smb2_request_dispatch to have a central exit point,
and use the normal profiling macros.

Signed-off-by: Jeremy Allison <jra@samba.org>
13 years agos4:drepl_notify: hide some bugs from the make test output
Stefan Metzmacher [Fri, 9 Jul 2010 14:27:34 +0000 (16:27 +0200)]
s4:drepl_notify: hide some bugs from the make test output

It's useless to get messages like this every few seconds:

dreplsrv_notify: Failed to send DsReplicaSync to
edbf4745-2966-49a7-8653-99200f1c9430._msdcs.samba2003.example.com for
CN=Configuration,DC=samba2003,DC=example,DC=com -
NT_STATUS_OBJECT_NAME_NOT_FOUND : WERR_BADFILE

We have a non bug regarding non-linked DN attributes
and changes of the target DN.

metze

13 years agos4:drsuapi: don't return all linked attributes at the same time
Stefan Metzmacher [Fri, 9 Jul 2010 10:52:11 +0000 (12:52 +0200)]
s4:drsuapi: don't return all linked attributes at the same time

Windows gives them in chunks, but I don't know the correct
rule to calculate the chunk size.

For now I'll use 1500 as the max size.

Windows isn't happy when it gets ~ 100000 linked attributes in one
response. It corrupts its directory index and later moves some objects
to the LostAndFound folder.

metze

13 years agos3-build: Add a gdbtestenv environment for Samba3.
Andreas Schneider [Fri, 9 Jul 2010 13:42:34 +0000 (15:42 +0200)]
s3-build: Add a gdbtestenv environment for Samba3.

This will open 3 xterms; smbd with gdb, winbind with gdb and a window to
run client commands.

Example: make gdbtestenv SMBD_OPTIONS="-d2"

13 years agos4:selftest: run RPC-SAMR-LARGE-DC against the vampire_dc to test the rid alloc code
Stefan Metzmacher [Fri, 9 Jul 2010 07:24:30 +0000 (09:24 +0200)]
s4:selftest: run RPC-SAMR-LARGE-DC against the vampire_dc to test the rid alloc code

metze

13 years agoselftest/Samba4: set dreplsrv:periodic_startup_interval = 0
Stefan Metzmacher [Fri, 9 Jul 2010 07:23:04 +0000 (09:23 +0200)]
selftest/Samba4: set dreplsrv:periodic_startup_interval = 0

metze

13 years agos4:dsdb/repl: expose drsuapi_DsExtendedError to the caller (e.g. the ridalloc client)
Stefan Metzmacher [Thu, 8 Jul 2010 14:20:11 +0000 (16:20 +0200)]
s4:dsdb/repl: expose drsuapi_DsExtendedError to the caller (e.g. the ridalloc client)

metze

13 years agos4:drepl_out_helpers: don't return NT_STATUS_OK, if an extended operation doesn't...
Stefan Metzmacher [Thu, 8 Jul 2010 14:18:21 +0000 (16:18 +0200)]
s4:drepl_out_helpers: don't return NT_STATUS_OK, if an extended operation doesn't return success

metze

13 years agos4:drepl_ridalloc: only ask the rid master for a new rid pool if we need to.
Stefan Metzmacher [Thu, 8 Jul 2010 13:38:16 +0000 (15:38 +0200)]
s4:drepl_ridalloc: only ask the rid master for a new rid pool if we need to.

if we are at least half-exhausted then ask for a new pool.

This fixes a bug where we're sending unintialized alloc_pool
variable as exop->fsmo_info to the rid master and get back
DRSUAPI_EXOP_ERR_PARAM_ERROR.

metze

13 years agos4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_allocate_rid_...
Stefan Metzmacher [Thu, 8 Jul 2010 13:14:59 +0000 (15:14 +0200)]
s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_allocate_rid_pool_fsmo()

metze

13 years agos4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_allocate_rid()
Stefan Metzmacher [Thu, 8 Jul 2010 19:38:28 +0000 (21:38 +0200)]
s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_allocate_rid()

metze

13 years agos4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_create_rid_se...
Stefan Metzmacher [Thu, 8 Jul 2010 13:10:07 +0000 (15:10 +0200)]
s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ridalloc_create_rid_set_ntds()

metze

13 years agos4:dsdb:ridalloc: add ridalloc_ridset_values infrastructure
Stefan Metzmacher [Thu, 8 Jul 2010 10:32:33 +0000 (12:32 +0200)]
s4:dsdb:ridalloc: add ridalloc_ridset_values infrastructure

metze

13 years agos4:dsdb:ridalloc: use dsdb_module_constrainted_update_uint64() to update rIDAvailablePool
Stefan Metzmacher [Thu, 8 Jul 2010 10:34:15 +0000 (12:34 +0200)]
s4:dsdb:ridalloc: use dsdb_module_constrainted_update_uint64() to update rIDAvailablePool

metze

13 years agos4:dsdb:ridalloc.c: fix C++ warning
Stefan Metzmacher [Thu, 8 Jul 2010 10:06:39 +0000 (12:06 +0200)]
s4:dsdb:ridalloc.c: fix C++ warning

metze

13 years agos4:dsdb: add dsdb_module_constrainted_update_uint32/64() wrapper functions
Stefan Metzmacher [Thu, 8 Jul 2010 10:02:42 +0000 (12:02 +0200)]
s4:dsdb: add dsdb_module_constrainted_update_uint32/64() wrapper functions

metze

13 years agos4:dsdb: add dsdb_msg_constrainted_update_uint32/64() wrapper functions
Stefan Metzmacher [Thu, 8 Jul 2010 10:01:44 +0000 (12:01 +0200)]
s4:dsdb: add dsdb_msg_constrainted_update_uint32/64() wrapper functions

metze

13 years agos4:dsdb: add dsdb_module_constrainted_update_int32/64() functions
Stefan Metzmacher [Thu, 8 Jul 2010 09:32:59 +0000 (11:32 +0200)]
s4:dsdb: add dsdb_module_constrainted_update_int32/64() functions

metze

13 years agos4:dsdb: add dsdb_msg_constrainted_update_int32/64() functions
Stefan Metzmacher [Thu, 8 Jul 2010 09:32:26 +0000 (11:32 +0200)]
s4:dsdb: add dsdb_msg_constrainted_update_int32/64() functions

metze

13 years agoldb:common/ldb_dn.c - "ldb_dn_get_parent" - no need to manipulate the real DN
Matthias Dieter Wallnöfer [Thu, 8 Jul 2010 20:04:23 +0000 (22:04 +0200)]
ldb:common/ldb_dn.c - "ldb_dn_get_parent" - no need to manipulate the real DN

Since the parent DN is a duplication of the passed DN parameter.

13 years agos3: Optimize the write cache for sequential writes
Volker Lendecke [Wed, 7 Jul 2010 19:50:23 +0000 (21:50 +0200)]
s3: Optimize the write cache for sequential writes

In case of the one-byte allocating writes we don't work work optimally because
we start the write cache at the current offset. This patch tries to avoid this
case.

13 years agos4: fix warning: unused variable ‘i’
Kamen Mazdrashki [Thu, 8 Jul 2010 18:04:13 +0000 (21:04 +0300)]
s4: fix warning: unused variable ‘i’

13 years agos3-dcerpc: Use dcerpc_pull_dcerpc_auth in api_pipe_bind_auth3()
Simo Sorce [Thu, 8 Jul 2010 22:38:25 +0000 (18:38 -0400)]
s3-dcerpc: Use dcerpc_pull_dcerpc_auth in api_pipe_bind_auth3()

13 years agos3-dcerpc: Use dcerpc_auth in api_pipe_bind_req()
Simo Sorce [Thu, 8 Jul 2010 20:02:08 +0000 (16:02 -0400)]
s3-dcerpc: Use dcerpc_auth in api_pipe_bind_req()

13 years agos3-dcerpc: make dcerpc_pull_dcerpc_auth() public
Simo Sorce [Thu, 8 Jul 2010 19:18:08 +0000 (15:18 -0400)]
s3-dcerpc: make dcerpc_pull_dcerpc_auth() public

13 years agos3-dcerpc: make dceprc_push_dcerpc_auth public
Simo Sorce [Thu, 8 Jul 2010 15:36:03 +0000 (11:36 -0400)]
s3-dcerpc: make dceprc_push_dcerpc_auth public

13 years agos3-dcerpc: use dcerpc_pull_dcerpc_auth() in rpc_finish_spnego_ntlmssp_bind_send()
Simo Sorce [Thu, 8 Jul 2010 19:16:32 +0000 (15:16 -0400)]
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in rpc_finish_spnego_ntlmssp_bind_send()

13 years agos3-dcerpc: use dcerpc_push_dcerpc_auth in add_schannel_auth_footer()
Simo Sorce [Thu, 8 Jul 2010 19:04:40 +0000 (15:04 -0400)]
s3-dcerpc: use dcerpc_push_dcerpc_auth in add_schannel_auth_footer()

13 years agos3-dcerpc: use dcerpc_push_dcerpc_auth() in add_ntlmssp_auth_footer()
Simo Sorce [Thu, 8 Jul 2010 18:55:20 +0000 (14:55 -0400)]
s3-dcerpc: use dcerpc_push_dcerpc_auth() in add_ntlmssp_auth_footer()

13 years agos3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_schannel()
Simo Sorce [Thu, 8 Jul 2010 18:00:54 +0000 (14:00 -0400)]
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_schannel()

13 years agos3-dcerpc: use dcerpc_push_ncacn_packet() in create_rpc_bind_auth3()
Simo Sorce [Thu, 8 Jul 2010 17:30:50 +0000 (13:30 -0400)]
s3-dcerpc: use dcerpc_push_ncacn_packet() in create_rpc_bind_auth3()

13 years agoChange one more use of "struct rpc_hdr_info" -> "struct ncacn_packet_header"
Jeremy Allison [Thu, 8 Jul 2010 22:18:30 +0000 (15:18 -0700)]
Change one more use of "struct rpc_hdr_info" -> "struct ncacn_packet_header"

Jeremy

13 years agos4:acl LDB module - password attributes - check also the "dBCSPwd" attribute
Matthias Dieter Wallnöfer [Thu, 8 Jul 2010 12:51:49 +0000 (14:51 +0200)]
s4:acl LDB module - password attributes - check also the "dBCSPwd" attribute

It's also a possible password change/set attribute candidate.

13 years agos4:acl LDB module - move a "mem_ctx" creation to the place where it is actually checked
Matthias Dieter Wallnöfer [Wed, 7 Jul 2010 16:01:34 +0000 (18:01 +0200)]
s4:acl LDB module - move a "mem_ctx" creation to the place where it is actually checked

Memory allocations and their result checks should be as tight as possible.

13 years agos4:drsuapi RPC server - "result_site_name" - fix variable denomination
Matthias Dieter Wallnöfer [Wed, 7 Jul 2010 17:03:13 +0000 (19:03 +0200)]
s4:drsuapi RPC server - "result_site_name" - fix variable denomination

13 years agos4:samdb.py - "setpassword" - performs password sets using the "unicodePwd" attribute
Matthias Dieter Wallnöfer [Thu, 8 Jul 2010 07:36:30 +0000 (09:36 +0200)]
s4:samdb.py - "setpassword" - performs password sets using the "unicodePwd" attribute

This does work per default on each AD-compatible DC. "userPassword" support on
Windows however has to be activated explicitly by the "dSHeuristics".

13 years agos4 upgradeprovision: For SID > 1000 do not copy them, let the system regenerated...
Matthieu Patou [Mon, 5 Jul 2010 19:41:13 +0000 (23:41 +0400)]
s4 upgradeprovision: For SID > 1000 do not copy them, let the system regenerated a new one

This should avoid colliion with newly added objects that use the same
SID as existing users in the upgraded provision.

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
13 years agos3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.
Günther Deschner [Fri, 2 Jul 2010 08:17:44 +0000 (10:17 +0200)]
s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.

Otherwise a lot of information that is usually generated in the ndr_push remains
in an uninitialized state.

Guenther

13 years agos4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.
Günther Deschner [Thu, 8 Jul 2010 13:58:12 +0000 (15:58 +0200)]
s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.

Guenther

13 years agoAdded a test to prove by default users can change each other's pass if the old is...
Nadezhda Ivanova [Thu, 8 Jul 2010 12:38:16 +0000 (15:38 +0300)]
Added a test to prove by default users can change each other's pass if the old is known

13 years agos3: Slightly simplify make_server_info_pw
Volker Lendecke [Thu, 8 Jul 2010 11:32:48 +0000 (13:32 +0200)]
s3: Slightly simplify make_server_info_pw

13 years agos3-rpcclient: add another usage display to sign and seal commands.
Günther Deschner [Thu, 8 Jul 2010 09:46:48 +0000 (11:46 +0200)]
s3-rpcclient: add another usage display to sign and seal commands.

Guenther

13 years agoRevert "s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS."
Günther Deschner [Thu, 8 Jul 2010 08:59:16 +0000 (10:59 +0200)]
Revert "s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS."

This reverts commit 3587bb63e21c3f033a17bb493dceb64b05fe85d6.

13 years agos4-net: the net binary depends on the auth subsystem
Andrew Tridgell [Thu, 8 Jul 2010 06:42:39 +0000 (16:42 +1000)]
s4-net: the net binary depends on the auth subsystem

This helps with the OpenChange build

13 years agos3:dcerpc Remove unused structure and functions
Simo Sorce [Thu, 8 Jul 2010 05:48:05 +0000 (01:48 -0400)]
s3:dcerpc Remove unused structure and functions

13 years agos3:dcerpc Use prs_parse_dcerpc_bind
Simo Sorce [Thu, 8 Jul 2010 05:14:16 +0000 (01:14 -0400)]
s3:dcerpc Use prs_parse_dcerpc_bind

13 years agos3:dcerpc Add prs_parse_dcerpc_bind
Simo Sorce [Thu, 8 Jul 2010 05:13:57 +0000 (01:13 -0400)]
s3:dcerpc Add prs_parse_dcerpc_bind

13 years agos3:rpc user idl define dcerpc_ctx_list instead of custom RPC_CONTEXT
Simo Sorce [Wed, 7 Jul 2010 21:14:27 +0000 (17:14 -0400)]
s3:rpc user idl define dcerpc_ctx_list instead of custom RPC_CONTEXT

13 years agos3-dcerpc: use dcerpc_pull_ncacn_packet() for rpc_pipe_bind_step_one_done().
Günther Deschner [Wed, 1 Apr 2009 23:05:55 +0000 (01:05 +0200)]
s3-dcerpc: use dcerpc_pull_ncacn_packet() for rpc_pipe_bind_step_one_done().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_push_ncacn_packet() in push_next_frag().
Günther Deschner [Wed, 1 Apr 2009 22:35:19 +0000 (00:35 +0200)]
s3-dcerpc: use dcerpc_push_ncacn_packet() in push_next_frag().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_pull_ncacn_packet() in cli_pipe_validate_current_pdu().
Günther Deschner [Wed, 1 Apr 2009 22:34:42 +0000 (00:34 +0200)]
s3-dcerpc: use dcerpc_pull_ncacn_packet() in cli_pipe_validate_current_pdu().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_ntlmssp().
Günther Deschner [Wed, 1 Apr 2009 22:33:52 +0000 (00:33 +0200)]
s3-dcerpc: use dcerpc_pull_dcerpc_auth() in cli_pipe_verify_ntlmssp().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_pull_dcerpc_auth().
Günther Deschner [Wed, 1 Apr 2009 21:39:20 +0000 (23:39 +0200)]
s3-dcerpc: add dcerpc_pull_dcerpc_auth().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use struct ncacn_packet_header instead of struct rpc_hdr_info.
Günther Deschner [Wed, 1 Apr 2009 21:18:25 +0000 (23:18 +0200)]
s3-dcerpc: use struct ncacn_packet_header instead of struct rpc_hdr_info.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_pull_ncacn_packet_header().
Günther Deschner [Wed, 1 Apr 2009 21:07:03 +0000 (23:07 +0200)]
s3-dcerpc: add dcerpc_pull_ncacn_packet_header().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agodcerpc: add ncacn_packet_header to IDL.
Günther Deschner [Wed, 1 Apr 2009 21:04:23 +0000 (23:04 +0200)]
dcerpc: add ncacn_packet_header to IDL.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_push_dcerpc_auth() for all authenticated binds.
Günther Deschner [Tue, 24 Mar 2009 22:56:42 +0000 (23:56 +0100)]
s3-dcerpc: use dcerpc_push_dcerpc_auth() for all authenticated binds.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_push_schannel_bind().
Günther Deschner [Tue, 24 Mar 2009 22:50:32 +0000 (23:50 +0100)]
s3-dcerpc: add dcerpc_push_schannel_bind().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_push_dcerpc_auth().
Günther Deschner [Tue, 24 Mar 2009 18:09:29 +0000 (19:09 +0100)]
s3-dcerpc: add dcerpc_push_dcerpc_auth().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: remove unused init_rpc_hdr_rb and init_rpc_context.
Günther Deschner [Tue, 24 Mar 2009 19:29:59 +0000 (20:29 +0100)]
s3-dcerpc: remove unused init_rpc_hdr_rb and init_rpc_context.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_push_ncacn_packet() for create_bind_or_alt_ctx_internal().
Günther Deschner [Tue, 24 Mar 2009 17:21:18 +0000 (18:21 +0100)]
s3-dcerpc: use dcerpc_push_ncacn_packet() for create_bind_or_alt_ctx_internal().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: remove unused smb_io_rpc_hdr_fault.
Günther Deschner [Mon, 23 Mar 2009 11:45:09 +0000 (12:45 +0100)]
s3-dcerpc: remove unused smb_io_rpc_hdr_fault.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_pull_ncacn_packet() for pulling a RPC fault pdu.
Günther Deschner [Mon, 23 Mar 2009 11:00:40 +0000 (12:00 +0100)]
s3-dcerpc: use dcerpc_pull_ncacn_packet() for pulling a RPC fault pdu.

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_pull_ncacn_packet().
Günther Deschner [Mon, 23 Mar 2009 11:00:12 +0000 (12:00 +0100)]
s3-dcerpc: add dcerpc_pull_ncacn_packet().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_push_ncacn_packet() for setup_fault_pdu().
Günther Deschner [Mon, 23 Mar 2009 10:05:21 +0000 (11:05 +0100)]
s3-dcerpc: use dcerpc_push_ncacn_packet() for setup_fault_pdu().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: use dcerpc_push_ncacn_packet() for setup_bind_nak().
Günther Deschner [Fri, 20 Mar 2009 23:11:15 +0000 (00:11 +0100)]
s3-dcerpc: use dcerpc_push_ncacn_packet() for setup_bind_nak().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3-dcerpc: add dcerpc_push_ncacn_packet().
Günther Deschner [Mon, 23 Mar 2009 10:04:34 +0000 (11:04 +0100)]
s3-dcerpc: add dcerpc_push_ncacn_packet().

Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
13 years agos3:winbindd_samr Do not use static contexts
Simo Sorce [Thu, 8 Jul 2010 03:43:47 +0000 (23:43 -0400)]
s3:winbindd_samr Do not use static contexts

It is a very bad idea to use a static context within the open function.
Use the memory hierarchy to keep track of a client connection.

13 years agos3: Add SMB2 performance counters.
Ira Cooper [Thu, 1 Jul 2010 21:51:41 +0000 (17:51 -0400)]
s3: Add SMB2 performance counters.

A performance counter was added for every base type of SMB2 op.

13 years agos4-dsdb/util: Reorder DSDB_FLAG_* checks
Kamen Mazdrashki [Tue, 6 Jul 2010 01:06:23 +0000 (04:06 +0300)]
s4-dsdb/util: Reorder DSDB_FLAG_* checks

On good thing about having more clear function interfaces
(and forcing callers to specify clearly what they want)
is that now I can execute following search:
git grep DSDB_FLAG_NEXT_MODULE | wc -l

This showed that DSDB_FLAG_NEXT_MODULE flag is about 6 times
more frequently used than DSDB_FLAG_OWN_MODULE.
So this should reduce branch prediction by six times
in this part of the code, right :)

13 years agos4-dsdb: Implement module switching in dsdb_module_search_dn()
Kamen Mazdrashki [Tue, 6 Jul 2010 00:31:17 +0000 (03:31 +0300)]
s4-dsdb: Implement module switching in dsdb_module_search_dn()

This allows caller to choose from where to start DN search

13 years agos4-source4/dsdb/samdb/ldb_modules/acl.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:26:03 +0000 (03:26 +0300)]
s4-source4/dsdb/samdb/ldb_modules/acl.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/linked_attributes.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:25:41 +0000 (03:25 +0300)]
s4-source4/dsdb/samdb/ldb_modules/linked_attributes.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/naming_fsmo.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:25:28 +0000 (03:25 +0300)]
s4-source4/dsdb/samdb/ldb_modules/naming_fsmo.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/operational.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:25:11 +0000 (03:25 +0300)]
s4-source4/dsdb/samdb/ldb_modules/operational.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/partition_init.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:24:59 +0000 (03:24 +0300)]
s4-source4/dsdb/samdb/ldb_modules/partition_init.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/pdc_fsmo.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:24:15 +0000 (03:24 +0300)]
s4-source4/dsdb/samdb/ldb_modules/pdc_fsmo.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/repl_meta_data.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:23:58 +0000 (03:23 +0300)]
s4-source4/dsdb/samdb/ldb_modules/repl_meta_data.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/ridalloc.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:23:43 +0000 (03:23 +0300)]
s4-source4/dsdb/samdb/ldb_modules/ridalloc.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/samba_dsdb.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:23:21 +0000 (03:23 +0300)]
s4-source4/dsdb/samdb/ldb_modules/samba_dsdb.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/schema_load.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:22:28 +0000 (03:22 +0300)]
s4-source4/dsdb/samdb/ldb_modules/schema_load.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos4-source4/dsdb/samdb/ldb_modules/util.c Use DSDB_FLAG_NEXT_MODULE flag
Kamen Mazdrashki [Tue, 6 Jul 2010 00:22:09 +0000 (03:22 +0300)]
s4-source4/dsdb/samdb/ldb_modules/util.c Use DSDB_FLAG_NEXT_MODULE flag

13 years agos3-winbindd: Fix child logfile handling which broke with c67cff0372.
Günther Deschner [Wed, 7 Jul 2010 15:01:09 +0000 (17:01 +0200)]
s3-winbindd: Fix child logfile handling which broke with c67cff0372.

Andreas, please check.

Guenther

13 years agos3-winbindd: route samr chgpwd ops for own domain over internal samr pipe as well.
Günther Deschner [Tue, 6 Jul 2010 15:02:33 +0000 (17:02 +0200)]
s3-winbindd: route samr chgpwd ops for own domain over internal samr pipe as well.

Guenther

13 years agos3-rpc_misc: remove unused UNISTR.
Günther Deschner [Wed, 7 Jul 2010 10:40:41 +0000 (12:40 +0200)]
s3-rpc_misc: remove unused UNISTR.

Guenther

13 years agos3-rpc_parse: remove finally unused prs_unistr().
Günther Deschner [Wed, 7 Jul 2010 10:39:46 +0000 (12:39 +0200)]
s3-rpc_parse: remove finally unused prs_unistr().

Guenther