Univention Bugzilla – Attachment 10153 Details for
Bug 44278
w2k3 de - not all GPO links have been taken over
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch setting syncmode to read when starting the S4 connector
0001-Bug-44278-Set-S4-connector-syncmode-to-read-only-whe.patch (text/plain), 2.30 KB, created by
Fathan Vidjaja
on 2019-08-07 14:14:55 CEST
(
hide
)
Description:
Patch setting syncmode to read when starting the S4 connector
Filename:
MIME Type:
Creator:
Fathan Vidjaja
Created:
2019-08-07 14:14:55 CEST
Size:
2.30 KB
patch
obsolete
>From e8084d2393659b8457c66bb6d339af51cf2c754c Mon Sep 17 00:00:00 2001 >From: Fathan Vidjaja <vidjaja@univention.de> >Date: Fri, 26 Jul 2019 15:21:17 +0200 >Subject: [PATCH] Bug #44278 : Set S4-connector syncmode to read only when > starting in takeover, return to default at the end > >--- > .../umc/python/adtakeover/takeover.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py b/management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >index d043a29d20..67e5c016e7 100644 >--- a/management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >+++ b/management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >@@ -1399,9 +1399,10 @@ class AD_Takeover(): > # print > > def start_s4_connector(self, progress): >+ old_mode = self.ucr.get("connector/s4/mapping/syncmode", "sync") > old_sleep = self.ucr.get("connector/s4/poll/sleep", "5") > old_retry = self.ucr.get("connector/s4/retryrejected", "10") >- run_and_output_to_log(["univention-config-registry", "set", "connector/s4/poll/sleep=1", "connector/s4/retryrejected=2"], log.debug) >+ 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) > > # turn off the legacy position_mapping: > run_and_output_to_log(["univention-config-registry", "unset", "connector/s4/mapping/dns/position"], log.debug) >@@ -1422,7 +1423,7 @@ class AD_Takeover(): > wait_for_s4_connector_replication(self.ucr, self.lp, progress) > > # Reset normal relication intervals >- run_and_output_to_log(["univention-config-registry", "set", "connector/s4/poll/sleep=%s" % old_sleep, "connector/s4/retryrejected=%s" % old_retry], log.debug) >+ 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) > returncode = run_and_output_to_log(["/etc/init.d/univention-s4-connector", "restart"], log.debug) > if returncode != 0: > log.error("Restart of univention-s4-connector failed. See %s for details." % (LOGFILE_NAME,)) >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44278
:
8752
|
10108
|
10109
| 10153