Univention Bugzilla – Attachment 10443 Details for
Bug 51745
S4-Connector creates/modifies IPv6 Reverse Zones as dns/forward_zone in UCS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
51745.patch (text/plain), 1.23 KB, created by
Florian Best
on 2020-07-30 09:40:36 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2020-07-30 09:40:36 CEST
Size:
1.23 KB
patch
obsolete
>diff --git services/univention-s4-connector/modules/univention/s4connector/s4/dns.py services/univention-s4-connector/modules/univention/s4connector/s4/dns.py >index ae6f022912..8874338a0d 100644 >--- services/univention-s4-connector/modules/univention/s4connector/s4/dns.py >+++ services/univention-s4-connector/modules/univention/s4connector/s4/dns.py >@@ -1559,7 +1559,7 @@ def _identify_dns_con_object(s4connector, object): > dc = object['attributes'].get('dc') or object['attributes'].get('DC') > if oc and 'dnsZone' in oc: > # forward or reverse zone >- if dc and dc[0].endswith('in-addr.arpa'): >+ if dc and (dc[0].lower().endswith('.in-addr.arpa') or dc[0].lower().endswith('.ip6.arpa')): > return 'reverse_zone' > else: > return 'forward_zone' >@@ -1569,7 +1569,7 @@ def _identify_dns_con_object(s4connector, object): > exploded_dn = str2dn(unicode_to_utf8(object['dn'])) > for multi_rdn in exploded_dn: > (attribute, value, _flags) = multi_rdn[0] >- if attribute.lower() == 'zonename' and value.lower().endswith('in-addr.arpa'): >+ if attribute.lower() == 'zonename' and (value.lower().endswith('.in-addr.arpa') or value.lower().endswith('.ip6.arpa')): > zone_type = 'reverse_zone' > break > return zone_type
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51745
: 10443