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

Using ldapdelete to delete a user from a group



Hi List,

Stupid newbie question, but can I delete a user from my LDAP "group" list?

The best attempt I can come up with looks like this (to delete user "johnd"
from group "sales"):

#ldapdelete -D  "cn=manager,dc=unfiw,dc=com" -v -w secret -x -c
"memberUid=johnd,cn=sales,ou=Group,dc=unfiw,dc=com"

But this complains:

ldap_initialize( <DEFAULT> )
deleting entry "memberUid=johnd,cn=sales,ou=Group,dc=unfiw,dc=com"
Delete Result: No such object (32)
Matched DN: cn=sales,ou=Group,dc=unfiw,dc=com

And "sales" looks like this:

dn: cn=sales,ou=Group,dc=unfiw,dc=com
objectClass: posixGroup
objectClass: top
cn: sales
gidNumber: 110
memberUid: johnd
memberUid: joe
memberUid: rick
memberUid: sam
memberUid: tinah

Thanks for your help.

--Karl