summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/repl
Commit message (Collapse)AuthorAgeFilesLines
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-1/+1
|
* s4: Do not display by default the message Failed to send DsReplicaSync is ↵Matthieu Patou2010-05-131-1/+6
| | | | | | other host is just unreachable Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-repl: added a workaround for WERR_DS_DRA_NO_REPLICA DsReplicaSync errorsAndrew Tridgell2010-04-272-2/+19
| | | | | | | | | The 0xc0002104/WERR_DS_DRA_NO_REPLICA seems to be spurious, and can be avoided by setting DRSUAPI_DRS_SYNC_ALL in the DsReplicaSync request. We need to investigate this further, and find out from MS why this is sometimes being sent, even when the target DC has the right repsFrom entries
* s4-repl: on a failed request, clear the current ptrAndrew Tridgell2010-04-271-0/+1
| | | | this prevents the queue being stuck on failure
* s4-repl: end repl request when not doing an UpdateRefsAndrew Tridgell2010-04-271-0/+2
| | | | otherwise the queue is stuck forever
* s4-repl: don't delete repsTo entry on DsReplicaSyncAndrew Tridgell2010-04-271-46/+12
| | | | | | we rely on the highestUSN counters instead. W2K8 does not resend DsUpdateRefs each time, and the WSPP docs do not indicate that repsTo should be deleted
* s4-drs: allow getncchanges requests to non WRIT_REP partitions for extended opsAndrew Tridgell2010-04-261-1/+2
| | | | | | Needed for RID allocation Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drepl: don't send an UpdateRefs unless its a plain replicationAndrew Tridgell2010-04-261-1/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: removed dsdb_validate_client_flags()Andrew Tridgell2010-04-221-7/+0
| | | | | | This test is in the wrong place. We end up validating our own flags. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s40-drs: Do not send GetNCChanges messages to RODCsFernando J V da Silva2010-04-221-0/+11
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drs: samdb_is_rodc() function and new samdb_rodc() functionFernando J V da Silva2010-04-222-2/+8
| | | | | | | | | | | This patch creates the samdb_is_rodc() function, which looks for the NTDSDSA object for a DC that has a specific invocationId and if msDS-isRODC is present on such object and it is TRUE, then consider the DC as a RODC. The new samdb_rodc() function uses the samdb_is_rodc() function for the local server. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer2010-04-131-1/+1
| | | | | We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
* s4-drs: If we are a RODC then do not send DSReplicaSync messagesFernando J V da Silva2010-03-251-8/+11
|
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-11/+19
| | | | | | | | This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
* s4:dsdb/repl: make use of use tevent_req based dcerpc_binding_handle stubsStefan Metzmacher2010-03-123-38/+62
| | | | metze
* s4/drs: DsGetNCChanges - Propagating IDL changes to source codeKamen Mazdrashki2010-03-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:repl - change also here the counter variables to "unsigned"Matthias Dieter Wallnöfer2010-03-053-7/+8
| | | | | I changed also some "uint32_t" to "unsigned" since the LDB interface doesn't specify the bitlength of the unsigned type.
* s4:drepl_out_helpers: don't look at the internals of 'struct rpc_request'Stefan Metzmacher2010-03-011-2/+13
| | | | metze
* s4:drepl_notify: don't look at the internals of 'struct rpc_request'Stefan Metzmacher2010-03-011-1/+9
| | | | metze
* s4:dsdb/repl: make use of explicit dcerpc_*_recv functionsStefan Metzmacher2010-03-012-4/+4
| | | | metze
* s4/rodc: Implement samdb_rodc with ldb contextAnatoliy Atanasov2010-03-011-1/+1
|
* s4/drs: Propagate drsuapi_DsReplicaSync changes in source baseKamen Mazdrashki2010-02-242-5/+9
|
* s4/drs: propagate DRS_ extension flags in code baseKamen Mazdrashki2010-02-051-1/+1
|
* s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync ↵Fernando J V da Silva2010-01-282-7/+24
| | | | | | | | | | | when necessary If an urgent replication is necessary, so the uSNUrgent stored is equal to the uSNHighest stored, then when sending the DS_ReplicaSync message it sets the DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS. Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: take advantage of local cursor and sortAndrew Tridgell2010-01-161-37/+0
| | | | | in getncchanges and repl task we don't need the extra load and sort any more.
* s4-dsdb: use dsdb_load_udv_v2() in repl taskAndrew Tridgell2010-01-161-27/+2
|
* s4-drepl: switch drepl over to using the generic DRS options flagsAndrew Tridgell2010-01-142-7/+5
| | | | WSPP uses a single set of flags for all these DRS operations.
* s4-drs: Uses dsdb_load_partition_usn() with urgent_uSN in s4 codeFernando J V da Silva2010-01-141-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drs: Store uSNUrgent for Urgent ReplicationFernando J V da Silva2010-01-142-3/+3
| | | | | | | | When a object or attribute is created/updated/deleted, according to [MS-ADTS] 3.1.1.5.1.6, it stores the uSNUrgent on @REPLCHANGED for the partitions that it belongs. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:dsdb/repl: reorder dreplsrv_op_notify* functionsStefan Metzmacher2010-01-131-53/+50
| | | | | | | This make the whole async dreplsrv_op_notify_send/recv() readable. metze
* s4:dsdb/repl: change dreplsrv_op_notify_send/recv() to tevent_reqStefan Metzmacher2010-01-132-70/+74
| | | | metze
* s4-drs: add a local UDV entry even when no replUpToDateVector present on NCAndrew Tridgell2010-01-091-3/+3
| | | | | This allows us to filter correctly for a NC that we have created but not pulled from anyone.
* s4-drs: give DN of failed replication partitionAndrew Tridgell2010-01-091-4/+5
|
* s4-drs: calculate and send a uptodateness_vector with replication requestsAndrew Tridgell2010-01-092-7/+82
| | | | | This stops us getting objects changes twice if they came via an indirect path.
* s4:dsdb/repl: convert dreplsrv_op_pull_source_send/recv to tevent_reqStefan Metzmacher2010-01-083-158/+199
| | | | | | metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-repl: implement MSG_DREPL_ALLOCATE_RIDAndrew Tridgell2010-01-082-19/+48
| | | | | | | | | When the repl server gets MSG_DREPL_ALLOCATE_RID it contacts the RID Manager to ask for another RID pool. We use a callback on completion of the operation to make sure that we don't have two RID allocation requests in flight at once Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: allow for callbacks when a repl operation completesAndrew Tridgell2010-01-083-4/+16
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: added request for RID allocation in drepl taskAndrew Tridgell2010-01-086-12/+274
| | | | | | | | | The drepl task now checks to see if our rIDAllocationPool is exhausted, and if it is then we queue a extended operation DsGetNCChanges call to ask the RID Manager to give us a new allocation pool. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb/repl: convert dreplsrv_out_drsuapi_send/recv to tevent_reqStefan Metzmacher2010-01-042-99/+127
| | | | metze
* Revert "s4-drs: cope with bogus empty attributes from w2k8-r2"Kamen Mazdrashki2009-12-211-17/+0
| | | | | | | | This reverts commit 1287c1d115fb7e8f3954bc05ff65007968403a9c. Next patch should fix the "not recognized ATTIDs" problem Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-repl: give a reason why the prepare commit failedAndrew Tridgell2009-12-211-1/+2
|
* s4-repl: only try to replicate for NCs that we are a master forAndrew Tridgell2009-12-211-4/+3
|
* s4-repl: lower debug level of a common messageAndrew Tridgell2009-12-211-1/+1
|
* s4-dsdb: use GUID_to_ndr_blob()Andrew Tridgell2009-12-101-7/+2
|
* s4-drs: cope with bogus empty attributes from w2k8-r2Andrew Tridgell2009-11-281-0/+17
| | | | | | w2k8-r2 sometimes sends empty attributes with completely bogus attrid values in a DRS replication response. This allows us to continue with the vampire operation despite these broken elements.
* Revert "s4:dsdb/repl/replicated_objects - Applicate also here the new ↵Matthias Dieter Wallnöfer2009-11-161-4/+1
| | | | | | | | | | "lDAPDisplayName" generator" This reverts commit df95d5c29292968b465bff24c3cf78800677a4d4. abartlet pointed out in a post on the samba-technical list that this isn't necessary at all (lDAPDisplayName normalisation algorithm). Rather it breaks functionality of the replication.
* s4:dsdb/repl/replicated_objects - Applicate also here the new ↵Matthias Dieter Wallnöfer2009-11-151-1/+4
| | | | | | | "lDAPDisplayName" generator Also here we've to be sure to generate the attribute correctly if it doesn't exist yet.
* s4:dsdb/repl Split the 'convert' or 'commit' stages in the DRS importAndrew Bartlett2009-11-122-44/+49
| | | | | | | This will allow us in future to do tests on the LDB values we generate from the DRS replication. Andrew Bartlett
* s4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by ↵Kamen Mazdrashki2009-11-061-1/+1
| | | | | | | | | | | | dsdb_schema_pfm_contains_drsuapi_pfm() dsdb_schema_pfm_contains_drsuapi_pfm() is part of reimplemented prefixMap interface. This name was choosen to clearly show, that this a week verification in case we want to determine if remote schema is changed. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* 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