Univention Bugzilla – Bug 47175
S4-Connector sync to ucs: reject for DNS zone
Last modified: 2021-05-14 16:34:20 CEST
Created attachment 9549 [details] ticket2018060421000338.patch Ticket 2018060421000338 reported a S4-Connector traceback for the main DNS zone (S4 rejected). The issue was caused because the "DC"-attribute of the SOA-record Object (DC=@) was uppercase in Samba/AD. Usually it seems to be lowercase. Anyway, the attached patch fixed the issue. ============================================================================ 08.06.2018 12:38:07,230 LDAP (PROCESS): sync to ucs: [ dns] [ modify] zonename=domain.local,cn=dns,dc=domain,dc=local 08.06.2018 12:38:07,232 LDAP (ERROR ): Unknown Exception during sync_to_ucs 08.06.2018 12:38:07,232 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1563, in sync_to_ucs result = self.property[property_type].ucs_sync_function(self, property_type, object) File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1652, in con2ucs ucs_host_record_create(s4connector, object) File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 988, in ucs_host_record_create newRecord = univention.admin.handlers.dns.host_record.object(None, s4connector.lo, position=None, dn=searchResult[0][0], superordinate=superordinate, attributes=[], update_zone=False) File "/usr/lib/pymodules/python2.7/univention/admin/handlers/dns/host_record.py", line 155, in __init__ univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes) File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 648, in __init__ self._validate_superordinate() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 676, in _validate_superordinate raise univention.admin.uexceptions.insufficientInformation(_('The DN must be underneath of the superordinate.')) insufficientInformation: The DN must be underneath of the superordinate. ============================================================================
Happened on customer. I applied the patch manually but I assume the dns.py might be overwritten in a future update? In this case it will happen again, right?
Yes. I've added this Bug to the UCS services board, so it enters the pipeline.
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.