summaryrefslogtreecommitdiff
path: root/source4/dsdb/kcc
AgeCommit message (Collapse)AuthorFilesLines
2010-03-16s4-drs: DsGetReplInfo(), infoType = DS_REPL_INFO_METADATA_2_FOR_OBJErick Nogueira do Nascimento1-80/+284
Implementation of the DS_REPL_INFO_METADATA_2_FOR_OBJ infoType for DsGetReplInfo() Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-03-12use unsigned instead of uint32_t for LDB counters.Crístian Deives1-4/+6
the attribute num_values of the struct ldb_message_element is defined as an unsigned int, so the counters of that variable should be of the same type.
2010-03-12nTDSConnection creationCrístian Deives2-0/+817
create nTDSConnection objects to "imply" the minimum-cost spanning tree edges for which no nTDSConnection objects yet exist. it also adds a test function in kcc_connection so the kcctpl functions can be called. this patch is in accord with the sections [MS-ADTS] 7.2.2.3.4.2 and 7.2.2.3.4.5.
2010-03-12spanning tree computationCrístian Deives1-0/+1692
calculate the spanning tree for the intersite connection. this patch is in accord with the section [MS-ADTS] 7.2.2.3.4.4.
2010-03-12new function kcctpl_color_verticesCrístian Deives1-213/+576
besides the new function implemented, some minor bugs were also fixed. this patch is in accord with the section [MS-ADTS] 7.2.2.3.4.3.
2010-03-05s4:kcc - Change some counter variables to be unsignedMatthias Dieter Wallnöfer2-4/+5
The upper limits are unsigned variables therefore also the counter variables need to be like that.
2010-02-24s4/drs: Propagate drsuapi_DsReplicaGetInfoRequest... changes into source codeKamen Mazdrashki1-2/+2
2010-02-17s4/drs:kccdrs_replica_get_info_obj_metadata implementationAnatoliy Atanasov1-12/+88
Fix the names of the drsuapi_DsReplicaInfoType enum and rebuild the .idl The get_info_obj_metadata implementation is ported from implementation i developed and tested at the samba io lab 2009
2010-02-16s4-kcc: remove a qsort() that snuck into the new topology codeAndrew Tridgell1-2/+1
2010-02-16s4-kcc: remove search_onelevel_with_deleted() in kccAndrew Tridgell1-52/+3
Use dsdb_search() instead Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-16s4-dsdb: added dsdb_search_one() and cleanup dsdb_find_dn_by_guid()Andrew Tridgell2-18/+7
dsdb_find_dn_by_guid() now takes a struct GUID instead of a guid_string. All the callers in fact wanted a struct GUID, so we now avoid the extra conversion. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-16s4-drs: DsGetReplInfo() refactoringErick Nogueira do Nascimento1-263/+190
2010-02-16s4-drs: DsReplGetInfo() for DS_REPL_INFO_REPSTO infoTypeErick Nogueira do Nascimento1-4/+142
Implements the DS_REPL_INFO_REPSTO infoType of DsReplGetInfo().
2010-02-15s4-kcc: remove C++ commentAndrew Tridgell1-1/+1
2010-02-15s4-kcc: initial code for the topology algorithmCrístian Deives1-0/+614
this patch contains the data structures declarations and the functions to setup the graph. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-18idl: switched to using the WSPP names for the 'neighbour' DRS optionsAndrew Tridgell1-3/+3
The documentation shows that all these functions in fact use the same flags variable type. To be consistent between functions, and to allow easy reference to the WSPP docs, it is better for us to also use this generic DrsOptions bitfield rather than one per operations.
2010-01-16s4-kcc: added DsReplicaGetInfo pending ops callAndrew Tridgell1-1/+30
Just return 0 pending ops for now
2010-01-16s4-kcc: added DsReplicaGetInfo CURSORS2 levelAndrew Tridgell1-0/+29
2010-01-16s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_contextAndrew Tridgell1-2/+2
2010-01-16s4-kcc: added support for CURSORS info level in DsReplicaGetInfoAndrew Tridgell1-3/+34
2010-01-16s4-kcc: simplify the ReplicaGetInfo implementation a bitAndrew Tridgell1-53/+17
2010-01-16s4-kcc: squash a warningAndrew Tridgell1-0/+2
2010-01-16s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS ↵Andrew Tridgell2-2/+504
infoType. This patch includes the framework for the implementation of all infoTypes of the DsGetReplInfo() call, and includes the implementation for the first one, the DS_REPL_INFO_NEIGHBORS. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-02s4-kcc: added a preiodic task to remove deleted objectsAndrew Tridgell3-4/+103
we check for deleted objects in each partition every 10 minutes, using onelevel searches
2010-01-02s4-dsdb: added dsdb_tombstone_lifetime()Andrew Tridgell1-0/+64
2009-12-21s4-kcc: don't crash with a NULL ntds connection listAndrew Tridgell1-3/+3
2009-11-30s4-drs: add deletion of old connectionsCrístian Deives3-37/+190
the nTDSConnection objects that are not needed anymore will be deleted. the function kccsrv_delete_connection wasn't tested yet. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-30s4-drs: Create connection obejct (nTDSConnection)Crístian Deives2-0/+129
create nTDSConnection objects to match the list of servers Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-14s4-drs: DsExecuteKCC() implementationErick Nascimento2-1/+21
I implemented the DsExecuteKCC() handling code on kccsrv_execute_kcc(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-10-25s4-samdb: reduce the number of samdb opens at startupAndrew Tridgell1-6/+3
Using common parameters means that the ldb_wrap code can return a reference rather than a new database
2009-10-14s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where neededMatthias Dieter Wallnöfer1-1/+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.
2009-09-28s4-kcc: fixed corruption of repsFrom records by kccAndrew Tridgell1-4/+2
We were re-using a stack variable outside of the stack scope
2009-09-28s4-kcc: remove stale repsFrom entries in kcc runAndrew Tridgell1-0/+11
2009-09-18s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2-10/+11
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.
2009-09-12s4-kcc: we should only add to the repsFrom if it doesn't already existAndrew Tridgell1-45/+71
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
2009-09-11s4-kcc: add a very simple KCCAndrew Tridgell3-0/+515
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 :-)