Account removal (and exchnage Mailbox)
Hi,
I currently do creation of new user accounts (and modificaiton of exisiting accounts) in our AD using JNDI and it works really well.
I'm now looking at deletion of accounts and I can't seem to find any information on how to delete accounts and more importantly remove exchange mailboxes cleanly using JNDI.
Has anyone had any experience doing this?
Many thanks,
Jay.
[411 byte] By [
JayMGa] at [2007-11-27 5:29:09]

# 1
Deleting an account in AD is quite simple,String userName = "CN=Albert Einstein,OU=Research,DC=antipodes,DC=com";
...........
// Delete the user
ctx.destroySubcontext(userName);
..........
Now for the exchange mailbox, not too sure. Perhaps do a search for how to do this, or perhaps if the user object is deleted, perhaps the corresponding mailbox is also deleted ?
Good luck