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

(-)a/services/univention-s4-connector/modules/univention/s4connector/s4/dns.py (-2 / +2 lines)
 Lines 1559-1565   def _identify_dns_con_object(s4connector, object): Link Here 
1559
		dc = object['attributes'].get('dc') or object['attributes'].get('DC')
1559
		dc = object['attributes'].get('dc') or object['attributes'].get('DC')
1560
		if oc and 'dnsZone' in oc:
1560
		if oc and 'dnsZone' in oc:
1561
			# forward or reverse zone
1561
			# forward or reverse zone
1562
			if dc and dc[0].endswith('in-addr.arpa'):
1562
			if dc and dc[0].endswith('in-addr.arpa') or dc[0].endswith('ip6.arpa'):
1563
				return 'reverse_zone'
1563
				return 'reverse_zone'
1564
			else:
1564
			else:
1565
				return 'forward_zone'
1565
				return 'forward_zone'
 Lines 1569-1575   def _identify_dns_con_object(s4connector, object): Link Here 
1569
				exploded_dn = str2dn(unicode_to_utf8(object['dn']))
1569
				exploded_dn = str2dn(unicode_to_utf8(object['dn']))
1570
				for multi_rdn in exploded_dn:
1570
				for multi_rdn in exploded_dn:
1571
					(attribute, value, _flags) = multi_rdn[0]
1571
					(attribute, value, _flags) = multi_rdn[0]
1572
					if attribute.lower() == 'zonename' and value.lower().endswith('in-addr.arpa'):
1572
					if attribute.lower() == 'zonename' and (value.lower().endswith('in-addr.arpa') or value.lower().endswith('ip6.arpa')):
1573
						zone_type = 'reverse_zone'
1573
						zone_type = 'reverse_zone'
1574
						break
1574
						break
1575
				return zone_type
1575
				return zone_type

Return to bug 52667