Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All,

Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries.

example:
Parent is :
----------

dn: email=yogesh.kumar@wipro.com, o=wipro, o=in

child is:
----------

dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com, o=wipro, o=in

.

I have list of users in a file, they must delete from servers.

or is there any way to write an script to delete all the child entries if we delete their parent entry only?

Its urgent, please help.

Regards,
Chand

Without knowing the infrastructure of the LDAP system, if that's just text config files: yes, your request should be doable. Give some more details.