--- /home/univention-support/97univention-s4-connector.inst.bak 2023-12-28 16:40:57.646749143 +0100 +++ 97univention-s4-connector.inst 2024-01-02 12:50:10.164262592 +0100 @@ -256,8 +256,17 @@ ucs_addServiceToLocalhost "${NAME}" "$@" || die univention-config-registry set connector/s4/autostart=yes - /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "objectClass=dnsZone" --first + #/usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "objectClass=dnsZone" --first + + dcs=$(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ + "(objectClass=univentionDomainController)" cn \ + | ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p') + for dc in ${dcs//\\n/ }; do + /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "relativeDomainName=$dc" --first + done + /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "univentionObjectType=dns/reverse_zone" --first /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "univentionObjectType=container/cn" --first + /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "univentionObjectType=container/msgpo" --first /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter "univentionObjectType=container/ou" --first if is_ucr_true connector/s4/listener/disabled; then