|
128 |
# On a selective replicated DC the local system is not registered in global |
128 |
# On a selective replicated DC the local system is not registered in global |
129 |
# SRV records. But the local settings are required, so execute samba_dnsupdate |
129 |
# SRV records. But the local settings are required, so execute samba_dnsupdate |
130 |
if is_ucr_true samba4/join/dnsupdate; then |
130 |
if is_ucr_true samba4/join/dnsupdate; then |
131 |
samba_dnsupdate --local |
131 |
dnsupdate_tmpfile=$(mktemp) |
|
|
132 |
cp /var/lib/samba/private/dns_update_list "$(dnsupdate_tmpfile)" |
133 |
cat >> "$(dnsupdate_tmpfile)" <<-%EOF |
134 |
SRV _ldap._tcp.pdc._msdcs.\${DNSDOMAIN} \${HOSTNAME} 389 |
135 |
## Also necessary? |
136 |
# SRV _ldap._tcp.pdc._msdcs.\${DNSFOREST} \${HOSTNAME} 389 |
137 |
%EOF |
138 |
samba_dnsupdate --local --update-list="$(dnsupdate_tmpfile)" |
139 |
rm "$(dnsupdate_tmpfile)" |
132 |
fi |
140 |
fi |
133 |
|
141 |
|
134 |
joinscript_save_current_version |
142 |
joinscript_save_current_version |