[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Discussion: ldapdelete.c
That's fine for you Unix guys but I live in the DOS/Windows
world. At least for now. :)
Besides, I would be inclined to create a batch/script file
to do this which means I have another utility to remember
how to use. Why not push this ability down to the ldapmodify
tool where it can automatically detect an LDIF file.
JR
Ben Collins wrote:
>
> On Thu, Mar 04, 1999 at 11:51:50AM -0800, JR Heisey wrote:
> > I think it would be a convienence if ldapdelete could
> > read an LDIF file ingorning all lines except the line
> > the begin with 'DN: '. Then delete entry specified by
> > the DN field.
>
> Simple solution:
>
> grep ^dn: temp.ldif | awk -F: '{ print $2; }' | ldapdelete
>
> > Generate an LDIF list using a filer (i.e.
> > objectclass=person)
> > then use ldapdelete to remove all the entries returned.
>
> Easy as well:
>
> ldapsearch objectclass=person dn | ldapdelete
>
> Hope this helps.
>
> --
> ----- -- - -------- --------- ---- ------- ----- - - --- --------
> Ben Collins <b.m.collins@larc.nasa.gov> Debian GNU/Linux
> OpenLDAP Core - bcollins@openldap.org bcollins@debian.org
> UnixGroup Admin - Jordan Systems The Choice of the GNU Generation
> ------ -- ----- - - ------- ------- -- ---- - -------- - --- ---- - --
--
-
J. R. Heisey
begin:vcard
n:Heisey;J.R.
tel;fax:408-248-8552
tel;work:408-248-9495 x117
x-mozilla-html:FALSE
url:www.mediagate.com
org:MediaGate Inc.
adr:;;1245 S. Winchester Blvd.;San Jose;CA;95128;USA
version:2.1
email;internet:jr.heisey@mediagate.com
title:Sr. Foundation Engineer
note:Currently working on LDAP client software.
end:vcard