I recently ran across a nast little <a href="http://bugs.gentoo.org/show_bug.cgi?id=77095">bug</a> that makes it a pain to get a LDAP server up and running. The problem is running the following command: ldapadd -D "cn=Manager,dc=example,dc=com" -W -f /tmp/passwd.ldif Will continue half way, then stop. if you fix the problem in the input file, and try to run it again, it won't let you because the first half of the records(before the empty line) already exist. in a 20 user system, it's within reason to go through the ldif file and remove the first 10-15 users that come before the linebreak, but in a system of 500 users, it quickly becomes annoying. Therefore I propose some sort of documentation, or perhaps even a tool be added (or even a mention of it) that - allows the easy removal of entries that match the ldif file - skips over entries that already exist I've ran into several other barriers in this documentation, but this is the big holdup- I'd suggest perhaps a re-evaluation of this document or perhaps the migration tools. Reproducible: Always Steps to Reproduce:
If you just add '-c' to ldapadd it will continue with the next entry after an error. This would go well in the document however.
P.S. Try out app-admin/diradm for easily managing a the data in LDAP.
Added in CVS. Thanks!