I have issue with upgrade 4.1-5 to 4.2-0, please help me for check.
Loading the database from the LDIF dump failed with the following
error while running slapadd:
5bcf680f OVER: Loading Translog Overlay
5bcf680f OVER: db_init
5bcf680f OVER: Configuring Translog Overlay
5bcf680f OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
**5bcf680f <= str2entry: str2ad(UNIVENTIONPORTALSHOWLOGIN): attribute type undefined**
slapadd: could not parse entry (line=27470)
5bcf680f OVER: db_close
5bcf680f OVER: db_destroy
dpkg: error processing package slapd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up univention-ldap-client (13.0.7-5A~4.2.0.201703311526) ...
Failed to process Subfile /etc/univention/templates/files/etc/apache2/sites-available/default.d/10univention-appcenter
Failed to process Subfile /etc/univention/templates/files/etc/apache2/sites-available/default.d/00start
Failed to process Subfile /etc/univention/templates/files/etc/apache2/sites-available/default.d/99end
File: /etc/ldap/ldap.conf
Not updating ldap/master/port
Not updating ldap/server/port
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for python-support (1.0.15.18.201403132013) ...
Errors were encountered while processing:
slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Failed to execute "apt-get -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-overwrite -o DPkg::Options::=--force-overwrite-dir --trivial-only=no --assume-yes --quiet=1 -u dist-upgrade"
for some reason your LDAP configuration most likely does not include the schema file /usr/share/univention-ldap/schema/portal.schema which defines the attribute univentionPortalShowLogin.
The schema file is included in the package univention-ldap-config. I’d check if this package is installed properly.
Thanks you for your reply, I checked on my UCS master, schema file /usr/share/univention-ldap/schema/portal.schemanot available . As your mentioned, the issue related to Portal.
I’d first check the package status with dpkg -C. In case the state is inconsistent you will get an initial advice.
It is possible that the recommended action already resolves the root cause.
If you really want to reinstall a package you can use apt --reinstall install packagename. Please be careful regarding the real packagename, I mentioned univention-ldap-config, not just univention-ldap.