ira/wip.git
14 years agopidl: Remove unnecessary _GNU_SOURCE define.
Jelmer Vernooij [Sat, 12 Sep 2009 23:31:13 +0000 (01:31 +0200)]
pidl: Remove unnecessary _GNU_SOURCE define.

14 years agos4:sites & services - Adds Intersite transport containers
Matthieu Patou [Sat, 12 Sep 2009 11:36:53 +0000 (15:36 +0400)]
s4:sites & services - Adds Intersite transport containers

This patch brings up those subcontainers and fixes up the "systemFlags" on the
"Subnet" entry.

14 years agos4:group policies - the default group policy objects are all system-critical
Matthias Dieter Wallnöfer [Sat, 12 Sep 2009 09:13:36 +0000 (11:13 +0200)]
s4:group policies - the default group policy objects are all system-critical

14 years agos4:group policies - upcase directory names of default group policies
Matthias Dieter Wallnöfer [Sat, 12 Sep 2009 08:58:56 +0000 (10:58 +0200)]
s4:group policies - upcase directory names of default group policies

The directory names (MACHINE, USER) are upcased to help locating the default
group policies under the SYSVOL dir (the additional ones have only the first
letter upcased of those directory names).

14 years agos4:repl_meta_data: increment the attribute version with each change
Stefan Metzmacher [Sat, 12 Sep 2009 07:32:24 +0000 (09:32 +0200)]
s4:repl_meta_data: increment the attribute version with each change

metze

14 years agos4-scripts: allow setup_dns.sh to take a PRIVATEDIR
Andrew Tridgell [Sat, 12 Sep 2009 06:08:07 +0000 (16:08 +1000)]
s4-scripts: allow setup_dns.sh to take a PRIVATEDIR

14 years agos4-samdb: make it possible to ask for the sequence number of a partition
Andrew Tridgell [Sat, 12 Sep 2009 05:24:31 +0000 (15:24 +1000)]
s4-samdb: make it possible to ask for the sequence number of a partition

The partition module normally makes the sequence number extended op
operate across all partitions. It will be useful in the repl task to
be able to ask for the sequence number of one partition

14 years agos4-drs: change debug level
Andrew Tridgell [Sat, 12 Sep 2009 05:23:30 +0000 (15:23 +1000)]
s4-drs: change debug level

It's useful seeing the object count without as much detail

14 years agos4-repl: fixed memory leaks
Andrew Tridgell [Sat, 12 Sep 2009 05:22:26 +0000 (15:22 +1000)]
s4-repl: fixed memory leaks

These memory leaks were mostly caused by the fact that
refresh_partitions is now called periodically

14 years agos4-ndr: fixed memory leaks in ndr_pull_*_blob()
Andrew Tridgell [Sat, 12 Sep 2009 05:21:33 +0000 (15:21 +1000)]
s4-ndr: fixed memory leaks in ndr_pull_*_blob()

We needed to free the ndr structures, both on error and normal return

14 years agos4-drs: also fill in tmp_highest_usn
Andrew Tridgell [Sat, 12 Sep 2009 03:06:32 +0000 (13:06 +1000)]
s4-drs: also fill in tmp_highest_usn

Without this the client will not update its repsFrom highest_usn values

14 years agos4-drs: return objects with uSN > highest_usn
Andrew Tridgell [Sat, 12 Sep 2009 02:42:40 +0000 (12:42 +1000)]
s4-drs: return objects with uSN > highest_usn

When the client tells us the highest_usn they have is N, then we want
to send them objects with usn>N, not>=N, as otherwise we end up
sending them the same object (the one with the highest uSN) again and
again.

14 years agos4-drs: spelling fix, and simpler search expression
Andrew Tridgell [Sat, 12 Sep 2009 02:08:34 +0000 (12:08 +1000)]
s4-drs: spelling fix, and simpler search expression

