Univention Bugzilla – Bug 34948
Windows client with umlauts creates error message
Last modified: 2019-03-01 21:16:56 CET
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!
Still present in UCS@school 4.1R2.
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"}'
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.