Akotoe reset active directory passwords

Hi Todd,

Most of these modifications are based on the discussion that we recently had. Feel free to further modify the code.

Regards,
Edward.