Bug 47430

Summary: guess_ad_domain_language() in the UMC AD wizard is broken
Product: UCS Reporter: Felix Botner <botner>
Component: AD ConnectorAssignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.3   
Target Milestone: UCS 4.3-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: 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: 45779    
Bug Blocks:    

Description Felix Botner univentionstaff 2018-08-01 12:34:17 CEST
guess_ad_domain_language() in the UMC AD wizard is broken

['/usr/sbin/univention-adsearch', 'sAMAccountName=Dom\xe4nen-Admins']
adsearch "sAMAccountName=Domänen-Admins" stderr: Traceback (most recent call last):
  File "/usr/sbin/univention-adsearch", line 228, in <module>
    msgid = lo.search_ext(configRegistry['%s/ad/ldap/base' % CONFIGBASENAME], ldap.SCOPE_SUBTREE, filter.encode('utf8'), serverctrls=[lc1, lc2])
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 18: invalid continuation byte

therefor connector/ad/mapping/group/language is always en and the mapping for domain-admins domänen-Admins is broken
Comment 1 Arvid Requate univentionstaff 2018-08-01 12:40:31 CEST
9e15ebac37 | fix regression of Bug #45779
6626bb4b5f | Advisory
Comment 2 Felix Botner univentionstaff 2018-08-01 12:50:27 CEST
OK - UMC ad setup
OK - YAML
Comment 3 Arvid Requate univentionstaff 2018-08-15 13:14:32 CEST
<http://errata.software-univention.de/ucs/4.3/168.html>