Bug 1252558

Summary: openldap update from 2.4.39 to 2.4.40 causes blank database
Product: Red Hat Enterprise Linux 6 Reporter: Striker Leggette <striker>
Component: openldapAssignee: Matus Honek <mhonek>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: ebenes, jsynacek, rh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-11 18:08:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Striker Leggette 2015-08-11 16:50:42 UTC
Description of problem:
- Updating from openldap 2.4.39 to 2.4.40 causes LDAP database to be blank.

Version-Release number of selected component (if applicable):
- openldap-2.4.39-8.el6

How reproducible:


Steps to Reproduce:
1. yum update openldap
2.
3.

Actual results:
- Blank database

Expected results:
- Database is not blank

Additional info:

Comment 4 Striker Leggette 2015-08-11 18:08:28 UTC
Closing this as I am unable to reproduce with multiple attempts.

Comment 5 Marc Fournier 2015-08-31 13:30:29 UTC
I also encountered this issue. I tracked it down to this block from the preinstall script from the RPM (rpm -q --scripts openldap-servers):

# move or copy to backup directory
                        find -maxdepth 1 -type f \( -name alock -o -name "*.bdb" -o -name "__db.*" -o -name "log.*" \) \
                                | xargs -I '{}' $backupcmd '{}' $backupdir
                        cp -af DB_CONFIG $backupdir &>/dev/null

So basically, the databases files from /var/lib/ldap get backed up to /var/lib/ldap/backup.NNNNNNNNNNN/ if the openldap version number changes.

I found this a bit unsettling from a user point of view. Maybe could a notice get printed out to warn the user ?

Striker, what do you think ? Can this bugreport maybe be reopened with wishlist severity ? Thanks !

Comment 6 Striker Leggette 2015-09-23 18:35:02 UTC
Marc, so that you are aware, a new BZ was opened for RFE to add notification of the database backup:
https://bugzilla.redhat.com/show_bug.cgi?id=1261651