Maybe, you can use ldapsearch to collect dn of disabled accountStatus :

  ldapsearch -x -LL -h master.ldap.svr -b "o=Your Base DN" \
    -D "uid=admin,ou=departement,o=Your Base DN" \
    -w admin_passwd "accountStatus=disabled" dn > disabledDN.ldif

Then delete those dn's using this :

  ldapdelete -x -h master.ldap.svr \
    -D "uid=admin,ou=departement,o=Your Base DN" \
    -w admin_passwd -f disabledDN.ldif

Or maybe it can be just one command line using stdin.

EN

-----Original Message-----
From: pinoyskull [mailto:[EMAIL PROTECTED] 
Sent: 16 Agustus 2005 14:51
To: [email protected]
Subject: purging ldap records

Hi,

How do i purge ldap records marked as disabled?

Thanks
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/08/2005
 

Reply via email to