1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

56025 Commits

Author SHA1 Message Date
Volker Lendecke
d3a6914e3b s3:vfs_catia: Use talloc_zero for simplification 2009-09-14 22:48:45 +02:00
Volker Lendecke
9dae2501f1 s3:vfs_modules: Fix Coverity ID 946: OVERRUN_STATIC
Tim, please check!
2009-09-14 22:48:45 +02:00
Andrew Tridgell
3dd404abad s4-repl: handle rename in repl_meta_data
On a rename we need to update uSNChanged, and the max uSN for the
partition
2009-09-14 13:13:12 -07:00
Andrew Tridgell
b9ce122ff2 s4-drs: allow replication of renames
a rename may have no attribute changes
2009-09-14 13:12:32 -07:00
Matt Kraai
bd40feb1eb Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ 2009-09-14 22:08:12 +02:00
Andrew Tridgell
33160b1a5b s4-repl: fixed a memory error handling linked attributes
We could get a double free with multiple linked attributes in a
message
2009-09-14 09:41:52 -07:00
Andrew Tridgell
3cf73dfdbd 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.
2009-09-14 09:41:52 -07:00
Jelmer Vernooij
667b825d18 pyldb: Don't segfault when invalid type is specified to Dn.get().
(#6722)
2009-09-14 17:03:30 +02:00
Michael Adam
d106e728fb examples/LDAP: remove sambaAccountPolicy from the IBM-DS schema.
Michael
2009-09-14 14:51:21 +02:00
Michael Adam
aa089b80de dsdb: the samba3 ldap schema has no sambaAccountPolicy (any more at least)
Michael
2009-09-14 14:51:21 +02:00
Stefan Metzmacher
d1457b6648 s4:heimdal_build: fix the build with --enable-automatic-dependencies
We need to create the header file before we generate the source file.

metze
2009-09-14 10:01:46 +02:00
Andrew Bartlett
e29cbda452 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
2009-09-13 22:12:12 -07:00
Volker Lendecke
0f65d33502 s3: Test short reads in the build farm 2009-09-14 07:13:22 +02:00
Volker Lendecke
1f34ffa0ca s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled 2009-09-14 07:13:22 +02:00
Günther Deschner
b8834cad07 schannel: remove unused schannel structs.
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
2f9adf04e4 s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
ff968712ba s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
Guenther
2009-09-14 06:49:58 +02:00
Andrew Bartlett
fde8c46855 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
2009-09-13 20:52:51 -07:00
OPC oota
ab09fcf1da s3:docs: Fix a typo 2009-09-14 02:46:08 +02:00
Andrew Tridgell
55a9ea2b33 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.
2009-09-13 16:40:37 -07:00
Andrew Tridgell
348efd5cbb s4-drs: fixed search expression
At least on the command line the braces are needed. Strange.
2009-09-13 16:40:00 -07:00
Andrew Tridgell
02c9a7e4b6 s4-repl: use the new dsdb partition uSN helper fns 2009-09-13 16:40:00 -07:00
Andrew Tridgell
424d1c580a 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
2009-09-13 16:40:00 -07:00
Andrew Tridgell
80c575923f 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
2009-09-13 16:40:00 -07:00
Andrew Tridgell
73e380deec 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.
2009-09-13 16:39:59 -07:00
Günther Deschner
c3da2056ec s3-samr: Fix Coverity #934 UNINIT.
Guenther
2009-09-13 21:33:00 +02:00
Günther Deschner
15bbae5fd8 s3-netlogon: Fix Coverity #945 UNINIT.
Guenther
2009-09-13 21:32:48 +02:00
Günther Deschner
f9edee119c s3-nterr: print a NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED.
Guenther
2009-09-13 21:22:34 +02:00
Günther Deschner
07031464c4 s3-schannel: fix Coverity #950 OVERRUN_STATIC.
Guenther
2009-09-13 21:21:54 +02:00
Günther Deschner
8b0f54027c s4-schannel: use NL_AUTH_MESSAGE for schannel.
Guenther
2009-09-13 06:50:11 +02:00
Günther Deschner
760666c107 s4-schannel: strip trailing whitespace.
Guenther
2009-09-13 06:50:03 +02:00
Günther Deschner
f900e61cf8 s3-schannel: fix api_pipe_schannel_process(), was using incorrect buffer length.
Found by RPC-SCHANNEL torture test.

Guenther
2009-09-13 06:46:55 +02:00
Jelmer Vernooij
fac9c35f99 Fix string-wchar-fixed-array-03 test (when libndr is available). 2009-09-13 02:01:38 +02:00
Jelmer Vernooij
27f54a77a6 Fix string-wchar-fixed-array-02 test (when libndr is available). 2009-09-13 02:01:38 +02:00
Jelmer Vernooij
4b5ca12f2c Fix string-wchar-fixed-array-01 test (when libndr is available). 2009-09-13 02:01:37 +02:00
Jelmer Vernooij
ac72076ef9 pidl: Remove unnecessary _GNU_SOURCE define. 2009-09-13 02:01:37 +02:00
Matthieu Patou
96a36bf06d s4:sites & services - Adds Intersite transport containers
This patch brings up those subcontainers and fixes up the "systemFlags" on the
"Subnet" entry.
2009-09-12 14:54:45 +02:00
Matthias Dieter Wallnöfer
77100924d9 s4:group policies - the default group policy objects are all system-critical 2009-09-12 11:13:36 +02:00
Matthias Dieter Wallnöfer
b0b8340d95 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).
2009-09-12 11:12:22 +02:00
Stefan Metzmacher
db26c00c55 s4:repl_meta_data: increment the attribute version with each change
metze
2009-09-12 10:39:52 +02:00
Andrew Tridgell
0be268bf55 s4-scripts: allow setup_dns.sh to take a PRIVATEDIR 2009-09-12 16:08:07 +10:00
Andrew Tridgell
5c0cf012a7 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
2009-09-12 15:24:31 +10:00
Andrew Tridgell
1820f4bdaf s4-drs: change debug level
It's useful seeing the object count without as much detail
2009-09-12 15:23:30 +10:00
Andrew Tridgell
ca6e15f2f9 s4-repl: fixed memory leaks
These memory leaks were mostly caused by the fact that
refresh_partitions is now called periodically
2009-09-12 15:22:26 +10:00
Andrew Tridgell
5c33042498 s4-ndr: fixed memory leaks in ndr_pull_*_blob()
We needed to free the ndr structures, both on error and normal return
2009-09-12 15:21:33 +10:00
Andrew Tridgell
a8ab1e2570 s4-drs: also fill in tmp_highest_usn
Without this the client will not update its repsFrom highest_usn values
2009-09-12 13:06:32 +10:00
Andrew Tridgell
493166b009 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.
2009-09-12 12:42:40 +10:00
Andrew Tridgell
0819e79c4f 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.
2009-09-12 12:08:34 +10:00
Andrew Tridgell
b00518cf7a 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
2009-09-12 12:07:06 +10:00
Andrew Tridgell
733fa19bc1 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.
2009-09-12 11:21:21 +10:00