Univention Bugzilla – Bug 36477
Handle attributes that contain only space characters
Last modified: 2020-06-22 18:25:15 CEST
Created attachment 6313 [details] connector.log excerpt with traceback If at least one of the following attributes contains only spaces (or only one space character) in AD, the sync will be rejected: - pager - homePhone - mobile - telephoneNumber - ... probably more It is _not_ possible to set those attributes to one or more spaces with the normal GUI-Tool (dsa.msc). Nevertheless, it is possible with tools such as ADSIEdit (adsiedit.msc) and commandline tools. I will attach a connector.log excerpt with the traceback. Active Directory attribute telephoneNumber: http://msdn.microsoft.com/en-us/library/ms680027%28v=vs.85%29.aspx There it says: > Syntax: String(Unicode) > A case-insensitive Unicode string. I can't think of a scenario where having only spaces as telephoneNumber makes sense, but I also think that this should not break the AD-Connector synchronisation. Reported via Ticket#2014093021000791, verified with UCS 3.2-3 errata 234 and Windows Server 2012 R2.
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
06.11.2014 11:56:41,592 LDAP (PROCESS): sync to ucs: [ user] [ modify] uid=ada,cn=users,dc=shadow,dc=org,dc=tld 06.11.2014 11:56:41,600 LDAP (ERROR ): Unknown Exception during sync_to_ucs 06.11.2014 11:56:41,621 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/connector/__init__.py", line 1269, in sync_to_ucs result = self.modify_in_ucs(property_type, object, module, position) File "/usr/lib/pymodules/python2.6/univention/connector/__init__.py", line 1131, in modify_in_ucs return ucs_object.modify() and self.__modify_custom_attributes(property_type, object, ucs_object, module, position) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 364, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 943, in _modify self.lo.modify(self.dn, ml, ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 419, in modify raise univention.admin.uexceptions.ldapError, _err2str(msg) ldapError: Invalid syntax: telephoneNumber: value #0 normalization failed 06.11.2014 11:56:41,624 LDAP (WARNING): sync to ucs was not successfull, save rejected 06.11.2014 11:56:41,625 LDAP (WARNING): object was: CN=Ada Lovelace,CN=Users,DC=DomA1,DC=org,DC=tld