Hotfix is available that corrects "User’s SID" in event ID 6035 in Windows Server 2008 R2

Applies to: Windows Server 2008 R2 Service Pack 1Windows Server 2008 R2 DatacenterWindows Server 2008 R2 Enterprise More

Symptoms


Consider the following scenario:
  • You are a member of more than 1,015 groups in a domain environment.
  • You try to log on to Active Directory and the logon authentication fails.
  • Event ID 6035 is logged on the Windows Server 2008 R2-based domain controller.
In this scenario, the system SID is displayed in the event message instead of the user’s SID.

For example, the following event displays the "User’s SID" information in the form of 53002D0031002D00:



However, the expected event message resembles the following:

Cause


This issue occurs because of an incorrect string format.

Resolution


Administrators can do a test on the global catalog in a lab environment before applying the hotfix in a production environment. Run the following PowerShell script to find potential users who have large number of group memberships:

Note The script may run for multiple hours in a very large Active Directory.
cls
Get-Date -format F
$ADUsers = Get-AdUser -Filter * -ResultPageSize 1000 -ResultSetSize $null
ForEach ($ADUser in $ADUsers)
{
$UserAccount = [ADSI]"LDAP://$ADUser"
$UserAccount.GetInfoEx(@("tokengroupsglobalanduniversal"),0)
$Groups = $UserAccount.Get("tokengroupsglobalanduniversal")
If ($Groups.Count -ge 1000)
{
Write-Host "[" $ADUser.distinguishedName "] belongs to " $Groups.Count " groups."
}
}
Write-Host "`n###################`n " $ADUsers.Count " AD users checked."
Get-Date -format F
The following is an example of the output that this script generates:
Monday, January 28, 2013 5:04:34 PM
[ CN=tester1,OU=Test,DC=TestDomain,DC=com ] belongs to 1024 groups.
[ CN=tester22,OU=Test,DC=TestDomain,DC=com ] belongs to 1024 groups.
[ CN=tester1022,OU=Test,DC=TestDomain,DC=com ] belongs to 1024 groups.

###################
10002 AD users checked.
Monday, January 28, 2013 5:06:15 PM

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows Server 2008 R2 Service Pack 1 (SP1).

For more information about how to obtain a Windows 7 or Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2

Registry information

To apply this hotfix, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates