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

Re: slapcat error

On Monday 22 October 2007 16:33:42 Laura Iacob wrote:
> Hello there,
> I need some assistance with an error generated while trying to perform a
> slapcat.
> /usr/local/openldap/sbin/slapcat -d 1 -l /home/backup/output.ldif
> slapcat init: initiated tool.
> >>> dnNormalize: <cn=Subschema>
> <<< dnNormalize: <cn=subschema>
> Unrecognized database type (bdb)
> database bdb initialization failed.
> slapcat: bad configuration file!
> The database which is currently available in the path as set-up in
> slapd.conf was recently copied(binary copy) from another machine in order
> to perform some tests on it.
> slapd.conf has the exact configuration as on the the machine from which the
> database was copied....
> However the openldap version seem to be different between the systems:
> on the test machine : openldap-2.0.27-22

This looks something like redhat 9 / RHEL3 ?

> on the production machine: openldap-2.0.23-4

And, this looks like redhat 7.x / RHEL 2.1

> Can the difference between the two cause the error?

If I am right ... it can, bit because of the patch-level version difference, 
but because in 7.x/RHEL2.1, RH built OpenLDAP against gdbm, while in 
8/9/RHEL3 they built against Berkeley DB.

You might be lucky, there may be a slapcat-gdbm availalable in the 2.0.27-22 
package, which may allow you to dump the database out from the gdbm database