Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 4.35 KB

File metadata and controls

70 lines (50 loc) · 4.35 KB
title MSSQLSERVER_17832 | Microsoft Docs
ms.custom
ms.date 04/04/2017
ms.prod sql
ms.reviewer
ms.technology supportability
ms.topic language-reference
helpviewer_keywords
17828 (Database Engine error)
maxtokensize
17832 (Database Engine error)
login packet (bad)
ms.assetid bd56ffe4-0855-4ada-8aca-251fbc6ff2ce
author MashaMSFT
ms.author mathoma

MSSQLSERVER_17832

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]

Details

Product Name [!INCLUDEssNoVersion]
Event ID 17832
Event Source MSSQLSERVER
Component SQLEngine
Symbolic Name SRV_BAD_LOGIN_PKT
Message Text The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library.%.*ls

Explanation

The [!INCLUDEssNoVersion] computer was unable to process the client login packet. This may be because the packet was created improperly or because the packet was damaged during transmission. It can also be caused by the configuration of the [!INCLUDEssNoVersion] computer. The IP address listed is the address of the client computer.

More Information

When using Windows Authentication in a Kerberos environment, a client receives a Kerberos ticket that contains a Privilege Attribute Certificate (PAC). The PAC contains various types of authorization data including groups that the user is a member of, rights the user has, and what policies apply to the user. When the client receives the Kerberos ticket, the information contained in the PAC is used to generate the user's access token. The client presents the token to the [!INCLUDEssNoVersion] computer as part of the login packet.

If the token was improperly created or damaged during transmission, [!INCLUDEssNoVersion] cannot offer additional information about the problem.

When the user is a member of many groups or has many policies, the token may grow larger than normal to list them all. If the token grows larger than the MaxTokenSize value of the server computer, the client fails to connect with a General Network Error (GNE) and error 17832 can occur. This problem may affect only some users: users with many groups or policies. When the problem is the MaxTokenSize value of the server computer, error 17832 in the [!INCLUDEssNoVersion] error log will be accompanied by an error with state 9. For additional details about the Kerberos and MaxTokenSize, see KB327825.

User Action

To resolve this problem, increase the MaxTokenSize value of the server computer, to a size large enough to contain the largest token of any user in your organization. To research the correct token size for your organization, consider using the Tokensz application.

Caution

[!INCLUDEssNoteRegistry]

To change the MaxTokenSize on the server computer

  1. On the Start menu, click Run.

  2. Type regedit, and then click OK. (If the User Account Control dialog box appears, click Continue.)

  3. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters.

  4. If the MaxTokenSize parameter is not present, right-click Parameters, point to New, and then click DWORD (32-bit) Value. Name the registry entry MaxTokenSize.

  5. Right-click MaxTokenSize, and then click Modify.

  6. In the Value data box type the desired MaxTokenSize value.

    [!NOTE]
    Hexadecimal value ffff (decimal value 65535) is the maximum recommended token size. Providing this value would probably solve the problem, but could have negative computer-wide effects with regard to performance. We recommend that you establish the minimum MaxTokenSize value that allows for the largest token of any user in your organization and enter that value.

  7. [!INCLUDEclickOK]

  8. Close Registry Editor.

  9. Restart the computer.