Qmail-LDAP
[Top] [All Lists]

Re: Deleting Accounts

To: "qmail-ldap@qmail-ldap.org" <qmail-ldap@qmail-ldap.org>
Subject: Re: Deleting Accounts
From: pinoyskull <pinoyskull@gmail.com>
Date: Mon, 18 Dec 2006 14:42:25 +0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=r9fNr6TZUmcbRqbxPzeddNnukUZyMd2/xtZt+FCtzTN9/y8ewRiTA6W3N3iPGaeZDcv3LlS1EWqJj4F8S2gkG7VWsWGwz+duPbPsRU/5HxI8YuvIgCpJGpp5o5IZoerRQgBMqyoT7xvPqWK3zSq24GE1ExmTO7pYVp+iDmeqNuY=
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
User-agent: Thunderbird 1.5.0.8 (X11/20061115)
Rajkumar S wrote:
On 12/15/06, pinoyskull <pinoyskull@gmail.com> wrote:
what I want to do is deleting several accounts, for example all users of that certain domain, and how about the user directory, will it be deleted
also once i do ldapdelete?

If you need to delete several account you can write a script to do it.
for example if you want to delete uidNumber=1669 use the following
ldif file /tmp/entrymods

dn: uidNumber=1669,ou=vhost,dc=compass,dc=com,dc=ph
changetype: delete

with the command ldapmodify -f /tmp/entrymods

in the /tmp/entrymods you can have as many dn: as you want to delete.

Similarly you can use another script with rm to remove the user directory.

hope this helps,
raj

that simple? wow, thanks.

<Prev in Thread] Current Thread [Next in Thread>