Microsoft KB Archive/935744

= Error message when you use a Windows Server 2003-based domain controller to join a Windows XP-based client computer to a domain: &quot;Not enough storage is available to complete this operation&quot; =

Article ID: 935744

Article Last Modified on 5/17/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows XP Professional

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you use a Microsoft Windows Server 2003-based domain controller to join a Microsoft Windows XP-based client computer to a domain, you may receive an error message that resembles the following on the client computer:

The following error occurred attempting to join the domain &quot; &quot;: Not enough storage is available to complete this operation.

Additionally, the following Warning message may be logged in the System log on the client computer: Event Type: Warning

Event Source: Kerberos

Event Category: None

Event ID: 6

Date:

Time:

User: N/A

Computer:

Description:

The kerberos SSPI package generated an output token of size 36E7 bytes, which was too large to fit in the 36D3 buffer provided by process id 0. If the condition persists, please contact your system administrator.



CAUSE
This problem occurs because the Kerberos token that is generated during authentication is more than the fixed maximum size. In the original release version of Microsoft Windows 2000, the default value of the MaxTokenSize registry entry was 8,000 bytes. In Windows 2000 with Service Pack 2 (SP2) and in later versions of Windows, the default value of the MaxTokenSize registry entry is 12,000 bytes.

For example, if a user is a member of a group either directly or by membership in another group, the security ID (SID) for that group is added to the user's token. For a SID to be added to the user's token, the SID information must be communicated by using the Kerberos token. If the required SID information exceeds the size of the token, authentication is unsuccessful.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, increase the Kerberos token size. To do this, follow these steps on the domain controller:  Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters

Note If the Parameters key is not present, create the key. To do this, follow these steps:  Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos

 On the Edit menu, point to New, and then click Key. Type Parameters, and then press ENTER. </li> On the Edit menu, point to New, and then click DWORD Value.</li> Type MaxTokenSize, and then press ENTER.</li> On the Edit menu, click Modify.</li> In the Base area, click Decimal, type 65535 in the Value data box, and then click OK.

Note The default value for the MaxTokenSize registry entry is a decimal value of 12,000. We recommend that you set this registry entry value to a decimal value of 65,535. If you incorrectly set this registry entry value to a hexadecimal value of 65,535, Kerberos authentication operations may fail. Additionally, programs may return errors. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

297869 SMS administrator issues after you modify the Kerberos MaxTokenSize registry value

</li> Exit Registry Editor.</li> Restart the computer.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information about how to use the Tokensz tool to compute the maximum token size, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=4A303FA5-CF20-43FB-9483-0F0B0DAE265C&displaylang=en

For more information about how to address problems that occur because of access token limitations, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=22dd9251-0781-42e6-9346-89d577a3e74a&DisplayLang=en

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

327825 New resolution for problems with Kerberos authentication when users belong to many groups

263693 Group Policy may not be applied to users belonging to many groups

Keywords: kbexpertiseadvanced kbtshoot KB935744

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.