uSNChanged>=N is good enough, and offers a possibility of a simple
optimisation where the partition module could look for that expression
and check the partitions sequence number, then avoid searching a
partition that doesn't have any records with a larger uSN.

14 years agos4-repl: don't be too eager to allocate new sequence numbers
Andrew Tridgell [Sat, 12 Sep 2009 02:07:06 +0000 (12:07 +1000)]
s4-repl: don't be too eager to allocate new sequence numbers

we only need to allocate a new sequence number when
replPropertyMetaData is changing or being created on an object

14 years agos4-samdb: internal s4 ldb modules should be GPL not LGPL
Andrew Tridgell [Sat, 12 Sep 2009 01:21:21 +0000 (11:21 +1000)]
s4-samdb: internal s4 ldb modules should be GPL not LGPL

I think these modules ended up LGPL because someone based the module
on an existing LGPL module in the core ldb, and it spread from
there. Certainly there is no reason for the ldb modules that are not
distributed as part of ldb to be LGPL.

14 years agos4-drs: fixed the cursor generation to always be filled in
Andrew Tridgell [Sat, 12 Sep 2009 01:14:29 +0000 (11:14 +1000)]
s4-drs: fixed the cursor generation to always be filled in

We were relying on the uSNChanged>=n search always finding the DN of
the root of the partition, but this now doesn't happen very often as
we are now restricting when we change uSNChanged. This means we need
to always load the replUpToDateVector attribute from the NC root and
use it to populate the cursors in the return.

14 years agos4-repl: use common functions to simplify updaterefs.c
Andrew Tridgell [Sat, 12 Sep 2009 01:12:05 +0000 (11:12 +1000)]
s4-repl: use common functions to simplify updaterefs.c

We now have dsdb_loadreps() and dsdb_savereps()

14 years agos4-repl: we should only update uSNChanged when replication data changes
Andrew Tridgell [Sat, 12 Sep 2009 01:10:19 +0000 (11:10 +1000)]
s4-repl: we should only update uSNChanged when replication data changes

When changing non-replicated attributes we should not update the
uSNChanged attribute on the record, otherwise the DRS server will
think this record needs replicating.

14 years agos4-kcc: we should only add to the repsFrom if it doesn't already exist
Andrew Tridgell [Sat, 12 Sep 2009 01:09:10 +0000 (11:09 +1000)]
s4-kcc: we should only add to the repsFrom if it doesn't already exist

If we already have a repsFrom for a particular DC and naming context
then we should not overwrite it, as it contains info on what
replication we've already done

14 years agoFix up-to-dateness vector creation.
Anatoliy Atanasov [Thu, 10 Sep 2009 09:41:48 +0000 (12:41 +0300)]
Fix up-to-dateness vector creation.

14 years agorepl_meta_data: Fix include path when building with standalone ldb.
Jelmer Vernooij [Fri, 11 Sep 2009 22:49:51 +0000 (00:49 +0200)]
repl_meta_data: Fix include path when building with standalone ldb.

14 years agoldb: Remove references to operational module init function.
Jelmer Vernooij [Fri, 11 Sep 2009 21:49:57 +0000 (23:49 +0200)]
ldb: Remove references to operational module init function.

This module is now part of Samba 4's dsdb subsystem rather than
standalone ldb.

14 years agoldb: Support running testsuite without installing first.
Jelmer Vernooij [Fri, 11 Sep 2009 21:49:36 +0000 (23:49 +0200)]
ldb: Support running testsuite without installing first.

14 years agos4:group policies - add the domain controller group policy
Matthias Dieter Wallnöfer [Fri, 11 Sep 2009 20:41:58 +0000 (22:41 +0200)]
s4:group policies - add the domain controller group policy

This patches fixes the last difference between s4 and Windows Server regarding
group policy objects: we hadn't the domain controller policy.

- Adds the domain controller policy as it is found in the "original" AD
- Adds also the right version number in the GPT.INI file for the domain group
  policy (was missing)

