Pcornel
Web Infrastructure · IIS

Authentication

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

Back to the Topic

Answer

IIS authentication sets how users prove identity to a site: Anonymous, Windows (Kerberos or NTLM), Basic over TLS, client certificates, or forms and OAuth handled by the application.

Remember

  • Windows authentication negotiates Kerberos or falls back to NTLM.
  • Anonymous access must be disabled for Windows-auth-only sites.
  • Basic authentication must only be used over TLS.

First checks

  • Get-Website — sites, state, bindings
  • Get-IISAppPool — application pools and state
  • Get-WebBinding — bindings
  • Get-ChildItem IIS:\SslBindings — certificate bindings
  • Get-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20 — request log

Verify in this order

request → authentication modules → identity → authorisation

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3359

Confirmation

Confirm action

Continue?