Problems after upgrade to v. 5


I figured I can’y change user password after upgrade to v. 5 so I ran diagnostic and get “S4 connector rejects”.
I followed some topics but cannot get it to work.


UCS rejected

    1:   UCS DN: <NORESYNC=broken file:1668606664.576182>;unknown
          S4 DN: <not found>
         Filename: /var/lib/univention-connector/s4/1668606664.576182

S4 rejected

        last synced USN: 3495197

than when I try run script I get following:

/usr/share/univention-s4-connector/ '<NORESYNC=broken file:1668606664.576182>;unknown'
Traceback (most recent call last):
  File "/usr/share/univention-s4-connector/", line 73, in <module>
  File "/usr/share/univention-s4-connector/", line 55, in remove_ucs_rejected
    if univention.uldap.access.compare_dn(ucs_dn, rejected_dn):
  File "/usr/lib/python3/dist-packages/univention/", line 950, in compare_dn
    return [sorted((x.lower(), y, z) for x, y, z in rdn) for rdn in ldap.dn.str2dn(a)] == [sorted((x.lower(), y, z) for x, y, z in rdn) for rdn in ldap.dn.str2dn(b)]
  File "/usr/lib/python3/dist-packages/ldap/", line 52, in str2dn
    return ldap.functions._ldap_function_call(None,_ldap.str2dn,dn,flags)
  File "/usr/lib/python3/dist-packages/ldap/", line 55, in _ldap_function_call
    result = func(*args,**kwargs)

How to fix this issue?

OK, some update and additional informations.
There was a bunch other errors after update - some LDAP and others which I already fixed following solutions I found on forum.
So the password changing, adding users - it already works (I think it was LDAP errors related).
But S4 Connector rejects still exist…

How to fix it? Any help?