[Date Prev][Date Next]
RE: Problem with slapcat
slapcat dumps out entries in whatever order the database stored them. If you
are using a hashing database library for ldbm, this will be a fairly random
order. If you are using Berkeley DB with ldbm, in Btree mode, the entries
should be listed in ascending entry_ID order. But there's a bug here that
affects all Intel and other little-endian platforms: the entry ID is stored
in little-endian order but BDB sorts in big-endian order, so it will again
come up scrambled. I committed a patch for this BDB sorting problem about 3
weeks ago in the development branch, but unfortunately that patch is not in
any released versions yet. (My oversight; I think it should have gone into
2.0.19 but I missed it.) If you are not using BDB with the (default) Btree
configuration, then there really isn't any solution.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Shih-Chang Wang
Sent: Monday, December 31, 2001 12:31 AM
Subject: Problem with slapcat
I tried to dump my OpenLDAP database into LDIF format by using slapcat
However, the entris of the output file start form the middle of the DIT,
not start from the root DN with a hierachical approach. So, I can not
re-import data successfully with the output LDIF file. This problem seems
to be a FAQ, but I can not find the solution from the mailing-list
Redhat 7.0 & OpenLDAP-2.0.11
Someone can help me?
Thank you very much!
Internet & Multimedia Application Tech. Lab
Telecommunication Laboratories, Chunghwa Telecom Co., Ltd.