Stefan Metzmacher [Tue, 15 Sep 2009 05:48:50 +0000 (07:48 +0200)]
s4:heimdal_build: fix one more problem with automatic dependecies
metze
Andrew Bartlett [Tue, 15 Sep 2009 05:37:11 +0000 (22:37 -0700)]
s4:provision Prevent some invalid combinations of realm and domain
We don't do well (even just trying to create duplicate
servicePrincipalName values) with some of these combinations, so kill
it off early before the administrator thinks it's going to work.
Andrew Bartlett
Matthieu Patou [Fri, 11 Sep 2009 21:03:52 +0000 (01:03 +0400)]
s4: Script to build or rebuild extend DN attributes
This script can be used to upgrade a provision that didn't integrate extended dn.
It can also be used to add missing extended DN that weren't created during provision.
Björn Jacke [Tue, 15 Sep 2009 04:48:49 +0000 (06:48 +0200)]
s3: BSD needs sys/sysctl.h included to build properly
FreeBSD (and other BSDs, too) need sys/sysctl.h inclueded to use sysctlbyname().
Thanks to Timur Bakeyev for that.
Volker Lendecke [Tue, 15 Sep 2009 02:09:54 +0000 (19:09 -0700)]
Second part of bug fix for 6606.
s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled
Jeremy Allison [Tue, 15 Sep 2009 01:45:16 +0000 (18:45 -0700)]
Torture test for bug 6529 - Offline files conflict with Vista and Office 2003.
Ensure we don't regress.
Jeremy.
Björn Jacke [Tue, 15 Sep 2009 01:41:06 +0000 (03:41 +0200)]
nss_winbind: remove unused variable
Jeremy Allison [Mon, 14 Sep 2009 22:30:05 +0000 (15:30 -0700)]
Fix bug 6494 - Incorrect FileStatus returned in NT_CREATE_ANDX.
Lookup the EA and Stream status on CreateX.
Jeremy.
Jeremy Allison [Mon, 14 Sep 2009 22:06:37 +0000 (15:06 -0700)]
Fix bug 6726 - Filename length overwrites oplock request field in cli_nt_create().
Jeremy.
Volker Lendecke [Mon, 14 Sep 2009 20:47:31 +0000 (22:47 +0200)]
s3:vfs_catia: Make some fns static
Volker Lendecke [Mon, 14 Sep 2009 20:28:11 +0000 (22:28 +0200)]
s3:vfs_catia: Use talloc_zero for simplification
Volker Lendecke [Mon, 14 Sep 2009 20:22:26 +0000 (22:22 +0200)]
s3:vfs_modules: Fix Coverity ID 946: OVERRUN_STATIC
Tim, please check!
Andrew Tridgell [Mon, 14 Sep 2009 20:13:12 +0000 (13:13 -0700)]
s4-repl: handle rename in repl_meta_data
On a rename we need to update uSNChanged, and the max uSN for the
partition
Andrew Tridgell [Mon, 14 Sep 2009 20:12:32 +0000 (13:12 -0700)]
s4-drs: allow replication of renames
a rename may have no attribute changes
Matt Kraai [Wed, 26 Aug 2009 04:19:52 +0000 (21:19 -0700)]
Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ
Andrew Tridgell [Mon, 14 Sep 2009 10:44:10 +0000 (03:44 -0700)]
s4-repl: fixed a memory error handling linked attributes
We could get a double free with multiple linked attributes in a
message
Andrew Tridgell [Mon, 14 Sep 2009 10:43:26 +0000 (03:43 -0700)]
s4-repl: fall back to repsFrom if repsTo not set
Windows does not seem to be always setting up repsTo using
DsUpdateRefs(). For now we will fall back to using repsFrom if repsTo
is empty. This is almost certainly incorrect, but it does get
notification based replication working with both w2k3 and w2k8.
Jelmer Vernooij [Mon, 14 Sep 2009 15:03:30 +0000 (17:03 +0200)]
pyldb: Don't segfault when invalid type is specified to Dn.get().
(#6722)
Michael Adam [Mon, 14 Sep 2009 09:44:39 +0000 (11:44 +0200)]
examples/LDAP: remove sambaAccountPolicy from the IBM-DS schema.
Michael
Michael Adam [Mon, 14 Sep 2009 09:40:47 +0000 (11:40 +0200)]
dsdb: the samba3 ldap schema has no sambaAccountPolicy (any more at least)
Michael
Stefan Metzmacher [Mon, 14 Sep 2009 07:58:19 +0000 (09:58 +0200)]
s4:heimdal_build: fix the build with --enable-automatic-dependencies
We need to create the header file before we generate the source file.
metze
Andrew Bartlett [Mon, 14 Sep 2009 05:09:45 +0000 (22:09 -0700)]
s4:heimdal_build Fix build breakages caused by asn1compile change
The issue was that we referenced an asn1compile generated file by
name, not by the subsystem is was generated by.
Andrew Bartlett
Volker Lendecke [Mon, 14 Sep 2009 01:21:30 +0000 (03:21 +0200)]
s3: Test short reads in the build farm
Volker Lendecke [Mon, 14 Sep 2009 01:21:19 +0000 (03:21 +0200)]
s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled
Günther Deschner [Mon, 14 Sep 2009 04:47:37 +0000 (06:47 +0200)]
schannel: remove unused schannel structs.
Guenther
Günther Deschner [Sat, 12 Sep 2009 22:28:49 +0000 (00:28 +0200)]
s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
Guenther
Günther Deschner [Fri, 11 Sep 2009 17:35:14 +0000 (19:35 +0200)]
s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
Guenther
Andrew Bartlett [Sun, 13 Sep 2009 00:20:32 +0000 (17:20 -0700)]
s4:heimdal_build Love pointed me at the --one-code-file option to asn1_compile
This new option avoids a lot of code that was used to intuit what
files would be output by the compiler.
Andrew Bartlett
OPC oota [Mon, 14 Sep 2009 00:44:04 +0000 (02:44 +0200)]
s3:docs: Fix a typo
Andrew Tridgell [Sun, 13 Sep 2009 08:16:13 +0000 (18:16 +1000)]
s4-repl: added a preiodic notification check to the repl task
The dreplsrv_notify code checks the partition uSN values every N
seconds, and if one has changed then it sends a DsReplicaSync to all
the replication partners listed in the repsTo attribute for the
partition.
Andrew Tridgell [Sun, 13 Sep 2009 08:14:35 +0000 (18:14 +1000)]
s4-drs: fixed search expression
At least on the command line the braces are needed. Strange.
Andrew Tridgell [Sun, 13 Sep 2009 08:13:56 +0000 (18:13 +1000)]
s4-repl: use the new dsdb partition uSN helper fns
Andrew Tridgell [Sun, 13 Sep 2009 08:13:17 +0000 (18:13 +1000)]
s4-dsdb: added dsdb_load_partition_usn and dsdb_save_partition_usn
These are used to load/save the per-partition uSN values managed by
the repl_meta_data module
Andrew Tridgell [Sun, 13 Sep 2009 08:12:05 +0000 (18:12 +1000)]
s4-sam: allow a search to specify a partition
You can now attach a partition control to searches to search within a
specific partition. This is used to get at the per-partition
@REPLCHANGED object
Andrew Tridgell [Sun, 13 Sep 2009 04:24:08 +0000 (14:24 +1000)]
s4-repl: keep a @REPLCHANGED object on each partition
This object tracks the highest uSN in each partition. It will be used
to allow us to efficiently detect changes in a partition for sending
DsReplicaSync messages to our replication partners.
Günther Deschner [Sun, 13 Sep 2009 19:30:10 +0000 (21:30 +0200)]
s3-samr: Fix Coverity #934 UNINIT.
Guenther
Günther Deschner [Sun, 13 Sep 2009 19:28:23 +0000 (21:28 +0200)]
s3-netlogon: Fix Coverity #945 UNINIT.
Guenther
Günther Deschner [Sun, 13 Sep 2009 16:38:34 +0000 (18:38 +0200)]
s3-nterr: print a NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED.
Guenther
Günther Deschner [Sun, 13 Sep 2009 19:17:59 +0000 (21:17 +0200)]
s3-schannel: fix Coverity #950 OVERRUN_STATIC.
Guenther
Günther Deschner [Sat, 12 Sep 2009 23:35:06 +0000 (01:35 +0200)]
s4-schannel: use NL_AUTH_MESSAGE for schannel.
Guenther
Günther Deschner [Sat, 12 Sep 2009 22:37:37 +0000 (00:37 +0200)]
s4-schannel: strip trailing whitespace.
Guenther
Günther Deschner [Sat, 12 Sep 2009 21:25:00 +0000 (23:25 +0200)]
s3-schannel: fix api_pipe_schannel_process(), was using incorrect buffer length.
Found by RPC-SCHANNEL torture test.
Guenther
Jelmer Vernooij [Sat, 12 Sep 2009 23:59:48 +0000 (01:59 +0200)]
Fix string-wchar-fixed-array-03 test (when libndr is available).
Jelmer Vernooij [Sat, 12 Sep 2009 23:59:16 +0000 (01:59 +0200)]
Fix string-wchar-fixed-array-02 test (when libndr is available).
Jelmer Vernooij [Sat, 12 Sep 2009 23:58:11 +0000 (01:58 +0200)]
Fix string-wchar-fixed-array-01 test (when libndr is available).
Jelmer Vernooij [Sat, 12 Sep 2009 23:31:13 +0000 (01:31 +0200)]
pidl: Remove unnecessary _GNU_SOURCE define.
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.
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
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).
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
Andrew Tridgell [Sat, 12 Sep 2009 06:08:07 +0000 (16:08 +1000)]
s4-scripts: allow setup_dns.sh to take a PRIVATEDIR
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
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
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
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
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
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.
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.
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
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.
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.
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()
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.
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
Anatoliy Atanasov [Thu, 10 Sep 2009 09:41:48 +0000 (12:41 +0300)]
Fix up-to-dateness vector creation.
Jelmer Vernooij [Fri, 11 Sep 2009 22:49:51 +0000 (00:49 +0200)]
repl_meta_data: Fix include path when building with standalone ldb.
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.
Jelmer Vernooij [Fri, 11 Sep 2009 21:49:36 +0000 (23:49 +0200)]
ldb: Support running testsuite without installing first.
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)
Matthias Dieter Wallnöfer [Fri, 11 Sep 2009 20:03:45 +0000 (22:03 +0200)]
netlogon.idl - rerun "make idl"
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.
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
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
talloc:mksyms: allow characters after closing functions parenthesis.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
talloc:mksyms: allow double pointer return value of functions.
Michael
Michael Adam [Fri, 11 Sep 2009 13:36:57 +0000 (15:36 +0200)]
s3:mksyms: fix spelling...
Michael
Michael Adam [Fri, 11 Sep 2009 13:36:34 +0000 (15:36 +0200)]
tevent:mksyms: fix spelling...
Michael
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
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
talloc:mksigs: normalize bool -> _Bool
Michael
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
talloc:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael
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
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
talloc:mksigs: ignore struct forward declarations.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
talloc:mksyms: allow characters after closing functions parenthesis.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
talloc:mksyms: allow double pointer return value of functions.
Michael
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
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
tdb:mksigs: normalize bool -> _Bool
Michael
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
tdb:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael
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
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
tdb:mksigs: ignore struct forward declarations.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
tdb:mksyms: allow characters after closing functions parenthesis.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
tdb:mksyms: allow double pointer return value of functions.
Michael
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
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
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
Michael Adam [Fri, 11 Sep 2009 13:16:03 +0000 (15:16 +0200)]
tevent:mksigs: normalize bool -> _Bool
Michael
Michael Adam [Fri, 11 Sep 2009 13:11:16 +0000 (15:11 +0200)]
tevent:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael
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
Michael Adam [Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)]
tevent:mksigs: ignore struct forward declarations.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)]
tevent:mksyms: allow characters after closing functions parenthesis.
Michael
Michael Adam [Fri, 11 Sep 2009 12:54:02 +0000 (14:54 +0200)]
tevent:mksyms: allow double pointer return value of functions.
Michael
Michael Adam [Fri, 11 Sep 2009 12:00:25 +0000 (14:00 +0200)]
tevent: add abi_checks to "make test"
Michael