Time-out error when you run Setspn.exe in Windows 8 or Windows Server 2012

Applies to: Windows 8Windows 8 EnterpriseWindows 8 Pro


Assume that you run Setspn.exe and use the –X switch and the –F switch to identify duplicate Service Principal Names (SPNs) in Windows 8 or Windows Server 2012 in a domain forest. In this situation, you may encounter a time-out error. For example, you may receive an error message that resembles the following:
Checking forest DC=corp, DC=contoso, DC=com
Operation will be performed forestwide, it might take a while.
Ldap Error(0x55 -- Timeout): ldap_get_next_page_s <Date/Time>

The tool queries 100 objects in a paged query and is counting the pages on screen when you omit the -P option. When the problem does not happen always, you will notice that the problem will always occur on the last page.

Note This issue typically occurs when there are tens of thousands to hundreds of thousands of SPNs in the forest.


This issue occurs because the SPN query times out after one minute.

The last page of the query is slow as the LDAP server needs to ensure there are no duplicate objects returned. Towards the end of the query most objects are suppressed as they were returned previously for other hits in the servicePrincipalName attribute.


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 this specific problem.

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, submit a request to 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.


To apply this hotfix, you must be running Windows 8 or Windows Server 2012.

Registry information

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

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.


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

More Information

The update sets the query time-out to three minutes. So with a default "MaxQueryDuration" LDAP Server Policy of two minutes, this policy will be in effect next to abort the query if it runs for an extended time. You may want to extend the server policy time-out when you are affected by the limit of two minutes.

Information about LDAP Server policies:

315071 How to view and set LDAP policy in Active Directory by using Ntdsutil.exe

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