14 years agonetlogon.idl - rerun "make idl"
Matthias Dieter Wallnöfer [Fri, 11 Sep 2009 20:03:45 +0000 (22:03 +0200)]
netlogon.idl - rerun "make idl"

14 years agos4: Fix parsing of CSDVersion: treat this field as an string null terminated.
Matthieu Patou [Fri, 11 Sep 2009 15:57:04 +0000 (19:57 +0400)]
s4: Fix parsing of CSDVersion: treat this field as an string null terminated.

 CDSVersion field contains one utf16 string and then garbage which pertubated the parsing.
 We use subcontext to clearly define the size of the whole blob and then let the parser to find
 the real length of the string.
 This is a fix for bug 6706, many thanks to Gunter for the PIDL guidelines.

14 years agos3:dbwrap_ctdb: set dmaster in ctdb_transaction_store() also when updating an existin...
Michael Adam [Fri, 11 Sep 2009 11:23:34 +0000 (13:23 +0200)]
s3:dbwrap_ctdb: set dmaster in ctdb_transaction_store() also when updating an existing record

not only when creating a record.

This matches commit e9194a130327d6b05a8ab90bd976475b0e93b06d from ctdb-master.

Michael

14 years agotalloc:mksyms: allow characters after closing functions parenthesis.
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
talloc:mksyms: allow characters after closing functions parenthesis.

Michael

14 years agotalloc:mksyms: allow double pointer return value of functions.
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
talloc:mksyms: allow double pointer return value of functions.

Michael

14 years agos3:mksyms: fix spelling...
Michael Adam [Fri, 11 Sep 2009 13:36:57 +0000 (15:36 +0200)]
s3:mksyms: fix spelling...

Michael

14 years agotevent:mksyms: fix spelling...
Michael Adam [Fri, 11 Sep 2009 13:36:34 +0000 (15:36 +0200)]
tevent:mksyms: fix spelling...

Michael

14 years agotalloc:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args
Michael Adam [Fri, 11 Sep 2009 13:20:34 +0000 (15:20 +0200)]
talloc:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args

Michael

14 years agotalloc:mksigs: normalize bool -> _Bool
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
talloc:mksigs: normalize bool -> _Bool

Michael

14 years agotalloc:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
talloc:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses

Michael

14 years agotalloc:mksigs: correctly ignode multiline function typedefs
Michael Adam [Fri, 11 Sep 2009 13:01:46 +0000 (15:01 +0200)]
talloc:mksigs: correctly ignode multiline function typedefs

by first concatenating multilint parentheses and removing typefes afterwards.

Michael

14 years agotalloc:mksigs: ignore struct forward declarations.
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
talloc:mksigs: ignore struct forward declarations.

Michael

14 years agotalloc:mksyms: allow characters after closing functions parenthesis.
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
talloc:mksyms: allow characters after closing functions parenthesis.

Michael

14 years agotalloc:mksyms: allow double pointer return value of functions.
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
talloc:mksyms: allow double pointer return value of functions.

Michael

14 years agotdb:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args
Michael Adam [Fri, 11 Sep 2009 13:20:34 +0000 (15:20 +0200)]
tdb:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args

Michael

14 years agotdb:mksigs: normalize bool -> _Bool
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
tdb:mksigs: normalize bool -> _Bool

Michael

14 years agotdb:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
tdb:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses

Michael

14 years agotdb:mksigs: correctly ignode multiline function typedefs
Michael Adam [Fri, 11 Sep 2009 13:01:46 +0000 (15:01 +0200)]
tdb:mksigs: correctly ignode multiline function typedefs

by first concatenating multilint parentheses and removing typefes afterwards.

Michael

14 years agotdb:mksigs: ignore struct forward declarations.
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
tdb:mksigs: ignore struct forward declarations.

Michael

14 years agotdb:mksyms: allow characters after closing functions parenthesis.
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
tdb:mksyms: allow characters after closing functions parenthesis.

