Bug 34948 - Windows client with umlauts creates error message
Windows client with umlauts creates error message
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.1 R2
Other Linux
: P2 normal (vote)
: UCS@school 3.2.x
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-23 16:42 CEST by Sönke Schwardt-Krummrich
Modified: 2019-03-01 21:16 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
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:
best: Patch_Available+


Attachments
patch (6.81 KB, patch)
2016-09-15 19:27 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2014-05-23 16:42:43 CEST
If the user tries to create a windows client with umlauts "win2ö" the following error message is returned:

LDAP-Fehler Invalid DN syntax: invalid DN

The host object is not created but added to the memberUid attribute of the group "Windows hosts". Diff of the object after adding windows client "win01" and "win2ö":

 dn: cn=Windows Hosts,cn=groups,dc=nstx,dc=local
+uniqueMember: cn=win01,cn=computers,ou=gsmitte,dc=nstx,dc=local
+memberUid: win2ö$
+memberUid: win01$

So the LDAP is inconsistent after trying to add such a computer object!
Comment 1 Florian Best univentionstaff 2016-09-15 13:33:42 CEST
Still present in UCS@school 4.1R2.
Comment 2 Florian Best univentionstaff 2016-09-15 19:27:13 CEST
Created attachment 8014 [details]
patch

relativeDomainName is defined with syntax IA5String (OID=1.3.6.1.4.1.1466.115.121.1.26).
Therefore it allows only ASCII characters.

Maybe we should support internationalized domain names?
The patch starts to use them, but is not yet complete.

15.09.16 18:35:06.225  ADMIN       ( INFO    ) : we should add a dns forward object: zoneDn="zoneName=school.local,cn=dns,dc=school,dc=local", name="win3ö", ip="1.2.3.6"
15.09.16 18:35:06.228  ADMIN       ( ERROR   ) : Post-Create operation failed: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 722, in _create
    self._ldap_post_create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/windows.py", line 482, in _ldap_post_create
    univention.admin.handlers.simpleComputer._ldap_post_create( self )
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 2255, in _ldap_post_create
    self.__add_dns_forward_object( self[ 'name' ], dn, ip )
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1717, in __add_dns_forward_object
    self.__add_dns_forward_object_ipv4(name, zoneDn, ip)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1757, in __add_dns_forward_object_ipv4
    ( 'relativeDomainName', [ name ])])
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 408, in add
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Invalid DN syntax: invalid DN

15.09.16 18:37:44.504  ADMIN       ( ERROR   ) : Post-Create operation failed: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 722, in _create
    self._ldap_post_create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/windows.py", line 482, in _ldap_post_create
    univention.admin.handlers.simpleComputer._ldap_post_create( self )
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 2255, in _ldap_post_create
    self.__add_dns_forward_object( self[ 'name' ], dn, ip ) 
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1717, in __add_dns_forward_object
    self.__add_dns_forward_object_ipv4(name, zoneDn, ip)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1757, in __add_dns_forward_object_ipv4
    ( 'relativeDomainName', [ name ])]) 
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 411, in add
    raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), dn), original_exception=msg)
ldapError: Invalid DN syntax: invalid DN: relativeDomainName=win4ö,zoneName=school.local,cn=dns,dc=school,dc=local

Reproducer:
curl -i 'http://Administrator:univention@xen3.school.local/univention/command/schoolwizards/computers/add' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' --data-binary '{"options":[{"object":{"school":"AlteSchule","type":"windows","name":"win5ö","ip_address":"1.2.3.8","subnet_mask":"255.255.255.0","mac_address":"123123123127","inventory_number":""},"options":null}],"flavor":"schoolwizards/computers"}'
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:26:46 CET
This issue has been filled against UCS@school 3.2. The maintenance with
bug and security fixes for UCS@school 3.2 has ended on Dec 31, 2016.

Customers still on UCS 3.x are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.