kai/samba.git
13 years agoreplace: Try to fix broken sys/capabilites.h on Linux.
Stefan Metzmacher [Wed, 2 Feb 2011 09:40:06 +0000 (10:40 +0100)]
replace: Try to fix broken sys/capabilites.h on Linux.

As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.

Systems like ClearOS 5.2 need linux/types.h very early.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb  3 05:26:12 CET 2011 on sn-devel-104

13 years agoRevert "replace: Try to fix broken sys/capabilites.h on Linux."
Stefan Metzmacher [Thu, 3 Feb 2011 02:32:21 +0000 (03:32 +0100)]
Revert "replace: Try to fix broken sys/capabilites.h on Linux."

This reverts commit c2207e9b2cdec9cd4c32184c668a2c469edb7148.

This still doesn't build for me on ClearOS 5.2.

metze

13 years agos3:libnet_dssync_passdb: remove useless DEBUG statements
Stefan Metzmacher [Thu, 3 Feb 2011 01:11:41 +0000 (02:11 +0100)]
s3:libnet_dssync_passdb: remove useless DEBUG statements

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb  3 04:20:54 CET 2011 on sn-devel-104

13 years agoFix value overflow (one too many 'f's ).
Jeremy Allison [Thu, 3 Feb 2011 01:47:19 +0000 (17:47 -0800)]
Fix value overflow (one too many 'f's ).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Feb  3 03:35:32 CET 2011 on sn-devel-104

13 years agos3:lib: allow_trailing_dollar should only allow '$'
Stefan Metzmacher [Wed, 2 Feb 2011 22:41:17 +0000 (23:41 +0100)]
s3:lib: allow_trailing_dollar should only allow '$'

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb  3 00:33:48 CET 2011 on sn-devel-104

13 years agoFix a couple of missing checks on talloc returns.
Jeremy Allison [Wed, 2 Feb 2011 20:20:18 +0000 (12:20 -0800)]
Fix a couple of missing checks on talloc returns.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  2 22:23:46 CET 2011 on sn-devel-104

13 years agos3-waf: no need to call pidl with --samba3-ndr-client anymore.
Günther Deschner [Wed, 2 Feb 2011 17:51:45 +0000 (18:51 +0100)]
s3-waf: no need to call pidl with --samba3-ndr-client anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 21:38:23 CET 2011 on sn-devel-104

13 years agos3-build: remove --samba3-ndr-client from build_idl.sh script.
Günther Deschner [Wed, 2 Feb 2011 17:53:54 +0000 (18:53 +0100)]
s3-build: remove --samba3-ndr-client from build_idl.sh script.

Guenther

13 years agos3-waf: remove RPCCLI_LSA subsystem.
Günther Deschner [Tue, 18 Jan 2011 17:07:04 +0000 (18:07 +0100)]
s3-waf: remove RPCCLI_LSA subsystem.

Guenther

13 years agos3-build: remove RPCCLI_LSA subsystem.
Günther Deschner [Tue, 18 Jan 2011 17:06:52 +0000 (18:06 +0100)]
s3-build: remove RPCCLI_LSA subsystem.

Guenther

13 years agos3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbindd_rpc.c.
Günther Deschner [Tue, 18 Jan 2011 17:05:49 +0000 (18:05 +0100)]
s3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbindd_rpc.c.

Guenther

13 years agos3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbindd_samr.c.
Günther Deschner [Tue, 18 Jan 2011 17:02:27 +0000 (18:02 +0100)]
s3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbindd_samr.c.

Guenther

13 years agos3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbind_cm.c
Günther Deschner [Tue, 18 Jan 2011 16:54:24 +0000 (17:54 +0100)]
s3-winbind: prefer dcerpc_lsa_X functions in winbindd/winbind_cm.c

Guenther

13 years agos3-epmap: use correct dcerpc client header in dcerpc_ep.c
Günther Deschner [Wed, 2 Feb 2011 17:50:39 +0000 (18:50 +0100)]
s3-epmap: use correct dcerpc client header in dcerpc_ep.c

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 19:50:02 CET 2011 on sn-devel-104

