View | Details | Raw Unified | Return to bug 40457
Collapse All | Expand All

(-)a/services/univention-samba4/98univention-samba4-dns.inst (-6 / +6 lines)
 Lines 61-70   if [ "$samba4_role" != "RODC" ]; then Link Here 
61
	/usr/share/univention-samba4/scripts/create_spn_account.sh \
61
	/usr/share/univention-samba4/scripts/create_spn_account.sh \
62
		--samaccountname "dns-$hostname" \
62
		--samaccountname "dns-$hostname" \
63
		--serviceprincipalname "DNS/$hostname.$domainname" \
63
		--serviceprincipalname "DNS/$hostname.$domainname" \
64
		--privatekeytab dns.keytab
64
		--privatekeytab dns.keytab || die
65
fi
65
fi
66
66
67
update_nss_group_cache
67
update_nss_group_cache || die
68
68
69
# Reset NTACLs after the connector has synced the accounts
69
# Reset NTACLs after the connector has synced the accounts
70
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ]; then
70
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ]; then
 Lines 129-145   if [ $JS_LAST_EXECUTED_VERSION -le 1 ]; then Link Here 
129
129
130
		if [ "$s4connectorservicedcs" = "$hostname" ]; then
130
		if [ "$s4connectorservicedcs" = "$hostname" ]; then
131
131
132
			/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --dc --gc --pdc "$site"
132
			/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --dc --gc --pdc "$site" || die
133
133
134
		else
134
		else
135
135
136
			/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --dc "$site"
136
			/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --dc "$site" || die
137
137
138
		fi
138
		fi
139
139
140
	elif [ "$samba4_role" = "RODC" ]; then
140
	elif [ "$samba4_role" = "RODC" ]; then
141
141
142
		/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --rodc "$site"
142
		/usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh "$@" --rodc "$site" || die
143
143
144
	fi
144
	fi
145
145
 Lines 148-154   fi Link Here 
148
# On a selective replicated DC the local system is not registered in global
148
# On a selective replicated DC the local system is not registered in global
149
# SRV records. But the local settings are required, so execute samba_dnsupdate
149
# SRV records. But the local settings are required, so execute samba_dnsupdate
150
if is_ucr_true samba4/join/dnsupdate; then
150
if is_ucr_true samba4/join/dnsupdate; then
151
	samba_dnsupdate --local
151
	samba_dnsupdate --local || die
152
fi
152
fi
153
153
154
joinscript_save_current_version
154
joinscript_save_current_version

Return to bug 40457