|
116 |
/usr/share/univention-admin-tools/univention-dnsedit $@ --ignore-exists $domainname add srv ldap._tcp.dc msdcs 0 100 389 $hostname.$domainname. |
116 |
/usr/share/univention-admin-tools/univention-dnsedit $@ --ignore-exists $domainname add srv ldap._tcp.dc msdcs 0 100 389 $hostname.$domainname. |
117 |
|
117 |
|
118 |
|
118 |
|
|
|
119 |
|
120 |
Domain_GUID="$(ldbsearch -H "$LDB_URI" -b "$domaindn" -s base $ldb_control objectGUID | sed -n 's/^objectGUID: \(.*\)/\1/p')" |
121 |
if [ -n "$Domain_GUID" ]; then |
122 |
## _ldap._tcp.cd12388d-d1ca-45b5-a427-d91071c3b7b1.domains._msdcs IN SRV 0 100 389 qamaster |
123 |
/usr/share/univention-admin-tools/univention-dnsedit $@ --ignore-exists $domainname add srv ldap._tcp.$Domain_GUID.domains msdcs 0 100 389 $hostname.$domainname. |
124 |
else |
125 |
echo "Error: Domain_GUID was not found!" |
126 |
fi |
119 |
Partition_GUID="$(ldbsearch -H "$LDB_URI" -b "CN=$windows_domain,CN=Partitions,CN=Configuration,$domaindn" $ldb_control objectGUID | sed -n 's/^objectGUID: \(.*\)/\1/p')" |
127 |
Partition_GUID="$(ldbsearch -H "$LDB_URI" -b "CN=$windows_domain,CN=Partitions,CN=Configuration,$domaindn" $ldb_control objectGUID | sed -n 's/^objectGUID: \(.*\)/\1/p')" |
120 |
if [ -n "$Partition_GUID" ]; then |
128 |
if [ -n "$Partition_GUID" ]; then |
121 |
## _ldap._tcp.cd12388d-d1ca-45b5-a427-d91071c3b7b1.domains._msdcs IN SRV 0 100 389 qamaster |
129 |
## remove wrong record: _ldap.PartitionGUID.domains._msdcs IN SRV 0 100 389 qamaster |
122 |
/usr/share/univention-admin-tools/univention-dnsedit $@ --ignore-exists $domainname add srv ldap.$Partition_GUID.domains msdcs 0 100 389 $hostname.$domainname. |
130 |
/usr/share/univention-admin-tools/univention-dnsedit $@ --ignore-exists $domainname remove srv ldap.$Partition_GUID.domains msdcs 0 100 389 $hostname.$domainname. |
123 |
else |
131 |
else |
124 |
echo "Error: Partition_GUID was not found!" |
132 |
echo "Error: Partition_GUID was not found!" |
125 |
fi |
133 |
fi |
126 |
|
134 |
|
127 |
## TODO: the next two might collide/duplicate the ones created by 15univention-heimdal-kdc.inst |
135 |
## TODO: the next two might collide/duplicate the ones created by 15univention-heimdal-kdc.inst |
128 |
## _kerberos._tcp IN SRV 0 100 88 qamaster |
136 |
## _kerberos._tcp IN SRV 0 100 88 qamaster |