Skip to main content
KBY Technologies Logo

Kerberos Sign-In to IIS Fails With HTTP 400 Request Header Too Long for Users in Many Groups: Raise the Limits

Medium severity Target recovery 60mActive Directory

Overview

Users in many groups get HTTP 400 Request header too long from IIS because their Kerberos token outgrows the header limit. Estimate the token, raise MaxFieldLength and MaxRequestBytes to a calculated value, restart in a window and test.

Markdown, one checkbox per step, for pasting into a ticket.

Diagnose

Symptom

What responders observe.

Start here when a handful of users, usually long-serving staff, administrators or service desk members, get an error from one intranet site while colleagues reach it normally. The browser shows HTTP 400 - Bad Request (Request header too long) for a site that uses Windows Integrated Authentication.

The affected users belong to many Active Directory groups, and the failure started after group memberships were added or merged. The same users may also find that Group Policy settings do not update.

Microsoft notes that NTLM keeps working in the same conditions, so the problem can go unnoticed until someone looks at the Kerberos behaviour.

Detection

Metrics, logs and confirmation commands.

Root cause

Why the incident occurred.

Contain and prevent

Blast radius

What else this can affect.

Prevention

Controls and guardrails that stop it recurring.

  • Cut the groups.

  • Microsoft lists reducing group memberships as the first workaround.

  • Save each user's membership list before removing any, and read how a Domain Admins cleanup broke Group Policy results reports before trimming privileged groups.

  • Enable the Group Policy setting Computer Configuration\Administrative Templates\System\KDC\Warning for large Kerberos tickets.

  • Windows Server 2012 and later can then log Event ID 31 when a token passes a threshold.

  • Trace that policy change with the GPO change tracing runbook.

  • Add token size to the checklist for merging groups or adding claims, and record the Http.sys values in the server's build notes so a rebuild does not lose them.

Fix

Pre-flight checks

Check these before you change anything.

  1. Rights to edit the registry on the IIS server and a change window to restart the HTTP service and IIS.

  2. The name of the site owner and a list of users who are affected.

Commands

whoami /groups /fo csv /nh
whoami /claims
klist

Verify and recover

Verification

Evidence required before you close the incident.

  1. On the IIS server read the MaxFieldLength and MaxRequestBytes values under the HTTP Parameters key. — Both entries exist and hold the calculated value V, and V is not above 65,536. — Both values match V.

  2. Ask one affected user to sign in again and open the site, then repeat with a second affected user. — The page loads without an HTTP 400 response for both users. — Both users reach the site.

  3. Watch the site's health check and the affected users' reports for a day. — No new HTTP 400 Request header too long responses. — No repeat after the change time.

Rollback

The safe way back.

  1. Restore the recorded values of MaxFieldLength and MaxRequestBytes on the IIS server

  2. remove only the entries you created, then restart the HTTP service and IIS.

  3. If MaxTokenSize was changed, restore its previous value or remove the entry you added on each computer, then restart each computer.

  4. If anything else breaks, restore the registry from the backup saved in the change ticket.

Escalate when

Conditions that need another owner.

  • Escalate to the Active Directory owners if V comes out above 65,536, or if the largest token is close to 48,000 bytes.

  • At that point the lasting fix is fewer groups, not larger limits.

  • Also escalate if a user belongs to more than 1,010 groups.

  • Microsoft documents that as a separate limit on the LSA access token, and Kerberos and NTLM sign-in can both fail.

  • Open a Microsoft support case if the 400 persists after the limits cover your estimate.

  • Include the user's group count, the formula inputs, the registry values and the exact error text.

  • Microsoft support Site owner Active Directory owners.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Found this useful? Follow KBY for more like it.

Sources

Based on the vendor sources listed below. Check each step against your environment before acting.

First published 2 December 2026

More from KBY that goes with this runbook.

Kerberos Sign-In to IIS Fails With HTTP 400 Request Header Too Long for Users in Many Groups: Raise the Limits