开发者

How do I reset password retry count for a user in the gpu using C#

开发者 https://www.devze.com 2022-12-14 10:28 出处:网络
I\'m using this piece of code :开发者_如何转开发 // create a \"principal context\" - e.g. your domain (could be machine, too)

I'm using this piece of code :

开发者_如何转开发
// create a "principal context" - e.g. your domain (could be machine, too)
PrincipalContext pc = new PrincipalContext(ContextType.Domain, "YOURDOMAIN");

// validate the credentials
bool isValid = pc.ValidateCredentials("myuser", "mypassword")

to check for user passwords in the GPU. But I heard that it increment there password retry count and I would not like that to happen. How can I reset there retry password count?

Thanks.


Wouldn't that break the security? The only way to reset the retry count should be to reset the password or log in with a correct password.

0

精彩评论

暂无评论...
验证码 换一张
取 消