加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 传递给LogonUser()的密码不正确,但未按预期锁定Active Dire

发布时间:2020-12-16 07:04:26 所属栏目:百科 来源:网络整理
导读:我有Active目录“登录重试次数”= 3.我们打电话 LogonUser功能5次,密码错误.之后我用正确的密码调用LogonUser,它可以工作,用户可以登录. 为什么帐户没有被锁定? 解决方法 这取决于您如何调用LogonUser.如果未指定域名,请通过lpszDomain参数或在 UPN format
我有Active目录“登录重试次数”= 3.我们打电话
LogonUser功能5次,密码错误.之后我用正确的密码调用LogonUser,它可以工作,用户可以登录.

为什么帐户没有被锁定?

解决方法

这取决于您如何调用LogonUser.如果未指定域名,请通过lpszDomain参数或在 UPN format中指定lpszUsername,然后尝试在本地计算机上登录.

Windows客户端store cached credentials,用于在Active Directory服务器不可用的情况下进行域登录.在这种情况下,缓存的凭据将允许用户登录到本地计算机.

Cached credentials are used when using domain credentials for authentication to a computer that is not connected to a domain controller. Each time a domain user logs on,the operating system generates the cached credentials and stores them in the Security hive of the operating system.

根据微软的Account Lockout Policy Technical Overview:

Account lockout policies apply to domain accounts. Account lockout is an interaction between a client computer and a domain controller and implements the following process:

在没有看到您的代码的情况下,我怀疑登录尝试是针对本地计算机而不是域进行的.这些不计入停工政策.这允许用户无问题地登录到域.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读