Univention Bugzilla – Attachment 7429 Details for
Bug 40494
bind9 doesn't show *._msdcs DNS records after univention-ad-takeover
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
move_cn_system_dns_zones.sh
move_cn_system_dns_zones.sh (text/x-sh), 731 bytes, created by
Arvid Requate
on 2016-01-25 14:18:18 CET
(
hide
)
Description:
move_cn_system_dns_zones.sh
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2016-01-25 14:18:18 CET
Size:
731 bytes
patch
obsolete
>#!/bin/bash > >src='CN=System' >dst='DC=DomainDnsZones' > >set -e >eval "$(ucr shell)" > >while read DN; do > echo "Moving ${DN}" > for objectClass in dnsZone dnsNode; do > ldbsearch -H /var/lib/samba/private/sam.ldb \ > --debug-stderr \ > -b "${DN}" \ > objectClass="${objectClass}" \ > | sed "s/CN=MicrosoftDNS,${src},/CN=MicrosoftDNS,${dst},/" \ > | grep -v '^objectGUID: ' \ > | ldbadd -H /var/lib/samba/private/sam.ldb > done \ > && ldbdel -H /var/lib/samba/private/sam.ldb --recursive "${DN}" >done < <(ldbsearch -H /var/lib/samba/private/sam.ldb \ > -b "CN=MicrosoftDNS,${src},${samba4_ldap_base}" -s one \ > '(&(objectClass=dnsZone)(!(dc=RootDNSServers)))' dn \ > | ldapsearch-wrapper \ > | sed -n 's/^dn: //p') > >service bind9 restart >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 40494
: 7429