Michael

14 years agotdb:mksyms: allow double pointer return value of functions.
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
tdb:mksyms: allow double pointer return value of functions.

Michael

14 years agotevent:signatures: add _tevent_req_cancel and tevent_req_set_cancel_fn
Michael Adam [Fri, 11 Sep 2009 13:08:37 +0000 (15:08 +0200)]
tevent:signatures: add _tevent_req_cancel and tevent_req_set_cancel_fn

introduced in 45e4be0d96abdc729252df1e97bb9a56302e5a4a

Michael

14 years agotevent:exports: add _tevent_req_cancel and tevent_req_set_cancel_fn.
Michael Adam [Fri, 11 Sep 2009 12:57:59 +0000 (14:57 +0200)]
tevent:exports: add _tevent_req_cancel and tevent_req_set_cancel_fn.

These were added in 45e4be0d96abdc729252df1e97bb9a56302e5a4a

Michael

14 years agotevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args
Michael Adam [Fri, 11 Sep 2009 13:20:34 +0000 (15:20 +0200)]
tevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args

Michael

14 years agotevent:mksigs: normalize bool -> _Bool
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
tevent:mksigs: normalize bool -> _Bool

Michael

14 years agotevent:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
tevent:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses

Michael

14 years agotevent:mksigs: correctly ignode multiline function typedefs
Michael Adam [Fri, 11 Sep 2009 13:01:46 +0000 (15:01 +0200)]
tevent:mksigs: correctly ignode multiline function typedefs

by first concatenating multilint parentheses and removing typefes afterwards.

Michael

14 years agotevent:mksigs: ignore struct forward declarations.
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
tevent:mksigs: ignore struct forward declarations.

Michael

14 years agotevent:mksyms: allow characters after closing functions parenthesis.
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
tevent:mksyms: allow characters after closing functions parenthesis.

Michael

14 years agotevent:mksyms: allow double pointer return value of functions.
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
tevent:mksyms: allow double pointer return value of functions.

Michael

14 years agotevent: add abi_checks to "make test"
Michael Adam [Fri, 11 Sep 2009 12:00:25 +0000 (14:00 +0200)]
tevent: add abi_checks to "make test"

Michael

14 years agotevent: remove filese generated by "make abi_checks" in "make clean".
Michael Adam [Fri, 11 Sep 2009 11:39:44 +0000 (13:39 +0200)]
tevent: remove filese generated by "make abi_checks" in "make clean".

Michael

14 years agotevent: add a make target "make abi_checks"
Michael Adam [Fri, 11 Sep 2009 11:39:15 +0000 (13:39 +0200)]
tevent: add a make target "make abi_checks"

Michael

14 years agotevent: move the original abi_checks script to script/abi_checks_gcc.sh
Michael Adam [Fri, 28 Aug 2009 14:04:47 +0000 (16:04 +0200)]
tevent: move the original abi_checks script to script/abi_checks_gcc.sh

Michael

14 years agotevent: add script/abi_checks.sh. check for abi changes without gcc magic.
Michael Adam [Fri, 28 Aug 2009 13:53:12 +0000 (15:53 +0200)]
tevent: add script/abi_checks.sh. check for abi changes without gcc magic.

USAGE: abi_checks.sh LIBRARY_NAME header1 [header2 ...]

This creates symbol signature lists using the mksyms and mksigs scripts
and compares them with the checked in lists.

Michael

14 years agotevent: add script to extract signatures from header files.
Michael Adam [Fri, 28 Aug 2009 13:08:19 +0000 (15:08 +0200)]
tevent: add script to extract signatures from header files.

This produces output like the output gcc produces when
invoked with the -aux-info switch.

Run like this: cat include/tevent.h | ./script/mksigs.pl

This simple parser is probably too coarse to handle all
possible header files, but it treats tevent.h correctly...

Michael

