You may receive an error message when you try to connect to an instance of SQL Server or SQL Server Desktop Engine by using Windows Authentication (867581)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)
  • Microsoft SQL Server 2000 Desktop Engine (MSDE)

Bug #: 471577 (Shiloh)
Shiloh:471577

Important This article contains information about how to modify the registry. Make sure to 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 try to connect to an instance of Microsoft SQL Server 2000 or to an instance of SQL Server 2000 Desktop Engine (also known as MSDE 2000) by using Windows Authentication, you may receive the following error message:
Server: Msg 11, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.

CAUSE

This problem may occur if the registry value of the MaxTokenSize parameter for Kerberos is high. Typically, this problem occurs when the registry value of the MaxTokenSize parameter is set to a hexadecimal value of 0x100000, instead of a decimal value of 65,535.

WORKAROUND

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 your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To work around this problem, set the base of the MaxTokenSize registry value to decimal, and then set the registry value to a lower value. To do this, follow these steps:
  1. At a command prompt, run the following command to start Registry Editor:
    regedit
  2. Locate and then click the following registry key in Registry Editor:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters

  3. In the right pane, right-click MaxTokenSize, and then click Modify.
  4. In the Edit DWORD Value dialog box, click Decimal in the Base box.
  5. In the Value data box, type a lower value, and then click OK.
  6. Close Registry Editor.
  7. Restart the computer.

MORE INFORMATION

Steps to reproduce the problem

On a computer that is running the instance of SQL Server 2000 or the instance of SQL Server 2000 Desktop Engine, follow these steps:
  1. At a command prompt, run the following command to start Registry Editor:
    regedit
  2. Locate and then click the following registry key in Registry Editor:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters

    Note If this registry key is not present, create the registry key. To do this, follow these steps:
    1. Locate and then click the following registry key in Registry Editor:

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos

    2. On the Edit menu, point to New, and then click Key.
    3. In the left pane, change the name of the new registry key to Parameters.
    4. Click the Parameters registry key.
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. In the right pane, change the name of the new registry value to MaxTokenSize.
  5. In the right pane, right-click MaxTokenSize, and then click Modify.
  6. In the Edit DWORD Value dialog box, click Decimal in the Base box.
  7. In the Value data box, type 65,535.
  8. Click OK.
  9. Close Registry Editor.
  10. Restart the computer.
  11. Use SQL Query Analyzer to connect to the instance of SQL Server 2000 or SQL Server 2000 Desktop Engine by using Windows Authentication. You can also run the following command at a command prompt:
    osql -E  -S Instance Name of SQL Server 2000 or SQL Server 2000 Desktop Engine

REFERENCES

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

280830 Kerberos authentication may not work if user is a member of many groups

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

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


Modification Type:MajorLast Reviewed:10/2/2006
Keywords:kbKerberos kbRegistry kberrmsg kbAuthentication kbprb KB867581 kbAudEndUser