Lines 1399-1407
class AD_Takeover():
|
Link Here
|
---|
|
1399 |
# print |
1399 |
# print |
1400 |
|
1400 |
|
1401 |
def start_s4_connector(self, progress): |
1401 |
def start_s4_connector(self, progress): |
|
|
1402 |
old_mode = self.ucr.get("connector/s4/mapping/syncmode", "sync") |
1402 |
old_sleep = self.ucr.get("connector/s4/poll/sleep", "5") |
1403 |
old_sleep = self.ucr.get("connector/s4/poll/sleep", "5") |
1403 |
old_retry = self.ucr.get("connector/s4/retryrejected", "10") |
1404 |
old_retry = self.ucr.get("connector/s4/retryrejected", "10") |
1404 |
run_and_output_to_log(["univention-config-registry", "set", "connector/s4/poll/sleep=1", "connector/s4/retryrejected=2"], log.debug) |
1405 |
run_and_output_to_log(["univention-config-registry", "set", "connector/s4/mapping/syncmode=read","connector/s4/poll/sleep=1", "connector/s4/retryrejected=2"], log.debug) |
1405 |
|
1406 |
|
1406 |
# turn off the legacy position_mapping: |
1407 |
# turn off the legacy position_mapping: |
1407 |
run_and_output_to_log(["univention-config-registry", "unset", "connector/s4/mapping/dns/position"], log.debug) |
1408 |
run_and_output_to_log(["univention-config-registry", "unset", "connector/s4/mapping/dns/position"], log.debug) |
Lines 1422-1428
class AD_Takeover():
|
Link Here
|
---|
|
1422 |
wait_for_s4_connector_replication(self.ucr, self.lp, progress) |
1423 |
wait_for_s4_connector_replication(self.ucr, self.lp, progress) |
1423 |
|
1424 |
|
1424 |
# Reset normal relication intervals |
1425 |
# Reset normal relication intervals |
1425 |
run_and_output_to_log(["univention-config-registry", "set", "connector/s4/poll/sleep=%s" % old_sleep, "connector/s4/retryrejected=%s" % old_retry], log.debug) |
1426 |
run_and_output_to_log(["univention-config-registry", "set", "connector/s4/mapping/syncmode=%s" % old_mode, "connector/s4/poll/sleep=%s" % old_sleep, "connector/s4/retryrejected=%s" % old_retry], log.debug) |
1426 |
returncode = run_and_output_to_log(["/etc/init.d/univention-s4-connector", "restart"], log.debug) |
1427 |
returncode = run_and_output_to_log(["/etc/init.d/univention-s4-connector", "restart"], log.debug) |
1427 |
if returncode != 0: |
1428 |
if returncode != 0: |
1428 |
log.error("Restart of univention-s4-connector failed. See %s for details." % (LOGFILE_NAME,)) |
1429 |
log.error("Restart of univention-s4-connector failed. See %s for details." % (LOGFILE_NAME,)) |
1429 |
- |
|
|