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 on the production machine: openldap-2.0.23-4 Can the difference between the two cause the error?
Thanks!
"Laura Iacob" laura.iacob@gmail.com writes:
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 on the production machine: openldap-2.0.23-4 Can the difference between the two cause the error?
Now you know why copying a database is evil, it is an absolutely no no. :-) I can't remember wether bdb was available in openldap-2.0 already so check if it is ldbm instead of bdb, but their might be different BerkeleyDB versions involved as well, so check this.
-Dieter
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 files.
Regards, Buchan
openldap-software@openldap.org