14 years agotevent: add scripts to extract library symbols (exports file) from headers
Michael Adam [Fri, 28 Aug 2009 13:01:17 +0000 (15:01 +0200)]
tevent: add scripts to extract library symbols (exports file) from headers

Michael

14 years agos4-vampire: cope with no invocationID when vampiring the schema
Andrew Tridgell [Fri, 11 Sep 2009 13:26:39 +0000 (23:26 +1000)]
s4-vampire: cope with no invocationID when vampiring the schema

14 years agos4-drs: fixed the ldap SPN in AddEntry
Andrew Tridgell [Fri, 11 Sep 2009 13:14:07 +0000 (23:14 +1000)]
s4-drs: fixed the ldap SPN in AddEntry

14 years agos4-provision: revert _gc_tcp priority
Andrew Tridgell [Fri, 11 Sep 2009 13:13:39 +0000 (23:13 +1000)]
s4-provision: revert _gc_tcp priority

thanks to id10ts for spotting this. I was a victim of emacs zone mode,
which increaed it with each edit.

14 years agos4-repl: refresh the partitions on each cycle
Andrew Tridgell [Fri, 11 Sep 2009 12:47:11 +0000 (22:47 +1000)]
s4-repl: refresh the partitions on each cycle

The KCC might have changed repsFrom, which is stored in the partitions
structure

14 years agos4-smbtorture: fix remaining lsa lookup call unknowns. sorry...
Günther Deschner [Fri, 11 Sep 2009 12:33:30 +0000 (14:33 +0200)]
s4-smbtorture: fix remaining lsa lookup call unknowns. sorry...

Guenther

14 years agos4-kcc: add a very simple KCC
Andrew Tridgell [Fri, 11 Sep 2009 11:46:58 +0000 (21:46 +1000)]
s4-kcc: add a very simple KCC

A KCC is a 'Knowledge Consistency Checker', a fancy name for a daemon
that works out who will replicate with who in a AD domain. This
implements an extremely simple KCC task that just wants to replicate
with everyone :-)

14 years agos4-repl: don't update replPropertyMetaData for non-replicated attributes
Andrew Tridgell [Fri, 11 Sep 2009 11:45:35 +0000 (21:45 +1000)]
s4-repl: don't update replPropertyMetaData for non-replicated attributes

thanks to Metze for spotting this

14 years agos4-idl: added the IDL for the DsReplica* calls
Andrew Tridgell [Fri, 11 Sep 2009 10:14:11 +0000 (20:14 +1000)]
s4-idl: added the IDL for the DsReplica* calls

14 years agos3-rpcclient: add lookupsids3 command.
Günther Deschner [Fri, 11 Sep 2009 11:58:52 +0000 (13:58 +0200)]
s3-rpcclient: add lookupsids3 command.

Guenther

14 years agolsa: fill in more unknowns in lsa_LookupSid calls.
Günther Deschner [Fri, 11 Sep 2009 11:55:44 +0000 (13:55 +0200)]
lsa: fill in more unknowns in lsa_LookupSid calls.

Guenther

14 years agos4:ldb_map_outbound - fix memory leak
Matthias Dieter Wallnöfer [Fri, 11 Sep 2009 11:35:55 +0000 (13:35 +0200)]
s4:ldb_map_outbound - fix memory leak

Patch from Andrew Kroeger wasn't fully correct - we need a "talloc_free" after
the "if (ac->r_current == NULL)" statement.

14 years agonetlogon.idl: indent correctly
Matthias Dieter Wallnöfer [Fri, 11 Sep 2009 11:25:53 +0000 (13:25 +0200)]
netlogon.idl: indent correctly

14 years agolsa: use lsa_LookupNamesLevel in lsa_LookupSids{2,3}.
Günther Deschner [Fri, 11 Sep 2009 10:16:35 +0000 (12:16 +0200)]
lsa: use lsa_LookupNamesLevel in lsa_LookupSids{2,3}.

