我的一个帐户被 Windows 服务器锁定,使用安全审计追踪到该帐户,生成了事件 ID 4740。它是仅运行 WSUS 服务的 Windows Server 2012 R2。我认为该帐户几乎每 90 分钟被锁定一次,接近 GPupdate 运行。我没有看到使用该用户名运行任何计划任务。
我尝试在 Windows Server 2012 R2 上使用 Alockout.dll,但它没有生成任何日志。我认为它只适用于 Windows Server 2008。我检查了 2012 R2 服务器上的事件日志,没有任何接近锁定时间的日志。
我使用“rundll32 keymgr.dll,KRShowKeyMgr”检查了系统中是否存在缓存的凭据,但没有。
是否有任何应用程序可以帮助我排除故障并找出导致锁定的服务或应用程序?
从 Active Directory 服务器上的事件 ID 4625 中找到了有关该问题的更多详细信息。
An account failed to log on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
Account For Which Logon Failed:
Security ID: NULL SID
Account Name: myusername
Account Domain: GFT
Failure Information:
Failure Reason: Unknown user name or bad password.
Status: 0xC000006D
Sub Status: 0xC000006A
Process Information:
Caller Process ID: 0x0
Caller Process Name: -
Network Information:
Workstation Name: WSUS_Server
Source Network Address: -
Source Port: -
Detailed Authentication Information:
Logon Process: NtLmSsp
Authentication Package: NTLM
Transited Services: -
Package Name (NTLM only): -
Key Length: 0
This event is generated when a logon request fails. It is generated on the computer where access was attempted.
The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).
The Process Information fields indicate which account and process on the system requested the logon.
The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
答案1
找到了导致问题的机器。
事件 ID 4625 显示在 Active_Direcotry_server_001 上,服务器 WSUS_server_001 导致锁定,但事实并非如此,wsus_server_001 在帐户被锁定后尝试登录。
WSUS_server_002 打开了一个会话(可能自密码更改后一直在线),并向 Active_Direcotry_server_002 发送了大约 5 次错误密码,导致不到 1 分钟就锁定。
重新启动了 WSUS_server_002 服务器,从那时起就不再出现任何锁定。
我使用活动目录上的 netwrix 工具来找出该问题。