Problem: new Kopano Users can't login

Problem

Since the last recent kopano update newly created users can’t login to kopano.
Probably you figured out that the new users are lacking the attribute kopanoAccount.

root@ucs:~# univention-ldapsearch -LLL uid=kopano-user | grep kpano
objectClass: kopano-user
kopano4ucsRole: user

Further Analysis

First check the master packages on your UCS Master, they must fit the version on your kopano system

root@ucs-kopano:~# dpkg -l | grep kopano4ucs
ii kopano4ucs          1.5.33   all   Kopano4ucs integration package for Univention Corporate Server
ii kopano4ucs-app      1.5.33   all   Package for UCS app specific logic
ii kopano4ucs-lib      1.5.33   all   Library package for common Kopano4ucs functions
ii kopano4ucs-schema   1.5.33   all   LDAP schema for the Kopano4ucs integration
ii kopano4ucs-udm      1.5.33   all   UDM extensions for the Kopano4ucs integration
ii kopano4ucs-webapp   1.5.33   all   Kopano4ucs kopano-webapp integration package for Univention Corporate Server
ii kopano4ucs-z-push   1.5.33   all   Meta package for Z-Push installation
root@ucs-master:~# dpkg -l | grep kopano4ucs
ii kopano4ucs-lib      1.5.13   all   Library package for common Kopano4ucs functions
ii kopano4ucs-schema   1.5.13   all   LDAP schema for the Kopano4ucs integration
ii kopano4ucs-udm      1.5.13   all   UDM extensions for the Kopano4ucs integration

Here you can see they don’t.

Solution

In order to update the master packages you must perform the steps the App Center will do while updating the kopano App.

  1. activate the kopano App Center Repository on the master
    copy the respective repo line from your kopano system onto your master
grep kopano-core /etc/apt/sources.list.d/20_ucs-online-component.list 
deb https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ kopano-core_<TIMESTAMP>/all/
deb https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ kopano-core_<TIMESTAMP>/amd64/
cat <<%EOF >>/etc/apt/sources.list.d/20_ucs-online-component.list

deb https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ kopano-core_<TIMESTAMP>/all/
deb https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ kopano-core_<TIMESTAMP>/amd64/
%EOF
  1. update the master packages
root@ucs-master:~# univention-install kopano4ucs-lib kopano4ucs-schema kopano4ucs-udm
  1. remove the kopano App Center Repostory (if necessary)
    sed -i ‘/.kopano-core./d’ /etc/apt/sources.list.d/20_ucs-online-component.list

Now you can modify the User by reenabling the kopano User Attribute. Check the User for the necessary kopano attributes.

root@ucs:~# univention-ldapsearch -LLL uid=kopano-user | grep kpano
kopanoAccount: 1
objectClass: kopano-user
kopanoAdmin: 0
kopanoSharedStoreOnly: 0
kopano4ucsRole: user
Mastodon