Hi!

I'm working on a program that "mangles" existing LDIF files so that the LDAP 
server accepts them.
So say 75% passed, 25% had errors (need additional fixes).

I'm using ldapadd with "-c" (continue) and "-S skipped.ldif" (skipped entries) 
to add the input LDIF.

The idea was to iterate over skipped.ldif until the file is empty, i.e.: make 
skipped.ldif the new input file for the next run of ldapadd.
However "skipped.ldif" also contains entries that were skipped, because they 
had been imported (successfully) before ("ldap_add: Already exists (68)").

Is there an easy way to extract only those entries that were not added?

Of course I could write a program that implements that logic, talking to the 
LDAP server directly, but if avoidable I'd save the time to write such a 
program.

Regards,
Ulrich


Reply via email to