Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132100

Summary: Documentation reg. openldap is wrong
Product: Gentoo Linux Reporter: Alexander Skwar <askwar>
Component: Current packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Skwar 2006-05-03 02:28:10 UTC
I tried to upgrade openldap to openldap-2.3.21 and got the following warning:

 *
 * A (possible old) installation of OpenLDAP was detected,
 * installation will not proceed for now.
 *
 * As major version upgrades can corrupt your database,
 * you need to dump your database and re-create it afterwards.
 *
 *  1. /etc/init.d/slurpd stop ; /etc/init.d/slapd stop
 *  2. slapcat -l /root/ldapdump.1146645514.raw
 *  3. egrep -v '^entryCSN:' </root/ldapdump.1146645514.raw >/root/ldapdump.1146645514
 *  4. mv /var/lib/openldap-data/ /var/lib/openldap-data-backup/
 *  5. emerge --update \=net-nds/openldap-2.3.21
 *  6. etc-update, and ensure that you apply the changes
 *  7. slapadd -l /root/ldapdump.1146645514
 *  8. chown ldap:ldap /var/lib/openldap-data/*
 *  9. /etc/init.d/slapd start
 * 10. check that your data is intact.
 * 11. set up the new replication system.
 *

This doesn't work - step 4 is wrong.

[11:25:54 vz6tml@dewup-ww02:~] $ LC_ALL=C sudo mv /var/lib/openldap-data/ /var/lib/openldap-data-backup/
mv: target `/var/lib/openldap-data-backup/' is not a directory: No such file or directory

That's because there is no /var/lib/openldap-data-backup/ directory.

Correct instruction:

 *  4. mv /var/lib/openldap-data/ /var/lib/openldap-data-backup

Note that there's NO trailing slash after /var/lib/openldap-data-backup
Comment 1 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-05-03 04:47:00 UTC
in cvs, thanks for reporting