Hello,
once again I am writing in this forum, as I am at my wits’ end. After being a bit behind with the patches due to illness, I wanted to bring the UCS from errata910 to errata966 version 4.4-7 the day before yesterday. In the process, a Kopano component was also updated.
The update apparently went through cleanly:
Starting dist-upgrade at Di 4. Mai 08:11:11 CEST 2021
...
The update has been finished successfully at Di 4. Mai 08:15:46 CEST 2021.
Afterwards I restarted the UCS VM because the errata contained a kernel update.
After checking the functionality of UCS, I also deleted the VM snapshot.
This morning there were severe problems with the login of the various devices, which I was able to trace back to the following via SSH research (login WebGUI just as not possible as with other users as “root”):
failed to contact LDAP server: cannot connect with univention-ldapsearch
I tried:
systemctl status slapd.service
which gives:
slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd; generated; vendor preset: enabled)
Active: active (running) since Thu 2021-05-06 09:21:12 CEST; 8h ago
Docs: man:systemd-sysv-generator(8)
Main PID: 82300 (slapd)
CPU: 16min 4.158s
CGroup: /system.slice/slapd.service
└─82300 /usr/sbin/slapd -h ldapi:/// ldap://:7389/ ldaps://:7636/
univention-ldapsearch
gives:
ldap_bind: Invalid credentials (49)
However,
/usr/sbin/udm users/user list
seems to be complete.
Checking /var/log/univention/server_password_change.log
reveals:
Starting server password change (Tue May 4 01:04:34 CEST 2021)
No server password change scheduled for today, terminating without a change
Starting server password change (Wed May 5 01:09:33 CEST 2021)
No server password change scheduled for today, terminating without a change
Starting server password change (Thu May 6 01:09:56 CEST 2021)
Proceeding with regular server password change scheduled for today
run-parts: executing /usr/lib/univention-server/server_password_change.d/50univention-mail-server prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/70kopano prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/portal-server-password-rotate prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-admin-diary prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-bind prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-dhcp prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-directory-manager-rest prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-libnss-ldap prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-nscd prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-s4-connector prechange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-samba4 prechange
Object modified: cn=ucs,cn=dc,cn=computers,dc=somedomain,dc=local
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-samba4 localchange
Modified 1 records successfully
Changed password OK
Stopping samba-ad-dc (via systemctl): samba-ad-dc.service.
Stopping smbd (via systemctl): smbd.service.
Stopping nmbd (via systemctl): nmbd.service.
Starting nmbd (via systemctl): nmbd.service.
Starting smbd (via systemctl): smbd.service.
Starting samba-ad-dc (via systemctl): samba-ad-dc.service.
run-parts: executing /usr/lib/univention-server/server_password_change.d/50univention-mail-server postchange
File: /etc/listfilter.secret
Multifile: /etc/postfix/ldap.distlist
Multifile: /etc/postfix/ldap.groups
Multifile: /etc/postfix/ldap.external_aliases
Multifile: /etc/postfix/ldap.sharedfolderlocal
Multifile: /etc/postfix/ldap.virtualwithcanonical
Multifile: /etc/postfix/ldap.virtual_mailbox
Multifile: /etc/postfix/ldap.sharedfolderremote
Multifile: /etc/postfix/ldap.sharedfolderlocal_aliases
Multifile: /etc/postfix/ldap.virtual
Multifile: /etc/postfix/ldap.canonicalrecipient
Multifile: /etc/postfix/ldap.transport
Multifile: /etc/postfix/ldap.canonicalsender
Multifile: /etc/postfix/ldap.saslusermapping
Multifile: /etc/postfix/ldap.virtualdomains
run-parts: executing /usr/lib/univention-server/server_password_change.d/70kopano postchange
Setting kopano/cfg/ldap/ldap_bind_passwd
Module: kopano-cfg
dpkg-query: no packages found matching kopano4ucs-multiserver
run-parts: executing /usr/lib/univention-server/server_password_change.d/portal-server-password-rotate postchange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-admin-diary postchange
549eadff-199f-4ae6-8620-2ed68b4ea7c3
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-bind postchange
run-parts: /usr/lib/univention-server/server_password_change.d/univention-bind exited with return code 1
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-dhcp postchange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-directory-manager-rest postchange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-libnss-ldap postchange
File: /etc/libnss-ldap.conf
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-nscd postchange
Restarting nscd (via systemctl): nscd.service.
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-s4-connector postchange
run-parts: executing /usr/lib/univention-server/server_password_change.d/univention-samba4 postchange
done (Thu May 6 01:10:46 CEST 2021)
Starting server password change (Do 6. Mai 08:27:32 CEST 2021)
Proceeding with regular server password change scheduled for today
ldap_bind: Invalid credentials (49)
failed to contact LDAP server: cannot connect with univention-ldapsearch
Starting server password change (Do 6. Mai 18:06:36 CEST 2021)
Proceeding with regular server password change scheduled for today
ldap_bind: Invalid credentials (49)
failed to contact LDAP server: cannot connect with univention-ldapsearch
Not good!
Trying manually with:
ucr set server/password/interval=-1
/usr/lib/univention-server/server_password_change
ucr set server/password/interval=21 (default)
also does not work, again:
failed to contact LDAP server: cannot connect with univention-ldapsearch
univention-run-join-scripts
does not help either, it fails at first at
20univention-directory-policy.inst
with
ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}
Can someone please help me get the credentials back in sync?
BR,
TP