summaryrefslogtreecommitdiff
path: root/source4/dsdb/kcc
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-kcc: if we are a GC, auto-add partial replicasAndrew Tridgell2011-10-041-3/+147
| | | | | when we are a global catalog server, the KCC needs to add partial replicas for all domain partitions that we don't have copies of
* s4-kcc: return partial replica NCs in drs showreplAndrew Tridgell2011-09-221-24/+20
| | | | | the showrepl operation should return all our replicated NCs, including partial replicas
* s4-kcc: Fix the list of NCs for DRS replica informationAmitay Isaacs2011-09-071-3/+21
| | | | | AD DNS partitions (DomainDnsZones and ForestDnsZones) are listed under msDs-hasMasterNCs attribute for post-2003 windows servers.
* s4-kcc: fixed _msdcs DNS nameAndrew Tridgell2011-08-251-3/+1
| | | | | | | we need to base this DNS name on the forest DNS name for multi-domain support Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4:dsdb: use tevent_ fn names instaed of legacy event_ onesSimo Sorce2011-08-131-1/+1
|
* s4-kcc: correctly populate the neighbor object when taking information from ↵Matthieu Patou2011-07-311-0/+3
| | | | | | | repsTo Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Jul 31 00:17:17 CEST 2011 on sn-devel-104
* s4-kcc: use dsdb_delete() instead of ldb_delete()Andrew Tridgell2011-07-211-1/+1
| | | | | | | this adds the DSDB_SEARCH_SHOW_DELETED flag, which fixes deletion of deleted objects Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Add intrasite code test switchDave Craft2011-07-142-0/+9
| | | | | | | | | | | | | | kcc_service struct gets a intrasite_code boolean that is filled in via parametric parameter kccsrv:intrasite = [true/false] in smb.conf. This will allow us to continue to utilize old simple KCC topology as continuing default while newer intra-site topology matures further. Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Jul 14 00:19:12 CEST 2011 on sn-devel-104
* Add kccsrv_add_repsFrom() possibility of NULL res argumentDave Craft2011-07-141-2/+2
| | | | | | | | | | | | We need the ability to utilize this function in a different manner. KCC intra-site topology has already vetted the replica as being appropriate to produce a repsFrom from. We do not want kccsrv_add_repsFrom() to produce further checking as was the case for simple topology. Thus if we pass a NULL (res) parameter this extra check will be skipped. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Remove static to allow availability to other KCC filesDave Craft2011-07-141-4/+4
| | | | | | | | kccsrv_replica_flags() and kccsrv_add_repsFrom() need to be available to functions outside kcc_periodic.c Signed-off-by: Andrew Tridgell <tridge@samba.org>
* kcc_connection invocation_id added to structDave Craft2011-07-141-0/+1
| | | | | | | | | | Utilized by KCC to carry the invocation id of the NTDSDSA that we are replicating the name context from. Utilized when NTDSConnection is created (much like dsa_guid tracks the NTDSDSA objectGUID that we are replicating the name context from). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* KCC NTDSConnection should utilize NTDSCONN_OPT_IS_GENERATEDDave Craft2011-07-141-1/+9
| | | | | | | Previously this set an explicit (0x1) value whereas it can now utilize NTDSCONN_OPT_IS_GENERATED from flags.h Signed-off-by: Andrew Tridgell <tridge@samba.org>
* NTDSConnection and NTDSA Site setting flagsDave Craft2011-07-141-8/+0
| | | | | | | | | Flags that were missing from flags.h or were incorrectly defined inline to the kcc_topology.c code (and thus unusable elsewhere). These are the NTDSConnection and NTDSDSA Site settings flags. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:dsdb - always handle the attribute "options" as 32bit unsigned integerMatthias Dieter Wallnöfer2011-03-012-19/+20
| | | | | | | | | | It is defined as LDAP syntax 2.5.5.9 so no need at all to treat it as 64-bit integer. Reviewed by: Kamenim and Metze Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 12:46:15 CET 2011 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-105-5/+5
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* 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.