Pcornel
Identity · Authentication

Authentication Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4489

Back to the Topic

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 reasons
  • journalctl -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

BoundaryEstablishDoes not establish
Identity and scopeStable subject/account/resource mapping, owner, lifecycle state and expected actionDoes not prove credential control or effective access
Policy and ceremonyEffective entitlement or authenticator/verifier policy plus all fallback pathsConfiguration presence does not prove enforcement or assurance
OutcomeAllowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetryOne success does not prove every interface, session or downstream target
ClosureOriginal end-to-end action retested; residual access/risk, owner and review trigger recordedAdministrative 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

Confirmation

Confirm action

Continue?