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

RE: Problem with slapcat



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
> jansenw@cs.tum.edu
> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
> Shih-Chang Wang

> > Hi, all:
> >
> > I tried to dump my OpenLDAP database into LDIF format by using slapcat
> > utility.
> > 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
> > discussions.
> > My enviroments:
> > Redhat 7.0 & OpenLDAP-2.0.11
>
> You can add your LDIF data in "offline"-mode. That means, your
> LDAP-Server must not be running, and your LDIF data will be converted
> directly into your database files (according to your slapd.conf). See
> man slapadd for details.
>
> Caution: Using slapadd will _overwrite_ existing databases, so don't
> use ist if you want to add to a database.

Good answer. I've been sitting in front of this computer for too long...

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support