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

我怕爱的太早我们不能终老 提交于 2019-12-12 01:32:34

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/1899724/how-do-i-reset-password-retry-count-for-a-user-in-the-gpu-using-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!