13 years agos3-net: prefer dcerpc_lsa_X functions in "net rpc".
Günther Deschner [Tue, 18 Jan 2011 16:25:02 +0000 (17:25 +0100)]
s3-net: prefer dcerpc_lsa_X functions in "net rpc".

Guenther

13 years agos3-net: prefer dcerpc_lsa_X functions in "net rpc rights".
Günther Deschner [Tue, 18 Jan 2011 15:46:39 +0000 (16:46 +0100)]
s3-net: prefer dcerpc_lsa_X functions in "net rpc rights".

Guenther

13 years agos3-net: use status variable in "net rpc rights".
Günther Deschner [Tue, 18 Jan 2011 15:37:05 +0000 (16:37 +0100)]
s3-net: use status variable in "net rpc rights".

Guenther

13 years agos3-net: prefer dcerpc_lsa_X functions in net_util.c
Günther Deschner [Tue, 18 Jan 2011 15:35:14 +0000 (16:35 +0100)]
s3-net: prefer dcerpc_lsa_X functions in net_util.c

Guenther

13 years agos3-net: prefer dcerpc_lsa_X functions in "net rpc join".
Günther Deschner [Tue, 18 Jan 2011 15:24:12 +0000 (16:24 +0100)]
s3-net: prefer dcerpc_lsa_X functions in "net rpc join".

Guenther

13 years agos3-net: prefer dcerpc_lsa_X functions in "net rpc audit".
Günther Deschner [Tue, 18 Jan 2011 15:21:24 +0000 (16:21 +0100)]
s3-net: prefer dcerpc_lsa_X functions in "net rpc audit".

Guenther

13 years agos3-net: use status variable in "net rpc audit".
Günther Deschner [Tue, 18 Jan 2011 15:14:35 +0000 (16:14 +0100)]
s3-net: use status variable in "net rpc audit".

Guenther

13 years agos3-rpcclient: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 15:29:16 +0000 (16:29 +0100)]
s3-rpcclient: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-rpcclient: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 15:11:46 +0000 (16:11 +0100)]
s3-rpcclient: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-rpcclient: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 15:08:05 +0000 (16:08 +0100)]
s3-rpcclient: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-rpcclient: use status variable.
Günther Deschner [Tue, 18 Jan 2011 14:42:47 +0000 (15:42 +0100)]
s3-rpcclient: use status variable.

Guenther

13 years agos3-libsmb: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 13:59:20 +0000 (14:59 +0100)]
s3-libsmb: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-libnet: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 13:55:48 +0000 (14:55 +0100)]
s3-libnet: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-libnetapi: prefer dcerpc_lsa_X functions.
Günther Deschner [Tue, 18 Jan 2011 13:48:58 +0000 (14:48 +0100)]
s3-libnetapi: prefer dcerpc_lsa_X functions.

Guenther

13 years agos3-waf: remove RPCCLI_SAMR subsystem.
Günther Deschner [Tue, 18 Jan 2011 13:41:22 +0000 (14:41 +0100)]
s3-waf: remove RPCCLI_SAMR subsystem.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 18:54:38 CET 2011 on sn-devel-104

13 years agos3-build: remove RPCCLI_SAMR subsytem.
Günther Deschner [Tue, 18 Jan 2011 13:41:07 +0000 (14:41 +0100)]
s3-build: remove RPCCLI_SAMR subsytem.

Guenther

13 years agos3-net: prefer dcerpc_samr_X functions in net_rpc_join_newstyle.
Günther Deschner [Tue, 18 Jan 2011 13:24:56 +0000 (14:24 +0100)]
s3-net: prefer dcerpc_samr_X functions in net_rpc_join_newstyle.

Guenther

13 years agos3-net: use status variable in net_rpc_join_newstyle.
Günther Deschner [Tue, 18 Jan 2011 13:13:23 +0000 (14:13 +0100)]
s3-net: use status variable in net_rpc_join_newstyle.

Guenther

13 years agos3-waf: fix the build after libnet changes.
Günther Deschner [Wed, 2 Feb 2011 16:01:08 +0000 (17:01 +0100)]
s3-waf: fix the build after libnet changes.

