Univention Bugzilla – Bug 44369
Rejects for non-ascii accounts are not handled properly due to sqlite encoding problem
Last modified: 2018-05-15 18:36:32 CEST
We should also fix this in UCS 4.2 +++ This bug was initially created as a clone of Bug #44291 +++ If there is a reject for a DN containing non-ascii characters, then the reject cannot be saved into the corresponding sqlite database table. As a result it's not shown as reject and the S4-Connector is contantly trying to sync that object, spamming the s4-cconector.log: ======================================================================== 03.05.2016 01:33:13,727 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=Domänen Gruppe,cn=groups,DC=ar41i2,DC=qa 03.05.2016 01:33:13,754 LDAP (ERROR ): sync_from_ucs: traceback during add object: cn=Domänen Gruppe,cn=groups,DC=ar41i2,DC=qa 03.05.2016 01:33:13,754 LDAP (ERROR ): sync_from_ucs: traceback due to addlist: [('objectClass', ['top', 'group']), ('groupType', [u'-2147483646']), ('sAMAccountName', [u'Dom\xe4nen Gruppe'])] 03.05.2016 01:33:13,754 LDAP (WARNING): sqlite: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. 03.05.2016 01:33:13,755 LDAP (WARNING): sqlite: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. 03.05.2016 01:33:13,756 LDAP (WARNING): sync failed, saved as rejected /var/lib/univention-connector/s4/1462231951.138939 ======================================================================== +++ This bug was initially created as a clone of Bug #44276 +++
Patch merged from UCS 4.1. Advisory: univention-s4-connector.yaml
@@ -188,7 +188,7 @@ class configdb: cur.close() return except lite.Error, e: - ud.debug(ud.LDAP, ud.WARN, "sqlite: %s" % e) + ud.debug(ud.LDAP, ud.ERROR, "sqlite: %s" % e) if self._dbcon: self._dbcon.close() self._dbcon = lite.connect(self.filename) this one too? please merge to 4.3-0
Ok, merged and rebuilt.
OK - patch OK - univention-s4-connector OK - YAML OK - merged to 4.3
<http://errata.software-univention.de/ucs/4.2/263.html>