Guenther

14 years agos4-repl: on every ldb modify we need to update replPropertyMetaData
Andrew Tridgell [Fri, 11 Sep 2009 09:07:38 +0000 (19:07 +1000)]
s4-repl: on every ldb modify we need to update replPropertyMetaData

Every time we change a ldb object with the repl_meta_data module
loaded we need to update the replPropertyMetaData attribute to fix the
timestamps and USNs of the attributes being changed.

14 years agos4-repl: don't add the RDN if it is already there
Andrew Tridgell [Fri, 11 Sep 2009 08:01:27 +0000 (18:01 +1000)]
s4-repl: don't add the RDN if it is already there

14 years agos4-ldb: don't remove a message element beyond the end of the array
Andrew Tridgell [Fri, 11 Sep 2009 08:00:42 +0000 (18:00 +1000)]
s4-ldb: don't remove a message element beyond the end of the array

14 years agos3-rpcclient: make netlogon credential setup also work for interdomain trusts.
Günther Deschner [Thu, 10 Sep 2009 22:20:59 +0000 (00:20 +0200)]
s3-rpcclient: make netlogon credential setup also work for interdomain trusts.

Guenther

14 years agos3-rpcclient: avoid using lp_workgroup() unconditionally for crypto.
Günther Deschner [Thu, 10 Sep 2009 20:56:05 +0000 (22:56 +0200)]
s3-rpcclient: avoid using lp_workgroup() unconditionally for crypto.

Guenther

14 years agos3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_schannel().
Günther Deschner [Thu, 10 Sep 2009 20:32:34 +0000 (22:32 +0200)]
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_schannel().

Guenther

14 years agos3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp and cli_rpc...
Günther Deschner [Thu, 10 Sep 2009 20:23:21 +0000 (22:23 +0200)]
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp and cli_rpc_pipe_open_ntlmssp.

Guenther

14 years agos3-rpcclient: use cli_rpc_pipe_open_noauth_transport in rpcclient.
Günther Deschner [Thu, 10 Sep 2009 20:22:24 +0000 (22:22 +0200)]
s3-rpcclient: use cli_rpc_pipe_open_noauth_transport in rpcclient.

Guenther

14 years agos3-rpc_client: add cli_rpc_pipe_open_noauth_transport.
Günther Deschner [Tue, 4 Nov 2008 17:40:24 +0000 (18:40 +0100)]
s3-rpc_client: add cli_rpc_pipe_open_noauth_transport.

Guenther

14 years agos4-provision: use DNS name, not domain name
Andrew Tridgell [Fri, 11 Sep 2009 07:14:01 +0000 (17:14 +1000)]
s4-provision: use DNS name, not domain name

The SPNs end in the DNS domain name

14 years agos4-drs: actually call the new drsuapi_add_SPNs() code
Andrew Tridgell [Fri, 11 Sep 2009 07:13:28 +0000 (17:13 +1000)]
s4-drs: actually call the new drsuapi_add_SPNs() code

An early return here didn't do any good :-)

14 years agos4-drs: add the magic DRS SPNs on AddEntry
Andrew Tridgell [Fri, 11 Sep 2009 05:15:39 +0000 (15:15 +1000)]
s4-drs: add the magic DRS SPNs on AddEntry

When a DsAddEntry is used to create a nTDSDSA object we need to also
create the SPNs for the NTDS GUID in the servers machine account.

14 years agos4/provision: add the nTDSDSA GUID based DNS entries and SPNs
Andrew Tridgell [Fri, 11 Sep 2009 03:39:31 +0000 (13:39 +1000)]
s4/provision: add the nTDSDSA GUID based DNS entries and SPNs

The DNS entries and SPNs are needed for samba<->samba DRS
replication. This patch adds them for a standalone DC configure. A
separate patch will add them for the vampire configure

