To resolve this problem, locate the computer accounts that have the duplicate SPNs. When you have located the computers that have the duplicate SPNs, you can either delete the computer account from the domain, disjoin and rejoin the computer to the domain, or you can use ADSIEdit to correct the SPN on the computer that has the incorrect SPN.
To locate the computer accounts that have the duplicate SPNs, use one of the following methods.
Method 1: Use the LDP support tool
Note If you do not have the Windows 2000 support tools installed, install them from the Windows 2000 CD-ROM before you continue. The Setup executable file for the support tools is located on the CD-ROM in the Support\Tools folder. The installation does not require that you restart the computer. However, you may have to restart the computer to update the environment variables.
- Click Start, click Run, type LDP, and then click OK.
- Click Connection, and then click Connect.
- Leave the default settings, and then click OK.
Note If you do not receive the expected result, try another search by using the Global Catalog Port (3268) instead of the default setting (389). - Click Connection, and then click Bind.
- Leave the default settings, and then click OK.
- Click View, and then click Tree.
- In the Tree View dialog box, type DC=YourDomain,DC=com in the BaseDN box, where YourDomain is your domain.
- Click Browse, and then click Search.
- In the Search dialog box, type DC=YourDomain,DC=com in the BaseDN box.
- In the Search dialog box, type (serviceprincipalname=HOST/mycomputer.mydomain.com)
in the Filter box. If the service principal name that is referred to in the error in the System log differs from this example, type the service principal name to which the error refers.
Note If you do not receive the expected result, try searching for " HOST/" as opposed to searching only for the exact SPN in the event ID. - Under Scope, click Subtree.
- Click Run.
Method 2: Use the Ldifde utility
Use the Ldifde utility to dump the SPN for the forest:
- From the domain controller, open a command prompt, and then type the following string:
ldifde -f check_SPN.txt -t 3268 -d "" -l servicePrincipalName -r "(servicePrincipalName=HOST/mycomputer*)" -p subtree
(Note Because you use the -t 3268 parameter to specify that a global catalog (GC) server is used in the query, and you do not use the -d parameter to specify an explicit distinguished name (DN), the forest root DN is used with the HOST/mycomputer* parameter. Therefore, you can look for all SPNs that contains this string. - Open the check_SPN.txt file in Notepad, and then search for the SPN that is reported in the event log.
- Note the user accounts and the computer accounts under which the SPN is located.
Method 3:
Use the querySpn.vbs script in the following Microsoft TechNet article. To use the script, copy the code, paste it into Notepad, and then save the script as querySpn.vbs.
Run the script by using the following command:
cscript spnquery.vbs HOST/mycomputer* >check_SPN.txt
Note The obtained output file check_SPN.txt from the script in Method 3 can be used the same way as described in Method 2.