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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Why won't my code write to SQL? -

c# - Avoiding duplicate methods for Task and Task<T> -