Guenther

13 years agos3: Fix a typo
Volker Lendecke [Wed, 2 Feb 2011 16:24:13 +0000 (17:24 +0100)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  2 18:10:45 CET 2011 on sn-devel-104

13 years agos3-waf: fix the build after epmapper changes.
Günther Deschner [Wed, 2 Feb 2011 15:17:12 +0000 (16:17 +0100)]
s3-waf: fix the build after epmapper changes.

Andreas, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 17:14:40 CET 2011 on sn-devel-104

13 years agos3-dssync-passdb: implement accounts, aliases and groups
Stefan Metzmacher [Wed, 5 Jan 2011 15:56:14 +0000 (16:56 +0100)]
s3-dssync-passdb: implement accounts, aliases and groups

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb  2 16:30:26 CET 2011 on sn-devel-104

13 years agos3-dssync-passdb: fill in passdb_process_objects
Günther Deschner [Fri, 21 Nov 2008 23:35:20 +0000 (00:35 +0100)]
s3-dssync-passdb: fill in passdb_process_objects

Guenther

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3-dssync-passdb: fill in passdb_finish.
Günther Deschner [Fri, 21 Nov 2008 22:59:55 +0000 (23:59 +0100)]
s3-dssync-passdb: fill in passdb_finish.

Guenther

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3-dssync-passdb: fill in passdb_startup.
Günther Deschner [Fri, 21 Nov 2008 22:58:42 +0000 (23:58 +0100)]
s3-dssync-passdb: fill in passdb_startup.

Guenther

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3-dssync-passdb: add basic routines and net function.
Günther Deschner [Fri, 21 Nov 2008 22:48:45 +0000 (23:48 +0100)]
s3-dssync-passdb: add basic routines and net function.

Guenther

13 years agos3:net: make some net_rpc_samsync.c functions static
Stefan Metzmacher [Tue, 4 Jan 2011 12:02:35 +0000 (13:02 +0100)]
s3:net: make some net_rpc_samsync.c functions static

metze

13 years agos3:net: "net rpc vampire" is an alias for "net rpc vampire passdb"
Stefan Metzmacher [Tue, 4 Jan 2011 07:50:20 +0000 (08:50 +0100)]
s3:net: "net rpc vampire" is an alias for "net rpc vampire passdb"

The should use exactly the same code path for both.

metze

13 years agos3:libnet: add 'process_links' to dssync_ops
Stefan Metzmacher [Thu, 13 Jan 2011 16:18:24 +0000 (17:18 +0100)]
s3:libnet: add 'process_links' to dssync_ops

This allows the backend to handle linked attributes.

metze

13 years agos3:groupdb: allow machine accounts as members.
Stefan Metzmacher [Fri, 21 Jan 2011 10:55:10 +0000 (11:55 +0100)]
s3:groupdb: allow machine accounts as members.

metze

13 years agos3:winbindd: catch lookup_names/sids schannel errors over ncacn_ip_tcp (bug #7944)
Stefan Metzmacher [Tue, 1 Feb 2011 17:46:57 +0000 (18:46 +0100)]
s3:winbindd: catch lookup_names/sids schannel errors over ncacn_ip_tcp (bug #7944)

If winbindd connects to a domain controller it doesn't establish the lsa
connection over ncacn_ip_tcp direct. This happens only on demand.

If someone does a 'net rpc testjoin' and then a
wbinfo -n DOMAIN\\administrator, we'll get DCERPC faults with
ACCESS_DENIED/SEC_PKG_ERROR, because winbindd's in memory copy
of the schannel session key is invalidated.

This problem can also happen on other calls, but the
lookup_names/sids calls on thet lsa ncacn_ip_tcp connection
are the most important ones.

The long term fix is to store the schannel client state in a
tdb, but for now it's enough to catch the error and invalidate
the all connections to the dc and reestablish the schannel
session key.

The fix for bug 7568 (commit be396411a4e1f3a174f8a44b6c062d834135e70a)
made this worse, as it assumes winbindd's in memory session key is
always the current one.

metze

13 years agos3: Remove superfluous ;
Günther Deschner [Wed, 2 Feb 2011 11:50:42 +0000 (12:50 +0100)]
s3: Remove superfluous ;

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 15:44:21 CET 2011 on sn-devel-104

13 years agonsswitch: remove unused code from wbinfo.c
Günther Deschner [Wed, 2 Feb 2011 11:43:59 +0000 (12:43 +0100)]
nsswitch: remove unused code from wbinfo.c

Guenther

13 years agos3: Fix a typo
Volker Lendecke [Wed, 2 Feb 2011 12:34:53 +0000 (13:34 +0100)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  2 14:58:52 CET 2011 on sn-devel-104

13 years agos3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_msrpc.c.
Günther Deschner [Tue, 18 Jan 2011 13:06:48 +0000 (14:06 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_msrpc.c.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 14:14:43 CET 2011 on sn-devel-104

13 years agos3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_pam.c.
Günther Deschner [Tue, 18 Jan 2011 12:56:26 +0000 (13:56 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_pam.c.

Guenther

13 years agos3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_rpc.c.
Günther Deschner [Tue, 18 Jan 2011 12:07:18 +0000 (13:07 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_rpc.c.

Guenther

13 years agos3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_samr.c.
Günther Deschner [Tue, 18 Jan 2011 11:43:02 +0000 (12:43 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in winbindd/winbindd_samr.c.

Guenther

13 years agos3-winbind: prefer dcerpc_samr_X functions in invalidate_cm_connection.
Günther Deschner [Tue, 18 Jan 2011 11:42:00 +0000 (12:42 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in invalidate_cm_connection.

Guenther

13 years agos3-winbind: prefer dcerpc_samr_X functions in cm_connect_sam.
Günther Deschner [Tue, 18 Jan 2011 11:40:47 +0000 (12:40 +0100)]
s3-winbind: prefer dcerpc_samr_X functions in cm_connect_sam.

Guenther

13 years agos3-winbind: use status variable name in cm_connect_sam.
Günther Deschner [Tue, 18 Jan 2011 11:25:10 +0000 (12:25 +0100)]
s3-winbind: use status variable name in cm_connect_sam.

Guenther

13 years agos3-selftest: Enable RPC-EPMAPPER tests.
Andreas Schneider [Mon, 4 Oct 2010 16:32:35 +0000 (18:32 +0200)]
s3-selftest: Enable RPC-EPMAPPER tests.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb  2 13:28:41 CET 2011 on sn-devel-104

13 years agos3-smbd: Disable the endpoint mapper by default.
Andreas Schneider [Thu, 20 Jan 2011 14:37:46 +0000 (15:37 +0100)]
s3-smbd: Disable the endpoint mapper by default.

13 years agos3-smbd: Added a function to setup rpc services.
Andreas Schneider [Wed, 5 Jan 2011 16:16:46 +0000 (17:16 +0100)]
s3-smbd: Added a function to setup rpc services.

Move the complete setup of the rpc service to its own file and use
callbacks to register at the endpoint mapper.

13 years agos3-rpc_server: Only allow registering endpoints on priviledged pipes.
Andreas Schneider [Tue, 4 Jan 2011 08:52:57 +0000 (09:52 +0100)]
s3-rpc_server: Only allow registering endpoints on priviledged pipes.

13 years agos3-librpc: Added dcerpc_binding_vector_create function.
Andreas Schneider [Thu, 16 Sep 2010 08:48:33 +0000 (10:48 +0200)]
s3-librpc: Added dcerpc_binding_vector_create function.

13 years agos3-librpc: Added dcerpc register endpoint functions.
Andreas Schneider [Thu, 2 Sep 2010 14:24:26 +0000 (16:24 +0200)]
s3-librpc: Added dcerpc register endpoint functions.

13 years agos3-epmapper: Commented unimplemented functions.
Andreas Schneider [Tue, 18 Jan 2011 08:48:35 +0000 (09:48 +0100)]
s3-epmapper: Commented unimplemented functions.

13 years agos3-epmapper: Improved the epm_Map function.
Andreas Schneider [Tue, 21 Dec 2010 18:38:40 +0000 (19:38 +0100)]
s3-epmapper: Improved the epm_Map function.

13 years agos3-epmapper: Implemented epm_Lookup.
Andreas Schneider [Tue, 5 Oct 2010 09:56:47 +0000 (11:56 +0200)]
s3-epmapper: Implemented epm_Lookup.

13 years agos3-epmapper: Implemented epm_LookupHandleFree.
Andreas Schneider [Mon, 11 Oct 2010 09:42:26 +0000 (11:42 +0200)]
s3-epmapper: Implemented epm_LookupHandleFree.

13 years agos3-epmapper: Added arg to match uuid in build_ep_list().
Andreas Schneider [Mon, 11 Oct 2010 15:22:22 +0000 (17:22 +0200)]
s3-epmapper: Added arg to match uuid in build_ep_list().

13 years agos3-epmapper: Added epm_Map function from Samba4.
Andreas Schneider [Mon, 4 Oct 2010 15:58:33 +0000 (17:58 +0200)]
s3-epmapper: Added epm_Map function from Samba4.

13 years agos3-epmapper: Added epm_Delete function.
Andreas Schneider [Tue, 5 Oct 2010 09:45:41 +0000 (11:45 +0200)]
s3-epmapper: Added epm_Delete function.

13 years agos3-epmapper: Added epm_Insert function.
Andreas Schneider [Thu, 16 Sep 2010 08:50:25 +0000 (10:50 +0200)]
s3-epmapper: Added epm_Insert function.

13 years agos3-epmapper: Added a endpoint mapper skeleton.
Andreas Schneider [Mon, 4 Oct 2010 13:56:49 +0000 (15:56 +0200)]
s3-epmapper: Added a endpoint mapper skeleton.

13 years agos4:torture/rpc/netlogon: add invalid level tests for netr_LogonControl2
Stefan Metzmacher [Tue, 1 Feb 2011 12:04:48 +0000 (13:04 +0100)]
s4:torture/rpc/netlogon: add invalid level tests for netr_LogonControl2

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb  2 12:43:32 CET 2011 on sn-devel-104

13 years agos4:torture/rpc/netlogon: improve comments in test_LogonControl2()
Stefan Metzmacher [Tue, 1 Feb 2011 12:03:49 +0000 (13:03 +0100)]
s4:torture/rpc/netlogon: improve comments in test_LogonControl2()

metze

13 years agos4:torture/rpc/netlogon: test invalid netr_LogonControl() level
Stefan Metzmacher [Tue, 1 Feb 2011 11:44:59 +0000 (12:44 +0100)]
s4:torture/rpc/netlogon: test invalid netr_LogonControl() level

metze

13 years agos4:torture/rpc/netlogon: test invalid LogonSamLogon levels
Stefan Metzmacher [Tue, 1 Feb 2011 07:32:40 +0000 (08:32 +0100)]
s4:torture/rpc/netlogon: test invalid LogonSamLogon levels

This proves that the invalid parameter/info class checks
need to be done before the credential chain checks.

metze

13 years agos4:torture/rpc/netlogon: test validation levels 2 and 3
Stefan Metzmacher [Tue, 1 Feb 2011 09:52:33 +0000 (10:52 +0100)]
s4:torture/rpc/netlogon: test validation levels 2 and 3

metze

13 years agonetlogon.idl: remove pointless union arms of netr_DELTA_UNION
Stefan Metzmacher [Tue, 1 Feb 2011 11:42:45 +0000 (12:42 +0100)]
netlogon.idl: remove pointless union arms of netr_DELTA_UNION

These were just padding, which was needed as we didn't have
'ms_union' support.

metze

13 years agonetlogon.idl: use 'ms_union' as specified in [MS-NRPC]
Stefan Metzmacher [Tue, 1 Feb 2011 07:33:41 +0000 (08:33 +0100)]
netlogon.idl: use 'ms_union' as specified in [MS-NRPC]

metze

13 years agonetlogon.idl: add missing [default]; union arms
Stefan Metzmacher [Tue, 1 Feb 2011 09:28:28 +0000 (10:28 +0100)]
netlogon.idl: add missing [default]; union arms

metze

13 years agos3:rpc_server/netlogon: add _netr_LogonSamLogon_check()
Stefan Metzmacher [Tue, 1 Feb 2011 13:47:05 +0000 (14:47 +0100)]
s3:rpc_server/netlogon: add _netr_LogonSamLogon_check()

We need to check for invalid parameters before we check for
access denied.

metze

13 years agos4:rpc_server/netlogon: add dcesrv_netr_LogonSamLogon_check()
Stefan Metzmacher [Tue, 1 Feb 2011 13:47:05 +0000 (14:47 +0100)]
s4:rpc_server/netlogon: add dcesrv_netr_LogonSamLogon_check()

We need to check for invalid parameters before we check for
access denied.

metze

13 years agos4:rpc_server/netlogon: set *r->out.authoritative = 1 even on INVALID_PARAMETER/INFO_...
Stefan Metzmacher [Tue, 1 Feb 2011 09:27:35 +0000 (10:27 +0100)]
s4:rpc_server/netlogon: set *r->out.authoritative = 1 even on INVALID_PARAMETER/INFO_CLASS

metze

13 years agos4:rpc_server/netlogon: return INVALID_INFO_CLASS for invalid netr_Validation levels
Stefan Metzmacher [Tue, 1 Feb 2011 09:21:05 +0000 (10:21 +0100)]
s4:rpc_server/netlogon: return INVALID_INFO_CLASS for invalid netr_Validation levels

metze

13 years agoreplace: Try to fix broken sys/capabilites.h on Linux.
Andreas Schneider [Wed, 2 Feb 2011 09:40:06 +0000 (10:40 +0100)]
replace: Try to fix broken sys/capabilites.h on Linux.

As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb  2 11:57:04 CET 2011 on sn-devel-104

13 years agos4/samba-tool: Add --sync-forced flag to 'drs replicate' command
Kamen Mazdrashki [Wed, 2 Feb 2011 05:02:06 +0000 (07:02 +0200)]
s4/samba-tool: Add --sync-forced flag to 'drs replicate' command

We are going to need this to trigger replication when
inbound replication is disabled for a given DC

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Feb  2 09:03:22 CET 2011 on sn-devel-104

13 years agos4-dsdb Add tests to ensure we don't break the rootDSE function levels again
Andrew Bartlett [Wed, 2 Feb 2011 03:51:27 +0000 (14:51 +1100)]
s4-dsdb Add tests to ensure we don't break the rootDSE function levels again

This both checks that the levels make sense, and they match what they
should be based on in the DB.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb  2 06:09:53 CET 2011 on sn-devel-104

13 years agos4-dsdb Fix generation of rootDSE domainControllerFunctionality
Andrew Bartlett [Wed, 2 Feb 2011 03:01:35 +0000 (14:01 +1100)]
s4-dsdb Fix generation of rootDSE domainControllerFunctionality

The issue here is that when the samdb calls were removed, this call
relied on going back to the top of the module stack, so as to re-enter
the rootDSE search handler.  It makes more sense to check the @ROOTDSE
record directly, and therefore not to invoke the search() handler
during the init.

Andrew Bartlett

13 years agowintest Return debug info when dcpromo fails from the log
Andrew Bartlett [Wed, 2 Feb 2011 00:48:44 +0000 (11:48 +1100)]
wintest Return debug info when dcpromo fails from the log

13 years agos4-waf Don't install any Samba packages into PYTHONDIR
Andrew Bartlett [Tue, 1 Feb 2011 05:36:10 +0000 (16:36 +1100)]
s4-waf Don't install any Samba packages into PYTHONDIR

This causes the parts of Samba installed into PYTHONARCHDIR to then be
missed in mixed python/C module namespaces.

Andrew Bartlett

13 years agos4-python Remove manipuation of python path from samba module
Andrew Bartlett [Tue, 1 Feb 2011 03:58:11 +0000 (14:58 +1100)]
s4-python Remove manipuation of python path from samba module

This manipulation should be done by top level scripts, otherwise we
won't find samba in the first place (and these can be munged correctly
for the install).

Andrew Bartlett

13 years agos4-python Ensure we add the Samba python path first.
Andrew Bartlett [Tue, 1 Feb 2011 03:43:34 +0000 (14:43 +1100)]
s4-python Ensure we add the Samba python path first.

This exact form of the construction is important, and we match on it
in the installation scripts.

Andrew Bartlett

13 years agowaf: Replace python installation rule to allow PYTHONARCHDIR and PYTHONDIR
Andrew Bartlett [Tue, 1 Feb 2011 03:29:35 +0000 (14:29 +1100)]
waf: Replace python installation rule to allow PYTHONARCHDIR and PYTHONDIR

The old rule could only substitute one part of one line, but we need
to add a second line to handle when PYTHONDIR and PYTHONARCHDIR do not
match.

This also avoids shelling out to sed with a regex, which was difficult
to read.

Andrew Bartlett

13 years agos4-python Remove unused missing.py (used by old build system)
Andrew Bartlett [Tue, 1 Feb 2011 03:28:29 +0000 (14:28 +1100)]
s4-python Remove unused missing.py (used by old build system)

13 years agoRemove unused installmisc.sh script, from old build system
Andrew Bartlett [Tue, 1 Feb 2011 02:45:33 +0000 (13:45 +1100)]
Remove unused installmisc.sh script, from old build system

13 years agos4:heimdal: import lorikeet-heimdal-201101310455 (commit aa88eb1a05c4985cc23fb65fc1ba...
Andrew Bartlett [Mon, 31 Jan 2011 04:59:06 +0000 (15:59 +1100)]
s4:heimdal: import lorikeet-heimdal-201101310455 (commit aa88eb1a05c4985cc23fb65fc1bad75bdce01c1f)

13 years agoBased on a conversation with Volker, refactor some of the oplock code to make it...
Jeremy Allison [Wed, 2 Feb 2011 00:01:57 +0000 (16:01 -0800)]
Based on a conversation with Volker, refactor some of the oplock code to make it comprehensible.

delay_for_oplocks() did 4 things.

1). Validation of existing oplock types.
2). Check for compatibility with batch oplocks (pass 1).
3). Check for compatibility with exclusive oplocks (pass 2).
4). Set the correct oplock type from the requested value.

Refactor into 4 separate functions:

1). find_oplock_types() - does validation of oplock types and
returns pointers to specific values.
2). delay_for_batch_oplocks() - the pass 1 phase above.
3). delay_for_exclusive_oplocks() - the pass 2 phase above
4). grant_fsp_oplock_type() - Set the correct oplock type from the requested value.

Now separated out this code should be much easier to understand
and modify. This also fixes an erroneous SMB_ASSERT which was
hidden by the previous complexity of the single delay_for_oplocks()
code.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  2 01:52:21 CET 2011 on sn-devel-104

13 years agos3-net: prefer dcerpc_samr_X functions in rpc_trustdom_list.
Günther Deschner [Tue, 18 Jan 2011 11:10:02 +0000 (12:10 +0100)]
s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_list.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 00:21:19 CET 2011 on sn-devel-104

13 years agos3-net: prefer dcerpc_samr_X functions in rpc_trustdom_del_internals.
Günther Deschner [Tue, 18 Jan 2011 11:08:02 +0000 (12:08 +0100)]
s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_del_internals.

Guenther

13 years agos3-net: prefer dcerpc_samr_X functions in rpc_trustdom_add_internals.
Günther Deschner [Tue, 18 Jan 2011 11:06:42 +0000 (12:06 +0100)]
s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_add_internals.

Guenther

13 years agos3-net: prefer dcerpc_samr_X functions in rpc_aliaslist_internals.
Günther Deschner [Tue, 18 Jan 2011 11:05:38 +0000 (12:05 +0100)]
s3-net: prefer dcerpc_samr_X functions in rpc_aliaslist_internals.

Guenther

13 years agos3-net: prefer dcerpc_samr_X functions in rpc_fetch_domain_aliases.
Günther Deschner [Tue, 18 Jan 2011 11:04:56 +0000 (12:04 +0100)]
s3-net: prefer dcerpc_samr_X functions in rpc_fetch_domain_aliases.

Guenther