[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Converting From gdbm to bdb

--On Wednesday, July 13, 2005 9:52 AM -0400 Brian Gaber <Brian.Gaber@PWGSC.GC.CA> wrote:

Attempting to convert OpenLDAP v2.0.27-11 configured for gdbm to OpenLDAP
v2.2.26 configured for bdb.
I have successfully compiled OpenLDAP v2.2.26 and all its prerequisites
(Berkeley v4.3.28, etc)

Actually, BDB 4.2.52 + patches is the recommended version of BDB to use with OpenLDAP. BDB 4.3 has proved unreliable in some cases.

I used slapcat on the 2.0.27 server to get a backup of the ldap gdbm
I run the following command on the 2.2.26 server and get the following
/usr/local/sbin/slapadd -f /etc/openldap/slapd.schemacheck-off -l
/home/ldap-backup/Jul11-0345 slapadd: could not add entry
dn="ou=gtis,ou=van1,ou=pac,o=pwgsc" (line=8): txn_aborted! DB_KEYEXIST:
Key/data pair already exists (-30996)

This means that this entry occurs twice in your LDIF file. You likely want to fix this. Note that you can run slapadd with the "-c" option to skip past all errors, so you can generate a list of all the errors you are seeing before you go and fix your LDIF file.

Also, running with schema checking off is a *very very very* bad idea.


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin