Qmail-LDAP
[Top] [All Lists]

Re: Deleting Accounts

To: pinoyskull <pinoyskull@gmail.com>
Subject: Re: Deleting Accounts
From: "Rajkumar S" <rajkumars@gmail.com>
Date: Fri, 15 Dec 2006 16:19:49 +0530
Cc: "qmail-ldap@qmail-ldap.org" <qmail-ldap@qmail-ldap.org>
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Delivered-to: secretary for 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:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=obxttIn6sio5wFIev7dHLZdSx7A8MynkoWOZdgNim232it5qjfYRP+6O864NYJiyQd7EmsSI62iNanGNukM3PMUZCKdiWlqrSBVG4imUsGx6J5QYTESX1IhY4yppD81UqeX9SbSch8kzK/7YUmYFeo7sEJpk5algwBo+zn39gys=
In-reply-to: <45826A76.9090408@gmail.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <45826A76.9090408@gmail.com>
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

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