0x80090322: The target principal name is incorrect
The server could not prove it is the server the client asked for. A wrong or duplicate SPN, or a certificate name mismatch, is the usual cause.
What 0x80090322 means
The client asked to talk to one named server. The answer came from an identity that does not match that name. Windows security (SSPI) stops the connection.
With Kerberos, the cause is a service principal name (SPN) on the wrong account. With HTTPS, the cause is a certificate that does not hold the server name. In SCCM you see it in CcmMessaging.log, ccmsetup.log, smsts.log, and on site servers that connect to SQL Server.
Common causes
- The same SPN is registered on two accounts in Active Directory.
- SQL Server or an IIS application pool runs as a service account and the SPN sits on the computer account, or the reverse.
- A DNS alias or an old record points the name at a different server.
- The server's computer account password is out of step with the domain.
- The HTTPS certificate does not list the name the client used.
How to fix 0x80090322
-
Find the name that failed
Open the log that shows the code. Note the server name on the line above. Decide whether the call is HTTPS to a site system or a connection to SQL Server.
-
Look for duplicate SPNs
Run
setspn -Xfrom a domain computer. It lists SPNs that exist on more than one account. Remove the wrong copy withsetspn -D. Then list the SPNs on the right account with the command below. -
Check the SQL Server SPN
If the site server cannot reach the site database, check the account that runs the SQL Server service. The
MSSQLSvcSPNs for the server name and port must be on that account. Microsoft documents this under SPNs for the Configuration Manager site database. -
Check DNS
Run
nslookupfor the name and confirm the IP address belongs to the right server. Remove stale A records and aliases that point elsewhere. -
Check the secure channel and the certificate
On the server, run the PowerShell test below. False means the computer account is out of step with the domain. For HTTPS, view the certificate on the IIS binding and confirm it holds the name clients use.
Commands that help
setspn -X
setspn -L CONTOSO\svc-sql
Test-ComputerSecureChannel -Verbose
Turn any hex or decimal error code into its meaning, or search every code on this site.