Skip to content

Commit 940e9d6

Browse files
authored
Merge pull request #7967 from paulcociuba/patch-3
AB#3402: Docs 2024 Review: Update http-bad-request-response-kerberos.md
2 parents 4ca0e46 + ded8840 commit 940e9d6

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.openpublishing.redirection.developer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,6 +5838,10 @@
58385838
{
58395839
"source_path": "support/developer/webapps/iis/health-diagnostic-performance/http-403-forbidden-access-website.md",
58405840
"redirect_url": "/troubleshoot/developer/webapps/iis/site-behavior-performance/http-403-forbidden-access-website"
5841+
},
5842+
{
5843+
"source_path": "support/developer/webapps/iis/www-administration-management/http-bad-request-response-kerberos.md",
5844+
"redirect_url": "/troubleshoot/developer/webapps/iis/www-authentication-authorization/http-bad-request-response-kerberos"
58415845
}
58425846
]
58435847
}

support/developer/webapps/iis/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ items:
165165
href: www-administration-management/enable-ssl-all-customers.md
166166
- name: Error when you configure 32-bit managed handlers
167167
href: www-administration-management/error-when-you-configure-32-bit-handlers.md
168-
- name: HTTP error 400 when you send requests
169-
href: www-administration-management/http-bad-request-response-kerberos.md
170168
- name: HTTPS connections fail and SSL bindings are deleted
171169
href: www-administration-management/https-connections-fail-ssl-bindings-deleted.md
172170
- name: IIS events are not displayed remotely
@@ -200,6 +198,8 @@ items:
200198
href: www-authentication-authorization/error-install-certificate.md
201199
- name: Exporting configuration files fails
202200
href: www-authentication-authorization/configuration-files-cannot-exported.md
201+
- name: HTTP error 400 when you send requests
202+
href: www-authentication-authorization/http-bad-request-response-kerberos.md
203203
- name: HTTP error 403.7
204204
href: www-authentication-authorization/http-403-forbidden-open-webpage.md
205205
- name: IIS authenticates browser clients

support/developer/webapps/iis/www-administration-management/http-bad-request-response-kerberos.md renamed to support/developer/webapps/iis/www-authentication-authorization/http-bad-request-response-kerberos.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: HTTP 400 error responses to HTTP requests
33
description: Works around an HTTP 400 error that the HTTP request header is too long.
4-
ms.date: 05/14/2021
4+
ms.date: 01/10/2025
55
ms.custom: sap:WWW Authentication and Authorization\Windows Authentication
6-
ms.reviewer: ivanpash
6+
ms.reviewer: ivanpash, paulboc
77
---
88
# HTTP 400 Bad Request (Request Header too long) responses to HTTP requests
99

@@ -34,8 +34,7 @@ Decrease the number of Active Directory groups that the user is a member of.
3434

3535
Increase the settings for the `MaxFieldLength` and the `MaxRequestBytes` registry entries on the server so that the user's request headers don't exceed these values. To determine the appropriate settings, use the following calculations:
3636

37-
1. Calculate the size of the user's Kerberos token by using the formula described in the following article:
38-
[Problems with Kerberos authentication when a user belongs to many groups](https://support.microsoft.com/kb/327825).
37+
1. Calculate the size of the user's Kerberos token by using the formula described in [Problems with Kerberos authentication when a user belongs to many groups](../../../../windows-server/windows-security/kerberos-authentication-problems-if-user-belongs-to-groups.md).
3938

4039
2. Set the value of `MaxFieldLength` and `MaxRequestBytes` on the server to 4/3 * T bytes, where T is the user's token size in bytes. HTTP encodes the Kerberos token by using base64 encoding.
4140

@@ -48,7 +47,8 @@ Depending on your application environment, you might also work around this probl
4847

4948
By default, there is no `MaxFieldLength` registry entry. This entry specifies the maximum size limit of each HTTP request header. The `MaxRequestBytes` registry entry specifies the upper limit for the total size of the Request line and the headers. Typically, this registry entry is configured together with the `MaxRequestBytes` registry entry. If the `MaxRequestBytes` value is lower than the `MaxFieldLength` value, the `MaxFieldLength` value is adjusted. In large Active Directory environments, users may experience logon failures if the values for both these entries aren't set to a sufficiently high value.
5049

51-
For IIS 6.0 and later, the `MaxFieldLength` and `MaxRequestBytes` registry keys are located at the following sub key:
50+
For IIS versions shipped with Windows Server 2016 and later, the `MaxFieldLength` and `MaxRequestBytes` registry keys are located in the following subkey:
51+
5252
`HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters`
5353

5454
Set the key values as shown in the following table:
@@ -68,12 +68,12 @@ Set the key values as shown in the following table:
6868
> [!IMPORTANT]
6969
> Changing these registry keys should be considered to be extremely dangerous. These keys allow larger HTTP packets to be sent to IIS. This, in turn, may cause Http.sys to use more memory. Therefore, such changes can increase the computer's vulnerability to malicious attacks.
7070
71-
If `MaxFieldLength` is set to its maximum value of 64 KB, the `MaxTokenSize` registry value should be set to 3/4 * 64 = 48 KB. For more information about the `MaxTokenSize` setting, see [Problems with Kerberos authentication when a user belongs to many groups](https://support.microsoft.com/help/327825).
71+
If `MaxFieldLength` is set to its maximum value of 64 KB, the `MaxTokenSize` registry value should be set to 3/4 * 64 = 48 KB. For more information about the `MaxTokenSize` setting, see [Problems with Kerberos authentication when a user belongs to many groups](../../../../windows-server/windows-security/kerberos-authentication-problems-if-user-belongs-to-groups.md).
7272

7373
## References
7474

75-
- [Http.sys registry settings for IIS](https://support.microsoft.com/help/820129/http-sys-registry-settings-for-windows)
75+
- [Http.sys registry settings for IIS](../iisadmin-service-inetinfo/httpsys-registry-windows.md)
7676

77-
- [Error logging in HTTP API](https://support.microsoft.com/help/820729/error-logging-in-http-apis)
77+
- [Error logging in the HTTP server API](/windows/win32/http/error-logging-in-the-http-server-api)
7878

79-
- [Problems with Kerberos authentication when a user belongs to many groups](https://support.microsoft.com/help/327825)
79+
- [Problems with Kerberos authentication when a user belongs to many groups](../../../../windows-server/windows-security/kerberos-authentication-problems-if-user-belongs-to-groups.md)

0 commit comments

Comments
 (0)