[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Hopefully, an easy question on deleting entries:
On Tue, 2003-05-13 at 15:47, Jason Williams wrote:
> Two questions:
>
> How would I continue to enter the rest of the data in my .ldif file?
> Would I just edit my .ldif file and remove the top part?
> Or, should I delete what is in my LDAP right now and start over?
>
You could:
1) Just trim off the top part and then import the rest into the
directory with 'ldapadd', or
2) Delete the directory any number of ways and start over with either an
'ldapadd' or a 'slapadd' of your entire LDIF file.
Number one is probably easier. Just chop off the records that imported
successfully and keep going.
If you created the file by hand, using ldapadd is probably better than
slapadd because it does more checking and produces better (IMHO) error
messages.
> If the answer is the later part, what is a good way to make sure I delete
> what is in my LDAP directory?
There are a number of ways. The 'cleanest' is to use 'ldapdelete' to do
a recursive removal starting with your root domain. 'man ldapdelete' is
a good resource if you want to do that.
Matt
--
M Butcher <mbutcher@grcomputing.net>