summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/kcc
Commit message (Collapse)AuthorAgeFilesLines
* s4-kcc: fixed valgrind errors in drs replicaInfo server sideAndrew Tridgell2010-11-261-7/+5
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Nov 26 03:52:30 CET 2010 on sn-devel-104
* s4-kcc: disable the NDR printing of DRS getinfo requestsAndrew Tridgell2010-11-241-0/+4
|
* s4-rodc: enable the DRS_GET_ALL_GROUP_MEMBERSHIP flag for RODC replicationAndrew Tridgell2010-11-181-0/+1
| | | | see the description of this flag in [MS-DRSR]
* s4-kcc: fixed result_last_attempt in showreplAndrew Tridgell2010-11-171-0/+1
|
* s4-debug: lowered the debug level of some unimportant messagesAndrew Tridgell2010-11-081-2/+2
|
* s4:dsdb/kcc: fix memory leak in kcctpl_copy_output_edges()Stefan Metzmacher2010-11-041-0/+1
| | | | metze
* s4 dsdb kcc: Prefer msDS-hasMasterNCs over hasMasterNCs when replicatingKai Blin2010-10-231-5/+10
|
* s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer2010-10-152-20/+20
| | | | | | | | | "samdb_result_uint64" and "samdb_result_string" We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this reduces only code redundancies. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* samdb: Add flags argument to samdb_connect().Jelmer Vernooij2010-10-101-1/+1
|
* s4:dsdb - substitute the "show_deleted" with the "show_recycled" controlMatthias Dieter Wallnöfer2010-10-031-1/+1
| | | | | | | | | | | We intend to see always all objects with the "show_deleted" control specified. To see also recycled objects (beginning with 2008_R2 function level) we need to use the new "show_recycled" control. As far as I see this is only internal code and therefore we don't run into problems if we do substitute it. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-kcc: silence "Testing kcctpl_create_intersite_connections" messageAndrew Tridgell2010-10-031-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Oct 3 04:51:44 UTC 2010 on sn-devel-104
* s4-kcc: remove stale repsTo entries in the KCCAndrew Tridgell2010-10-021-0/+32
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-kcc: fixed the replica_flags in repsFrom in the kccAndrew Tridgell2010-09-291-31/+72
| | | | | | | if our calculated replica_flags doesn't match the ones in our repsFrom then update it Pair-Programmed-With: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-kcc: fixed a incorrect context to kcctpl_get_all_bridgehead_dcsAndrew Tridgell2010-09-271-1/+1
|
* s4-kcc: don't print "Testing kcctpl_create_intersite_connections"Andrew Tridgell2010-09-271-1/+1
| | | | log level 0 is excessive for this!
* s4/dsdb:kcc: cleanup and improve readabilityAnatoliy Atanasov2010-09-231-4/+5
|
* s4:dsdb/kcc: we don't need to manually allocate [out,ref] pointers anymoreStefan Metzmacher2010-09-231-6/+1
| | | | | | metze Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-kcc: the kcc should not be setting the repsTo attributeAndrew Tridgell2010-09-231-32/+2
| | | | | repsTo is set by other DCs, when they ask to be notified about changes in a partition
* s4-kcc: added service->am_rodcAndrew Tridgell2010-09-234-21/+14
| | | | use a rodc flag on the service instead of calling samdb_rodc each time
* s4-kcc: pass the service context into the kcc connection codeAndrew Tridgell2010-09-232-64/+65
| | | | this will be used for the RODC changes needed for the kcc
* s4-kcc: a bit more debug info on repsFrom creationAndrew Tridgell2010-09-201-1/+7
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-kcc: removed redundent loop check Andrew Tridgell2010-09-151-1/+1
| | | | el has already been checked for NULL
* s4-dreplsrv: Do allocations on long-living context so that callback gets calledKamen Mazdrashki2010-09-091-1/+1
|
* s4:dsdb/kcc: use irpc_binding_handle_by_name()Stefan Metzmacher2010-09-031-6/+39
| | | | metze
* s4-kcc: Notify dreplsrv that Topology has changedKamen Mazdrashki2010-08-281-0/+29
|
* s4-kcc: Assert when unexpected repsFromToBlob version is passedKamen Mazdrashki2010-08-281-2/+4
| | | | | | | At present we only support v1 structures (Win2k3 and earlier), so it is good to make it obvious. In case we start supporting v2 we will be able to notice this function should be refactored right away
* s4:kcc_connection.c - fix typo in error messageMatthias Dieter Wallnöfer2010-08-071-2/+2
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-163-5/+5
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-1/+1
|
* s4:kcc_periodic.c - fix counter typesMatthias Dieter Wallnöfer2010-04-271-1/+1
| | | | We are counting LDB objects here -> therefore "unsigned"
* s4-drs: add entries to repsTo based on calculated repsFromAndrew Tridgell2010-04-271-2/+30
| | | | | | This is based on the documentation: "the KCC will automatically create the Reps-To attributes on destination DSAs based on other DSAs Reps-From entries."
* s4-drepl: don't setup a repsFrom from a DC that isn't a master for a NCAndrew Tridgell2010-04-271-5/+50
| | | | use hasMasterNCs to see what NCs we should be pulling from each DC
* s4-drs: samdb_is_rodc() function and new samdb_rodc() functionFernando J V da Silva2010-04-221-3/+15
| | | | | | | | | | | 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.
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-1/+1
| | | | | | Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-1/+9
| | | | | | | | 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/kcc/*.c - fix up wrong typed countersMatthias Dieter Wallnöfer2010-03-165-20/+22
|
* s4-drs: DsGetReplInfo(), infoType = DS_REPL_INFO_METADATA_2_FOR_OBJErick Nogueira do Nascimento2010-03-161-80/+284
| | | | | | Implementation of the DS_REPL_INFO_METADATA_2_FOR_OBJ infoType for DsGetReplInfo() Signed-off-by: Andrew Tridgell <tridge@samba.org>
* use unsigned instead of uint32_t for LDB counters.Crístian Deives2010-03-121-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.
* nTDSConnection creationCrístian Deives2010-03-122-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.
* spanning tree computationCrístian Deives2010-03-121-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.
* new function kcctpl_color_verticesCrístian Deives2010-03-121-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.
* s4:kcc - Change some counter variables to be unsignedMatthias Dieter Wallnöfer2010-03-052-4/+5
| | | | | The upper limits are unsigned variables therefore also the counter variables need to be like that.
* s4/drs: Propagate drsuapi_DsReplicaGetInfoRequest... changes into source codeKamen Mazdrashki2010-02-241-2/+2
|
* s4/drs:kccdrs_replica_get_info_obj_metadata implementationAnatoliy Atanasov2010-02-171-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
* s4-kcc: remove a qsort() that snuck into the new topology codeAndrew Tridgell2010-02-161-2/+1
|
* s4-kcc: remove search_onelevel_with_deleted() in kccAndrew Tridgell2010-02-161-52/+3
| | | | | | Use dsdb_search() instead Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_search_one() and cleanup dsdb_find_dn_by_guid()Andrew Tridgell2010-02-162-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>
* s4-drs: DsGetReplInfo() refactoringErick Nogueira do Nascimento2010-02-161-263/+190
|
* s4-drs: DsReplGetInfo() for DS_REPL_INFO_REPSTO infoTypeErick Nogueira do Nascimento2010-02-161-4/+142
| | | | Implements the DS_REPL_INFO_REPSTO infoType of DsReplGetInfo().