directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Willeke <>
Subject Re: [Studio] command line equivalent of import
Date Sat, 01 Feb 2014 17:59:47 GMT
Most ldapseach command line tools have a
-c     Continuous  operation  mode.  Errors are reported, but ldapsearch
will continue with searches.    The default is to exit after reporting an
error.  Only useful in conjunction with -f.

Jim Willeke

On Sat, Feb 1, 2014 at 12:42 PM, Mihamina RKTMB <> wrote:

> Hi,
> For several reasons, we have to often re-import our directory (OpenLDAP).
> This is because we encoutered a bug that a reimport solves. We're stuck on
> this for the moment.
> Reimporting is done with Apache directory Studio by
> - exporting the tree to ldif
> - importing the exported ldif (overwriting existing entries)
> As far as I do it, I woul like to make it through command line, on the
> primary directory itself (not from remote).
> The exported ldif is quite the same as a "ldapsearch" bare result. No
> problem there.
> The problem is how to script the importing part.
> - just "ldapmodify -f exported.ldif" lead to errors because of already
> existing entries
> - spliting the export to per-dn files would be possible, but still need to
> insert the "changetype" + "replace" statements in ldif.
> So,
> Would you know a scripted way to import as Studio would?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message