Thank you to all who wrote with suggestions. For archive readers, here's the command I finally went with, once I was confident that it was working as expected:
[EMAIL PROTECTED]:/var/www/centernet/htdocs/ldap_auth$ ldapsearch -x -b "ou=ccpperson, dc=jhuccp, dc=org" "ccpField=F" -LLL dn |perl -pe 's/^dn: (.*)$/\1/' | ldapdelete -x -D 'cn=username, dc=jhuccp, dc=org' -w secret -v This seemed to do exactly want I wanted. Thanks again for your advice and suggestions. -Kevin --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
