如何使用C#为GPU中的用户重置密码重试计数 [英] How do I reset password retry count for a user in the gpu using C#

查看:91
本文介绍了如何使用C#为GPU中的用户重置密码重试计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用这段代码:

// 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")

在GPU中检查用户密码.但是我听说它会在此增加密码重试次数,我不希望这样.我该如何重设重试密码计数?

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?

谢谢.

推荐答案

这不会破坏安全性吗?重置重试次数的唯一方法应该是重置密码或使用正确的密码登录.

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.

这篇关于如何使用C#为GPU中的用户重置密码重试计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