[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: delete/modify many users

kakula wrote:

I just want to know why  can't delete/modify many  entries at a time by
using ldapdelete or ldapmodify.
For example:I want to delete all users of one group,but I must indicate the
certain uid .And you know,if having a lot of users,......again and again

ldapdelete -x -D "cn=manager,dc=mydomain,dc=com"
uid=userA,ou=groupA,dc=mydomain,dc=com  -W

Or is there a way to do at a time?

Use ldapmodify with an LDIF like:

dn: uid=userA,ou=groupA,dc=mydomain,dc=com
changetype: delete

dn: uid=userB,ou=groupA,dc=mydomain,dc=com
changetype: delete

dn: uid=userC,ou=groupA,dc=mydomain,dc=com
changetype: delete


Hope that helps. Also hope that Kurt or whoever don't block me from the mailing list anymore without at least telling me why.

Jon Roberts