Closed colinpmillar closed 6 years ago
From Mehdi:
using System.DirectoryServices.AccountManagement;
public bool AuthenticateAD(string username, string password)
{
using (var context = new PrincipalContext(ContextType.Domain, "ices.local"))
{
return context.ValidateCredentials(username, password);
}
}
Tested and working as before 👍
Summary
Current approach has a "injection" risk.
Tasks required
links to other issues?
None