Bug 41406

Summary: S4-Connector tracebacks due to new _ldap._tcp.DomainDnsZones records.
Product: UCS Reporter: Arvid Requate <requate>
Component: Samba4Assignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: birkefeld, gohmann, requate
Version: UCS 3.2Flags: requate: Patch_Available+
Target Milestone: UCS 3.2-8-errata   
Hardware: Other   
OS: Linux   
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?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on: 36101    
Bug Blocks: 41488    

Description Arvid Requate univentionstaff 2016-06-01 15:13:38 CEST
The patch of Bug #36101 needs to be backported to UCS 3.2 as well, due to the errata3.2-8 update to Samba 4.3.7. For UCS 3.3 this has already been done
(see Bug #40698 Comment 8).


+++ This bug was initially created as a clone of Bug #36101 +++

Samba 4.2 creates additional SRV records in DNS, which are not accepted by the UDM syntax class ipProtocolSRV. This causes rejects in the S4-Connector:
==============================================================================
root@master50:~# univention-s4connector-list-rejected                                      

UCS rejected


S4 rejected

    1:    S4 DN: DC=_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones,DC=ar40i1.qa,CN=MicrosoftDNS,CN=System,DC=ar40i1,DC=qa
         UCS DN: <not found>
    2:    S4 DN: DC=_ldap._tcp.ForestDnsZones,DC=ar40i1.qa,CN=MicrosoftDNS,CN=System,DC=ar40i1,DC=qa
         UCS DN: <not found>
    3:    S4 DN: DC=_ldap._tcp.DomainDnsZones,DC=ar40i1.qa,CN=MicrosoftDNS,CN=System,DC=ar40i1,DC=qa
         UCS DN: <not found>
    4:    S4 DN: DC=_ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones,DC=ar40i1.qa,CN=MicrosoftDNS,CN=System,DC=ar40i1,DC=qa
         UCS DN: <not found>
==============================================================================


Can't find the MS docs where these are specified but apparently that's what Active Directroy creates. Note the "DomainDnsZones" and "ForestDnsZones" parts in the DNS names (these are not to be confused with the equally named LDAP partitions in the Samba4/AD Directory Service).



+++ This bug was initially created as a clone of Bug #35319 +++
Comment 1 Arvid Requate univentionstaff 2016-06-07 12:46:52 CEST
Fixed by backporting univention-s4-connector commit r55263 from UCS 4.0:
 * Use udm.handlers.src_record.unmapName (Bug #36101)

Advisory: univention-s4-connector.yaml

Test Setup: Install a plain UCS 3.2, update to 3.2-8 with latest errata, then install univention-s4-connector and run univention-run-join-scripts. That should reproduce the rejects. Installing the updated uinvention-s4-connector from apt should resolve the rejects.
Comment 2 Stefan Gohmann univentionstaff 2016-06-08 07:28:07 CEST
Code review: OK

Tests: I was unable to reproduce the original issue. Anyway, the change makes sense.

YAML: OK, minor adjustment r69934
Comment 3 Janek Walkenhorst univentionstaff 2016-06-08 14:01:18 CEST
<http://errata.software-univention.de/ucs/3.2/433.html>