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

(-)a/services/univention-s4-connector/modules/univention/s4connector/s4/dns.py (-1 / +4 lines)
 Lines 1560-1566   def _identify_dns_con_object(s4connector, object): Link Here 
1560
1560
1561
	if object.get('attributes'):
1561
	if object.get('attributes'):
1562
		oc = object['attributes'].get('objectClass')
1562
		oc = object['attributes'].get('objectClass')
1563
		dc = object['attributes'].get('dc')
1563
		for attr in ('dc', 'DC'):
1564
			dc = object['attributes'].get(attr)
1565
			if dc:
1566
				break
1564
		if oc and 'dnsZone' in oc:
1567
		if oc and 'dnsZone' in oc:
1565
			# forward or reverse zone
1568
			# forward or reverse zone
1566
			if dc and dc[0].endswith('in-addr.arpa'):
1569
			if dc and dc[0].endswith('in-addr.arpa'):

Return to bug 49643