Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77096 - Document a way to "undo"additions to the LDAP tree
Summary: Document a way to "undo"additions to the LDAP tree
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/ldap-how...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 18:22 UTC by Jesse
Modified: 2005-03-26 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse 2005-01-07 18:22:17 UTC
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:
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-09 02:36:29 UTC
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.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-09 02:37:01 UTC
P.S. Try out app-admin/diradm for easily managing a the data in LDAP.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-03-26 10:50:21 UTC
Added in CVS. Thanks!