Bug 47175 - S4-Connector sync to ucs: reject for DNS zone
S4-Connector sync to ucs: reject for DNS zone
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-11 16:19 CEST by Arvid Requate
Modified: 2021-05-14 16:34 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018060421000338, 2019072921000332
Bug group (optional):
Max CVSS v3 score:


Attachments
ticket2018060421000338.patch (731 bytes, patch)
2018-06-11 16:19 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-06-11 16:19:13 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.
============================================================================
Comment 1 Christian Völker univentionstaff 2019-07-31 13:33:12 CEST
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?
Comment 2 Arvid Requate univentionstaff 2019-07-31 13:54:25 CEST
Yes. I've added this Bug to the UCS services board, so it enters the pipeline.
Comment 3 Ingo Steuwer univentionstaff 2021-05-14 15:42:03 CEST
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.