Treat the SQL error as the blocking failure: identify which Workflow Manager or Service Bus account SQL Server rejects, then correct that account’s Windows authentication or SQL SPN before re-registering Workflow Manager with SharePoint.
The patch rollback and general domain checks have already ruled out two broad paths. Error 18452 specifically means SQL Server could not validate the Windows principal presented through Integrated Authentication; it does not by itself prove that the domain trust is broken.^1^
1. Isolate the rejected identity
- Reproduce the failure by starting Service Bus Message Broker, Service Bus Gateway, or Workflow Manager Backend.
- On the SQL Server hosting the Workflow Manager and Service Bus databases, open:
- SQL Server Management Studio → Management → SQL Server Logs → Current
- Event Viewer → Windows Logs → System
- Match the timestamp and record:
- The rejected login/account.
- Whether SQL reports error 18452, an SSPI handshake failure, or another error.
- Any accompanying Windows code, particularly
0x80090311 or 0x80090304.
Those SSPI codes indicate that no authentication authority could be contacted or that the Local Security Authority could not be contacted. If present, investigate the SQL Server’s DC/LSASS path rather than rebuilding Workflow Manager.^2^
Then identify the configured Workflow Manager RunAs account from Workflow Manager PowerShell:
Get-WFFarm |
Select-Object RunAsAccount, AdminGroup
Get-SBFarm |
Format-List
Test the reported RunAs account independently from the Workflow Manager server:
runas /user:CONTOSO\WFMService cmd
In the new command prompt, test a Windows-authenticated connection to the same SQL instance used by the WFM farm. If this fails with 18452, the issue is below SharePoint and independent of the Workflow Manager registration.
2. Check the SQL SPN configuration
On a domain-connected administrative workstation or server, inventory the SQL service account’s SPNs:
setspn -L CONTOSO\SqlService
setspn -Q MSSQLSvc/sql01.contoso.com:1433
setspn -Q MSSQLSvc/sql01:1433
Use the actual SQL service account, FQDN, and port. Look for a missing SPN, a duplicate SPN, or an SPN registered against the wrong account.
For a supported diagnostic, run Microsoft Kerberos Configuration Manager for SQL Server with an account that is an administrator on the SQL host. Connect to the SQL Server, retain the SQL Server selection, and review the SPN tab. Correcting SPNs through the tool requires Validated write to service principal name permission.^3^
Do not manually delete or rewrite SPNs without confirming their owners; an incorrect change can break authentication for other SQL clients.
If the SQL log contains 0x80090311 or 0x80090304, also check the SQL Server’s System log for matching Kerberos/LSASS events. Microsoft documents the same “untrusted domain” message when LSASS stops responding and recommends validating the SPNs with setspn -Q and setspn -L.^4^
Because all three environments are affected, compare their SQL host, SQL service account, Workflow Manager RunAs account, domain controllers, and applied policy. A shared component is the most useful discriminator; avoid rebuilding three workflow farms before finding it.
3. Validate Workflow Manager after SQL authentication works
Once all Workflow Manager and Service Bus services start successfully:
- On the Workflow Manager server, browse to:
- From a SharePoint server, browse to the Workflow Manager endpoint by its FQDN.
- In Central Administration → Application Management → Manage service applications → Workflow Service Application Proxy, check that the status is connected.
If the endpoint works but the proxy is disconnected, register it again from a SharePoint server using the existing endpoint and scope:
Register-SPWorkflowService `
-SPSite "http://sharepoint.contoso.com" `
-WorkflowHostUri "https://wfm.contoso.com:12290" `
-ScopeName "SharePoint2013" `
-Force
Run this as the Workflow Manager RunAs account or a member of its AdminGroup. Microsoft’s validation procedure requires testing the endpoint from both the workflow server and SharePoint, then confirming the proxy reports connected.^5^
Do not leave/rejoin the Workflow Manager farm or run its Configuration Wizard while SQL authentication is failing. Those operations cannot repair error 18452 and add certificate-generation-key and database-rejoin risks.
Longer-term supported upgrade
Classic Microsoft Workflow Manager cannot be upgraded in place to SharePoint Workflow Manager. That migration requires leaving the existing farm, preserving the certificate generation key, uninstalling the classic components, installing SharePoint Workflow Manager, and reusing the existing databases.^6^
Treat that as a planned upgrade after restoring the current SQL connectivity—not as the immediate repair for this authentication error.
References
- MSSQLSERVER_18452
- Consistent authentication issues in SQL Server
- Use Kerberos Configuration Manager to diagnose Kerberos issues in SQL Server
- Local security subsystem errors in SQL Server
- Upgrade from Workflow Manager to SharePoint Workflow Manager on a new farm
- Install and configure workflow for SharePoint Server