← Back to home

Product

Account lockouts: why an Active Directory account keeps locking out

Why does an Active Directory account lock out when the user did nothing?
Because something other than the person keeps authenticating with the previous password. The usual suspects are a scheduled task or a service configured with that account, a mapped network drive, a credential saved in Windows Credential Manager or a device still holding the old password. Each retry adds a failed attempt and, once the domain policy threshold is reached, the account locks itself out even if the user is nowhere near their computer.
What is event 4740 and why does it only exist on the PDC Emulator?
Event 4740 is the Windows security event that records an account lockout and reports the computer it came from. Every Domain Controller forwards bad password attempts to the PDC Emulator, which is the one that keeps the count and decides the lockout, so 4740 is written only in its log. Surveying any other Domain Controller leaves the source of the lockout invisible: KairosLink detects that, warns about it and lets you run the query again against the PDC.
What happens if lockout auditing is turned off on the Domain Controller?
Without that auditing, event 4740 is not written and the source of the lockout cannot be determined. KairosLink reports it as a finding instead of showing an empty screen that looks like a result. From the same diagnosis you turn auditing on for the Domain Controller, with a written reason and an entry in the security audit log, and from then on the next lockout is recorded. If a domain GPO manages that policy, the diagnosis warns you: the GPO will overwrite the local change.
Why does the event sometimes not report the source computer?
That happens when the lockout originates over Kerberos: the 4740 is recorded with the time of the lockout but with no computer name. In that case the diagnosis says so plainly and the investigation continues through the origins of the failed attempts, events 4771 and 4625, which do come grouped by computer with the attempt count and the time of the last one.
What leftovers of a deleted profile can keep locking an account?
Scheduled tasks and services outlive the profile: they keep referencing the account SID, not its name. That is why the source computer analysis searches by SID as well as by account name, and finds tasks belonging to a user whose profile is no longer on disk. The same pass reports saved credentials and mapped network drives, which retry on their own with the old password every time the computer uses them.
How do you tell a human attempt from an automated retry?
By how tightly packed they are in time. A person mistyping a password produces attempts separated by seconds or minutes. Three or more failures from the same source within the same second are typical of a device or a service retrying in a loop, and KairosLink reports them as an automated burst, with the attempts per second and the computer they are coming from.
How do you find out which computers a user is signed in to?
By asking the computers, which is the only reliable source: Windows keeps no central record of a domain user's sessions. The panel queries every online computer of the customer with quser and builds the result from what each one answered, always separating the computers with a session, the ones that answered there is no session, and the ones that could not be reached, each with its reason. For every session found it reports whether it is active or disconnected. The query is read only: it closes no sessions and runs no remote logoff.
Why does the last sign-in reported by Active Directory not always match?
Because the lastLogon attribute does not replicate between Domain Controllers: each one keeps the value it authenticated itself, so asking a single DC gives you a partial answer. KairosLink asks every Domain Controller in the domain and shows each answer separately. lastLogonTimestamp does replicate, but it carries a lag of up to 14 days by design, and the screen says so right next to the value. All of that is an inference about what each Domain Controller managed to see, and it is presented apart from the sessions queried from the computers, which are hard fact.
What are FSMO roles good for in a lockout investigation?
They tell you which Domain Controller to ask. Event 4740 is written only on the PDC Emulator, so a survey run against any other Domain Controller cannot identify the source computer. The diagnosis shows the five domain roles with their holder and cross-checks the PDC Emulator against two different sources: if they disagree, it reports that as a finding rather than picking one on its own.
Try KairosLink free for 14 days

All modules included. No credit card.