How can I avoid Kerberos authentication problems that occur when Kerberos authentication uses UDP?

John Savill

July 21, 2005

1 Min Read
ITPro Today logo

A. Kerberos authentication normally takes place over the UDP protocol. However, Windows Server 2003 decreased the Maximum Transmission Unit (MTU) from 2000 bytes to 1465 bytes. This decrease means that packets might need to be broken into fragments. However, UDP is a connectionless protocol, which means no explicit connection is created in advance between the machines involved. Packets just arrive with no formal relationship to any other packets being sent, and no error, sequence, or flow control exists, as do with a connection-based protocol. Therefore, if the fragments are received out of sequence, the receiving server might drop them. For VPN connections that are affected by this problem, the client machines will hang at the "Loading your personal settings" logon stage.

To address the problem, you can increase the MTU under Windows 2003, or you can force the Kerberos authentication request at the client to use TCP instead of UDP. TCP is a connection-based protocol and won't drop the packets if they're received out of sequence. To increase the MTU, perform these steps:

  1. Start the registry editor (regedit.exe).

  2. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsaKerberosParameters registry subkey. (If the Parameters subkey doesn't exist, create it.)

  3. From the Edit menu select New, DWORD value.

  4. Enter a name of MaxPacketSize and press Enter.

  5. Double-click the new value, and set it to 1. Click OK.

  6. Restart the computer.

Microsoft also created an .adm template, which you can integrate into Group Policy to help you make this change to all clients in your environment. For more information about the template, see the Microsoft article "How to force Kerberos to use TCP instead of UDP in Windows Server 2003, in Windows XP, and in Windows 2000" .

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like