Univention Bugzilla – Bug 43478
Post-Installation of Samba4 in UCS@School headquarters fails, tries to join into school DC
Last modified: 2017-09-22 15:03:53 CEST
Created attachment 8396 [details] improve_s4_connector_detection.diff If Samba/AD shall be installed later on the UCS@school Master in a Multiserver environment, after UCS@school Samba/AD DC Slaves have been joined, then it is important to set these two UCR variables first: ucr set samba4/provision/primary=yes \ connector/s4/allow/secondary=yes Otherwise the univention-samba4 joinscript will attempt to join into a school. The attached patch should improve the detection of the S4-Connector, so that it "just works" and manual setting of the UCR variable is not required. This is a) good for UCS@school and b) simplifies the code a bit in both, the samba4 and the s4connector join scripts. +++ This bug was initially created as a clone of Bug #30131 +++ +++ This bug was initially created as a clone of Bug #40432 +++
Package rebuilt with patch. Advisory: univention-s4-connector.yaml
The s4 connector script now uses univention-samba4 functions which have been added. The bug number is in both YAML files, so the update will be announced at once. It won't work if univention-samba4 is already installed in the old version. We've have had a similar situation in UCS 4.1. So, I think we should update the dependency.
Ok, dependency added.
OK - normal setup s4 master + s4 slave OK - school master + school s4 slave OK + s4 on master OK + new s4 school slave OK - school s4 master + school s4 slave FAIL s4 master + s4 backup * "standalone" samba on backup (should join to master) * s4 connector is running (should not be started, already running on master)
As discussed, I've replaces the ugly "samba-tool drs showrepl" detection (introduced for Bug #33399) by LDAP search filters adjusted for UCS@school.
OK - normal setup s4 master + s4 slave OK - s4 school master + s4 school backup (joins into master, no s4 connector) TODO - school master + school s4 slave TODO + s4 on master TODO + new s4 school slave TODO - school s4 master + school s4 slave
OK - school master + school s4 slave OK + s4 on master OK + new s4 school slave OK + new s4 school backupp OK - school s4 master + school s4 slave OK - univention-s4-connector.yaml OK - univention-samba4.yaml
<http://errata.software-univention.de/ucs/4.2/42.html> <http://errata.software-univention.de/ucs/4.2/44.html>
*** Bug 30131 has been marked as a duplicate of this bug. ***