DEBUG python/samba/netcmd/fsmo.py
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2019 12:54:45 +0000 (14:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 07:36:38 +0000 (09:36 +0200)
python/samba/netcmd/fsmo.py

index a6eca6eb407a9c1b10f62e2b9e4c9e702376d87c..5fc0dd5792d16f649bd4b530aacd5a894e91ae49 100644 (file)
@@ -125,6 +125,8 @@ def transfer_dns_role(outf, sambaopts, credopts, role, samdb):
             (num, msg) = e5.args
             raise CommandError("Failed to add role '%s': %s" % (role, msg))
 
+        #new_host_dns_name = samdb.host_dns_name()
+        outf.write("drsuapi connect: %s" % new_host_dns_name)
         try:
             connection = samba.drs_utils.drsuapi_connect(new_host_dns_name,
                                                          lp, creds)
@@ -136,6 +138,7 @@ def transfer_dns_role(outf, sambaopts, credopts, role, samdb):
             drsuapi_handle = connection[1]
             req_options = drsuapi.DRSUAPI_DRS_WRIT_REP
             NC = role_object[18:]
+            outf.write("drsuapi ReplicaSync %s:" % NC)
             samba.drs_utils.sendDsReplicaSync(drsuapi_connection,
                                               drsuapi_handle,
                                               master_guid,