(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)
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,