Red Hat Bugzilla – Bug 240136
ldap address book broke from bad rpm package script after upgrade
Last modified: 2007-11-30 17:12:04 EST
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible: every time an upgrade is done
Steps to Reproduce:
1. yum update
2. update the openldap packages
3. fix ldap
The ldap is not populated with the upgrade.ldif file so the database is empty.
should work correctly.
It looks like the scripts are bad for the openldap-server. The preuninstall
works fine and the upgrade.ldif file is generated. The old database files are
saved in the rpmorig/ directory, however the post install does not work because
the slapd is running so the line
/sbin/runuser -m -s /usr/sbin/slapadd -- "ldap" -l /var/lib/ldap/upgrade.ldif
fails, but the error is swalled up and not seen. The slapadd needs the slapd to
NOT be running, so it needs to be turned off, then restarted.
After the upgrade, I need to stop ldap, slapadd the upgrade.ldif, restart ldap
and all is well.
*** This bug has been marked as a duplicate of 240111 ***