Is there a way to do one of the following in an LDIF file?
- Ignore error (attr not found) when trying to delete an attribute
- If attribute exists, modify it
- If it doesn't exist, add it
The right way to do this is simply using the replace action
... which I guess should take care of your first point.