14 years agos4/drs: parentGUID needs to be specififcally asked for
Andrew Tridgell [Thu, 10 Sep 2009 13:03:07 +0000 (23:03 +1000)]
s4/drs: parentGUID needs to be specififcally asked for

Right now parentGUID is a normal attribute in s4, but it should be
generated, which means we need to ask for it in a search if we want to
use it.

14 years agos4/libcli: when we get a DNS lookup failure show the name
Andrew Tridgell [Thu, 10 Sep 2009 13:01:49 +0000 (23:01 +1000)]
s4/libcli: when we get a DNS lookup failure show the name

When tracking down complex connection problems its useful knowing what
name lookups failed.

14 years agos4/tort: RPC-DRSUAPI test case refactored to match torture architecture
Kamen Mazdrashki [Thu, 10 Sep 2009 22:39:19 +0000 (01:39 +0300)]
s4/tort: RPC-DRSUAPI test case refactored to match torture architecture

14 years agos4/tort: code clean up using torture_drsuapi_assert_call() macro
Kamen Mazdrashki [Thu, 10 Sep 2009 22:17:57 +0000 (01:17 +0300)]
s4/tort: code clean up using torture_drsuapi_assert_call() macro

After this change, when a test fails, it gives
reasonable failure message.

14 years agos4/tort: assert macro for drsuapi dcerpc call
Kamen Mazdrashki [Thu, 10 Sep 2009 20:44:00 +0000 (23:44 +0300)]
s4/tort: assert macro for drsuapi dcerpc call

The macro actually wraps common code pattern used in
almost every test for DRSUAPI interface

14 years agos4/tort: Propagate torture_context and use torture_comment
Kamen Mazdrashki [Thu, 10 Sep 2009 20:43:32 +0000 (23:43 +0300)]
s4/tort: Propagate torture_context and use torture_comment

NOTE: Not every place where printf is used is replaced by
torture_comment. Future work shall "missed" printfs also.

14 years agos3-schannel: remove last schannel hand-marshalling function.
Günther Deschner [Fri, 11 Sep 2009 00:56:00 +0000 (02:56 +0200)]
s3-schannel: remove last schannel hand-marshalling function.

Guenther

14 years agos3-schannel: use NL_AUTH_SIGNATURE for schannel sign & seal (client & server).
Günther Deschner [Fri, 11 Sep 2009 00:52:25 +0000 (02:52 +0200)]
s3-schannel: use NL_AUTH_SIGNATURE for schannel sign & seal (client & server).

Guenther

14 years agos3-errors: add NT_STATUS_RPC_NT_PROCNUM_OUT_OF_RANGE.
Günther Deschner [Fri, 11 Sep 2009 00:49:30 +0000 (02:49 +0200)]
s3-errors: add NT_STATUS_RPC_NT_PROCNUM_OUT_OF_RANGE.

Guenther

14 years agos3-schannel: remove unused code.
Günther Deschner [Fri, 11 Sep 2009 00:21:33 +0000 (02:21 +0200)]
s3-schannel: remove unused code.

Guenther

14 years agos3-schannel: use NL_AUTH_MESSAGE for schannel bind reply.
Günther Deschner [Fri, 11 Sep 2009 00:20:59 +0000 (02:20 +0200)]
s3-schannel: use NL_AUTH_MESSAGE for schannel bind reply.

Guenther

14 years agoschannel: more work on reponse NL_AUTH_MESSAGES.
Günther Deschner [Fri, 11 Sep 2009 00:18:59 +0000 (02:18 +0200)]
schannel: more work on reponse NL_AUTH_MESSAGES.

Guenther

14 years agos3-nterr: add NT_STATUS_RPC_NT_PROTOCOL_ERROR to nt_errstr().
Günther Deschner [Fri, 11 Sep 2009 00:17:51 +0000 (02:17 +0200)]
s3-nterr: add NT_STATUS_RPC_NT_PROTOCOL_ERROR to nt_errstr().

Guenther