Bug 240136

Summary: ldap address book broke from bad rpm package script after upgrade
Product: [Fedora] Fedora Reporter: Brian Millett <bmillett>
Component: openldapAssignee: Jan Safranek <jsafrane>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-15 14:44:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Millett 2007-05-15 13:38:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):
openldap*-2.3.30-2.fc6

How reproducible: every time an upgrade is done


Steps to Reproduce:
1. yum update
2. update the openldap packages
3. fix ldap
  
Actual results:

The ldap is not populated with the upgrade.ldif file so the database is empty.

Expected results:

should work correctly.

Additional info:

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
>/dev/null 2>&1
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.

Comment 1 Jan Safranek 2007-05-15 14:44:24 UTC

*** This bug has been marked as a duplicate of 240111 ***