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

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
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Shih-Chang Wang
Sent: Monday, December 31, 2001 12:31 AM
To: openldap-software@OpenLDAP.org
Subject: Problem with slapcat

Hi, all:

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
My enviroments:
Redhat 7.0 & OpenLDAP-2.0.11

Someone can help me?

Thank you very much!

Shih-Chang Wang(汪世昌)
Associate Researcher
Internet & Multimedia Application Tech. Lab
Telecommunication Laboratories, Chunghwa Telecom Co., Ltd.
TEL: 886-3-4245340
FAX: 886-3-4244470