Share via


Event ID 6 — Privilege Attribute Certificate Configuration

Applies To: Windows Server 2008

The Kerberos Privilege Attribute Certificate (PAC) contains all of the group memberships for the security principal requesting access to a resource. This certificate is transferred to the client by using the Key Distribution Center (KDC).

Event Details

Product: Windows Operating System
ID: 6
Source: Microsoft-Windows-Security-Kerberos
Version: 6.0
Symbolic Name: KERBEVT_INSUFFICIENT_TOKEN_SIZE
Message: The kerberos SSPI package generated an output token of size %1 bytes, which was too large to fit in the token buffer of size %2 bytes, provided by process id %3.

The output SSPI token being too large is probably the result of the user %4 being a member of a large number of groups.

It is recommended to minimize the number of groups a user belongs to. If the problem can not be corrected by reduction of the group memberships of this user, please contact your system administrator to increase the maximum token size, which in term is configured machine-wide via the following registry value: HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters\MaxTokenSize.

Resolve

Increase the maximum token size

The Privilege Attribute Certificate (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 a ticket, the information contained in the PAC is used to generate the user's access token. If the user is a member of many groups, the PAC might exceed the preallocated buffer size.

Possible resolutions include:

  • Reduce the user's group membership.
  • Increase the maximum token size.

To perform these procedures, you must be a member of the local Administrators group, or you must have been delegated the appropriate authority.

Reduce the user's group membership

You can reduce the user's group membership by using Active Directory Users and Computers to remove the user from groups. The name of the group is identified in the event log message.

Note: Nested group memberships are expanded before they are written to the PAC. Because of this, the actual number of groups that the user is a member of might be more than than it appears to be.

To remove a user account from a group by using Active Directory Users and Computers:

  1. Log on to a computer that has Active Directory Users and Computers installed. It is installed by default on a domain controller.
  2. Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
  3. Locate the user account object. By default, user account objects are created in the Users organizational unit.
  4. Right-click the user account object, and then click Properties.
  5. Click the Member Of tab.
  6. Click the group that you want to remove, and then click Remove.
  7. Click Yes, confirming that the user account should be removed from this group.
  8. Repeat steps 6 and 7 for each group that should be removed.
  9. Close Active Directory Users and Computers.

Increase the maximum token size

To increase the maximum token size:

Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.

  1. Log on to the Key Distribution Center (KDC) server.
  2. Click Start.
  3. In the Start Search box, type regedit, and then press ENTER.
  4. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  5. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters.
  6. Right-click Parameters, point to New, and then click DWORD (32-bit) Value.
  7. Name the registry entry MaxTokenSize.
  8. Right-click MaxTokenSize, and then click Modify.
  9. Under Base, click Decimal.
  10. Type 65535, and then click OK.
  11. Close Registry Editor.
  12. Restart the computer.
  13. Repeat steps 1-12 for each KDC in your domain.

Verify

To verify that the Kerberos Privilege Attribute Certificate (PAC) is present and functioning correctly, you should ensure that a Kerberos ticket was received from the Key Distribution Center (KDC) and cached on the local computer. You can view cached Kerberos tickets on the local computer by using the Klist command-line tool.

Note: Klist.exe is not included with Windows Vista, Windows Server 2003, Windows XP, or Windows 2000. You must download and install the Windows Server Resource Kit before you can use Klist.exe.

To view cached Kerberos tickets by using Klist:

  1. Log on to a Kerberos client computer within your domain.
  2. Click Start, point to All Programs, click Accessories, and then click Command Prompt.
  3. Type klist tickets, and then press ENTER.
  4. Verify that a cached Kerberos ticket is available.
    • Ensure that the Client field displays the client on which you are running Klist.
    • Ensure that the Server field displays the domain in which you are connecting.
  5. Close the command prompt.

Privilege Attribute Certificate Configuration

Core Security