How do I fix token bloat?

How do I fix token bloat?

How to Fix Token Bloat? By overriding the default value of “MaxTokenSize” registry entry, which is located under System\CurrentControlSet\Control\Lsa\Kerberos\Parameters, you can avoid the token bloat error during the login.

What causes token bloat?

Token Bloat occurs when you are a member of too many groups in Active Directory. At somewhere around 125 groups, your Kerberos token size reaches 64kb in size. That’s the limit for a lot of things that use Kerberos authentication. For example, if you’ve got VMware ESX/ESXi 4.

How do I increase my Kerberos token size?

Expand Computer Configuration, expand Policies, and then expand Administrative Templates. Expand System, and then click Kerberos. Right-click Set maximum Kerberos SSPI context token buffer size on the right side pane, and then click Edit. Click Enabled, and then type 48000 in the Maximum size box.

How do I enable Kerberos authentication in Windows?

Installation instructions for 32-bit Kerberos for Windows

  1. Download and run the Kerberos for Windows installer.
  2. At the prompt, click Yes to continue with the installation.
  3. At the Welcome window, click Next to continue.
  4. Select the option to accept the terms of the license agreement and then click Next.

How do I calculate my token size?

Token Size = 1200 + 40d + 8s This formula uses the following values: d: The number of domain local groups a user is a member of plus the number of universal groups outside the user’s account domain that the user is a member of plus the number of groups represented in security ID (SID) history.

What is MaxTokenSize?

The maximum allowed value of MaxTokenSize is 65535 bytes.

How do I know my Kerberos token size?

How do I stop Kerberos service?

At the command line, enter stop. krb5 . This command stops the Kerberos server. At the command line, enter start.

What is the default value of the maxtokensize registry entry?

Starting with Windows Server 2012, the default value of the MaxTokenSize registry entry is 48000 bytes. To add the registry entry to multiple computers in a domain that does not have a Windows Server 2012-based domain controller, follow these steps: Create an Administrative Template (ADM) file for the MaxTokenSize registry entry.

How do I change the maxtokensize of a SQL Server database?

Rename the entry to “MaxTokenSize”, double-click to edit it, choose Decimal, and enter 65535: Any server workstation or server that interacts with SQL Server will require the registry entry.

What is the maxtokensize of a context token?

The process is different, depending on the version of Windows Server that the domain controller is running. The maximum allowed value of MaxTokenSize is 65535 bytes. However, because of HTTP’s base64 encoding of authentication context tokens, we do not recommend that you set the maxTokenSize registry entry to a value larger than 48000 bytes.

How do I create the maxtokensize value setting in a GPO?

To create the MaxTokenSize value setting in a GPO, follow these steps: Click Start, click Run, type gpmc.msc, and then click OK to open the Group Policy Management Console. In the Group Policy Management Console, create a new GPO that is linked at the domain level or that is linked to the OU that contains your computer accounts.