Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've removed the user from the LDAP server and now I would like to remove the group however I'm not sure about the proper command for this.

The command that was used to remove the user:

ldapdelete uid=user,ou=People,dc=example,dc=com -W -D "cn=ldapadmin,dc=example,dc=com" -x
share|improve this question
Do you really mean remove the group, or remove his membership of the group? – EJP Dec 15 '12 at 8:40
up vote 1 down vote accepted

It will be something similar to the example below, but the exact DN name will vary to your specific system.

ldapdelete cn=groupname,ou=groups,dc=example,dc=com -W -D "cn=ldapadmin,dc=example,dc=com" -x
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.