summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/repl
Commit message (Collapse)AuthorAgeFilesLines
* s4-samdb: reduce the number of samdb opens at startupAndrew Tridgell2009-10-251-6/+3
| | | | | Using common parameters means that the ldb_wrap code can return a reference rather than a new database
* s4-dsdb: added samdb_rodc() and samdb_ntds_options()Andrew Tridgell2009-10-151-1/+1
| | | | | Later we will need to make samdb_rodc() look in the database, but for now we should at least have the function in a central place
* s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where neededMatthias Dieter Wallnöfer2009-10-141-2/+1
| | | | | | For KERBEROS applications the realm should be upcase (function "lp_realm") but for DNS ones it should be used lowcase (function "lp_dnsdomain"). This patch implements the use of both in the right way.
* s4-drs: fixed a memory error introduced yesterdayAndrew Tridgell2009-10-071-1/+1
| | | | ids is retrurned via _ids, so it needs to be on the passed in mem_ctx
* s4-repl: added RELAX control and fix transactionsAndrew Tridgell2009-10-061-8/+57
| | | | | | Added the RELAX control to dsdb_origin_objects_commit(), as it needs to modify system objects. This patch also fixes the use of ldb transactions in that function, and fixes a memory leak.
* s4-ldb: added a bunch more debug for DC joinAndrew Tridgell2009-09-221-0/+4
| | | | | These additional debug messages were added to help us track down w2k8->s4 domain join
* s4:dsdb Print the partition we failed to suggest replication forAndrew Bartlett2009-09-191-1/+2
|
* s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2009-09-183-10/+12
| | | | | | When one of our core tasks fails to initialise it can now ask for the server as a whole to die, rather than limping along in a degraded state.
* s4-repl: raise a debug levelAndrew Tridgell2009-09-161-1/+1
|
* s4-repl: take advantage of async RPC forwardingAndrew Tridgell2009-09-151-5/+3
| | | | This uses async RPC forwarding for the DsReplicaSync call
* s4-repl: don't do double replicationAndrew Tridgell2009-09-152-2/+36
| | | | | | | | When we replicate from a remote DC, we need to note the new uSN that the local changes have resulted in, and modify the uSN that the notify task uses to determine if it should send a ReplicaSync message back to the remote DC. Otherwise we end up always triggering a ReplicaSync every time we replicate from another DC
* s4-repl: add a debug to make it easier to monitor replicationAndrew Tridgell2009-09-151-0/+5
|
* s4-repl: fall back to repsFrom if repsTo not setAndrew Tridgell2009-09-141-2/+4
| | | | | | | 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.
* s4-repl: added a preiodic notification check to the repl taskAndrew Tridgell2009-09-136-3/+478
| | | | | | | 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.
* s4-repl: fixed memory leaksAndrew Tridgell2009-09-123-12/+31
| | | | | These memory leaks were mostly caused by the fact that refresh_partitions is now called periodically
* s4-repl: refresh the partitions on each cycleAndrew Tridgell2009-09-112-3/+4
| | | | | The KCC might have changed repsFrom, which is stored in the partitions structure
* s4-repl: don't add the RDN if it is already thereAndrew Tridgell2009-09-111-3/+19
|
* s4-drs: add the magic DRS SPNs on AddEntryAndrew Tridgell2009-09-111-23/+2
| | | | | 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.
* s4/repl: give a useful error message if we can't decode an objectAndrew Tridgell2009-09-101-1/+4
|
* s4/repl: implement DsReplicaSyncAndrew Tridgell2009-09-092-0/+42
| | | | | | | | | | | This patch implements DsReplicaSync by passing the call via irpc to the repl server task. The repl server then triggers an immediate replication of the specified partition. This means we no longer need to set a small value for dreplsrv:periodic_interval to force frequent DRS replication. We can now wait for the DC to send us a ReplicaSync msg for any partition that changes, and we immediately sync that partition.
* s4/repl: added refresh of repsToAndrew Tridgell2009-09-091-1/+87
| | | | | | | | | I've found that w2k3 deletes the repsTo records we carefully created in the vampire join if we don't refresh them frequently. After about 30mins all 3 repsTo records are gone. This patch adds automatic refresh of the repsTo by calling DSReplicaUpdateRefs every time we do a sync cycle with the server
* s4:drsuapi: add an incomplete DsAddEntry implementationStefan Metzmacher2009-09-081-8/+157
| | | | metze
* add the the linked attributes elements to the repl structureAndrew Tridgell2009-09-031-0/+5
| | | | This exposes the linked_attributes to the repl_meta_data module
* tell the server that we support linked attribute replicationAndrew Tridgell2009-09-031-6/+1
|
* Wrap DRS changes in a transactionAndrew Tridgell2009-09-021-0/+18
| | | | | We should always apply a whole set of DRS changes or none of them. See [MS-DRSR] 3.3.2
* s4: Correct renamed constantsMatthias Dieter Wallnöfer2009-07-311-2/+2
|
* decrypt all objects in a DRS record, not just the first oneAndrew Tridgell2009-07-021-2/+5
| | | | | We found this as an object came across from w2k3 with zero values, which caused a segv when we tried to decrypt the first value
* Move DRSUAPI per-attribute decryption into a common fileAndrew Bartlett2009-04-141-158/+2
| | | | | | | This file (contining metze's decryption routines) is now also be used by Samba3's DRSUAPI implementation Andrew Bartlett
* s4:service_task: s/private/private_dataStefan Metzmacher2009-02-021-1/+1
| | | | metze
* Fix the mess with ldb includes.Simo Sorce2009-01-301-1/+1
| | | | | | | | Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-292-3/+3
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Now store the GUID and SID from a DN over DRSUAPI into ldb.Andrew Bartlett2008-12-201-1/+1
| | | | | | | Until the extended DN work was compleated, there was no way to store the additional metadata. Andrew Bartlett
* s4-drsuapi: merge drsuapi_DsGetNCChanges from s3 drsuapi idl.Günther Deschner2008-10-181-47/+49
| | | | Guenther
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-116-6/+6
|
* Move source4/lib/crypto to lib/crypto.Jelmer Vernooij2008-09-241-1/+1
|
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-231-6/+4
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* drsuapi: fix samba4 callers after drsuapi.idl changesStefan Metzmacher2008-08-201-6/+14
| | | | | metze (This used to be commit 4b054cee51c39c5430bcadd5c06a94dc3e6b0d8f)
* drsuapi: fix callers after idl changeStefan Metzmacher2008-08-071-1/+1
| | | | | metze (This used to be commit 7dee6fb62d5adbd2eaaaf4d8ba9e87a72ef9f94b)
* dsdb: teach dreplsrv_out_drsuapi_bind_recv() knowledge of DsBindInfo48.Michael Adam2008-07-231-0/+9
| | | | | | | To make it work against w2k8. Michael (This used to be commit a8aea9274170a2b472c45c97a4904bd299d2a92e)
* Change occurrences of the u1 member of DsBindInfo* to pid after idl change.Michael Adam2008-07-222-2/+2
| | | | | Michael (This used to be commit b91bbc5fe4a47e5823be6be5f2f203f1f14105de)
* drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]Stefan Metzmacher2008-07-161-8/+2
| | | | | metze (This used to be commit 35c7fa470a7433d081403b2b57a331c7dc287aef)
* drsuapi: check ctr6->drs_errorStefan Metzmacher2008-07-161-0/+7
| | | | | metze (This used to be commit 511847f5f5015bcdef69e80b91cb08ffb1690e59)
* drsuapi: get ctr6 out of xpress compressed levelStefan Metzmacher2008-07-161-0/+5
| | | | | metze (This used to be commit 4e0708148a121bd41a12abf6122d5d6f3f09667a)
* drsuapi.idl: remove some unknows from DsGetNCChanges() (update samba4 callers)Stefan Metzmacher2008-06-301-6/+6
| | | | | metze (This used to be commit d41b3dd6ffc4fd894bc05798dbc2ff4b53933a06)
* Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2008-04-171-1/+1
| | | | (This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
* Remove useless layer of indirection, where every service calledAndrew Bartlett2008-02-041-9/+1
| | | | | | | | task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett (This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)
* Rework service init functions to pass down service name. This isAndrew Bartlett2008-02-041-1/+1
| | | | | | | | needed to change prefork behaviour based on what service is being started. Andrew Bartlett and David Disseldorp (This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)
* Get more information from ldb when reporting a failed replication.Andrew Bartlett2008-01-231-2/+2
| | | | | Andrew Bartlett (This used to be commit 948ee9b7acd90b994bb9d9f7c1813a8eca430e4f)
* r26672: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij2008-01-051-1/+1
| | | | (This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
* r26640: Janitorial: Remove some more uses of global_loadparm.Jelmer Vernooij2008-01-011-2/+2
| | | | (This used to be commit c863f4ebde8efa1a695b4469142d6719e30bc419)