Authentication Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4489
Answer
Start with the exact user/workload, application, time and original operation; compare a working baseline, trace the ceremony from claim and credential through verifier and policy to assertion/session, then distinguish authentication failure from downstream authorization.
Remember
- Login failure ≠ bad password automatically.
- Authentication success ≠ authorization or application success.
- MFA prompt received ≠ factor verification completed.
- No log found ≠ no attempt unless source, collection, retention, clock and query coverage are proven.
First checks
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4625,4771,4776} -MaxEvents 20— failure reasonsjournalctl -u sshd --since -1h— SSH failures- IdP sign-in log — error codes
Commands
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624,4625} -MaxEvents 50- Operational command for Inspect recent Windows logon success/failure events. Focus fields: event id, time, account, log…
Verify in this order
request → identity store → factors → policy → result
Where it usually breaks
First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.
Authentication → Authentication Troubleshooting proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Identity and scope | Stable subject/account/resource mapping, owner, lifecycle state and expected action | Does not prove credential control or effective access |
| Policy and ceremony | Effective entitlement or authenticator/verifier policy plus all fallback paths | Configuration presence does not prove enforcement or assurance |
| Outcome | Allowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetry | One success does not prove every interface, session or downstream target |
| Closure | Original end-to-end action retested; residual access/risk, owner and review trigger recorded | Administrative workflow completion alone is not closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4489