User982203039 posted
How can I use the below code, without using a password, or is it OK to have this information in the controller? I have created a page to do some AD updates which work fine, just want to make sure this is the best way to do it?
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "Domain.local", "User", "Password");
Thanks,
EB