Problem
The server is experiencing issues completing the Samba join scripts, which affects other related modules. The join.log file provides the following errors:
ERROR: More than one S4 Connector hosts available: primary slave1 slave2 slave3 slave4
ERROR: If this is a central (non-school) Replica Directory Node, make sure every
ERROR: school Replica Directory Node has the 'univentionService=S4 SlavePDC' set!
ERROR: Possible broken school Replica Directory Nodes: slave1 slave2 slave3 slave4
EXITCODE=1
Issue
The error indicates that the identified slaves (slave1, slave2, slave3, slave4) are missing the attribute univentionService=S4 SlavePDC
. The installation script 96univention-samba4.inst
checks for existing S4 controllers with the following command:
univention-ldapsearch -LLL "(&(!(univentionService=S4 SlavePDC))(univentionService=S4 Connector)(objectClass=univentionDomainController))" cn
The script that uses this command fails when more than one result is returned, which should normally only include the primary. The slaves are missing the UDM object service: S4 SlavePDC
, causing the script to receive more than one result.
Solution
To resolve this issue, you need to add the missing attribute to the slaves. For each slave (e.g., slave1), run the following command to add the S4 SlavePDC
service attribute:
udm computers/domaincontroller_slave modify --dn cn=slave1,cn=dc,cn=server,cn=computers,ou=schule1,dc=schule,dc=de --append "service=S4 SlavePDC"
Replace slave1
with each of the other slave names (slave2, slave3, slave4) accordingly.