summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-10-07 21:52:25 -0700
committerMatthieu Patou <mat@matws.net>2012-10-07 22:11:47 -0700
commitd57e0d8a6d213543a772a517551cca053cece85e (patch)
tree81dbc1b75ca7fc9b541bd77367eb49d0bafd0c54 /source4/scripting
parent193b15efeaf6cfe89770558cddb2110f7cbd54fe (diff)
downloadsamba-d57e0d8a6d213543a772a517551cca053cece85e.tar.gz
samba-d57e0d8a6d213543a772a517551cca053cece85e.tar.bz2
samba-d57e0d8a6d213543a772a517551cca053cece85e.zip
s4-join: add some documentation
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/join.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py
index 5ddc5db1ad..6d268b2820 100644
--- a/source4/scripting/python/samba/join.py
+++ b/source4/scripting/python/samba/join.py
@@ -426,7 +426,7 @@ class dc_join(object):
def join_add_ntdsdsa(ctx):
'''add the ntdsdsa object'''
- # FIXME: the partition (NC) assignment has to be made dynamic
+
print "Adding %s" % ctx.ntds_dn
rec = {
"dn" : ctx.ntds_dn,
@@ -755,6 +755,9 @@ class dc_join(object):
repl.replicate('DC=ForestDnsZones,%s' % ctx.root_dn, source_dsa_invocation_id,
destination_dsa_guid, rodc=ctx.RODC,
replica_flags=ctx.replica_flags)
+ # FIXME At this point we should add an entry in the forestdns and domaindns NC
+ # (those under CN=Partions,DC=...)
+ # in order to indicate that we hold a replica for this NC
if ctx.RODC:
repl.replicate(ctx.acct_dn, source_dsa_invocation_id,
@@ -795,6 +798,11 @@ class dc_join(object):
logger = logging.getLogger("provision")
logger.addHandler(logging.StreamHandler(sys.stdout))
+ # FIXME we shouldn't do this in all cases
+ # If for some reasons we joined in another site than the one of
+ # DC we just replicated from then we don't need to send the updatereplicateref
+ # as replication between sites is time based and on the initiative of the
+ # requesting DC
print "Sending DsReplicateUpdateRefs for all the partitions"
for nc in ctx.full_nc_list:
ctx.send_DsReplicaUpdateRefs(nc)
@@ -971,6 +979,8 @@ class dc_join(object):
def do_join(ctx):
+ # full_nc_list is the list of naming context (NC) for which we will
+ # send a updateRef command to the partner DC
ctx.nc_list = [ ctx.config_dn, ctx.schema_dn ]
ctx.full_nc_list = [ctx.base_dn, ctx.config_dn, ctx.schema_dn ]