c# - Calling PrincipalContext.ValidateCredentials with incorrect credentials locks account -
i found following code validate nt domain users, if incorrect password entered many times, account locked out.
is there api call not lockout users if incorrect passwords entered? of course, assuming no change current lockout policy.
using (principalcontext context = new principalcontext(contexttype.domain, domain)) { return context.validatecredentials(username, password); }
Comments
Post a Comment