"Cannot complete request" error with SAML enabled store in Multi-Domain environment
Two-way Trust is added for the two domains where Infrastructure servers (StoreFront, Federated Authentication Server, etc.) are in Domain A and Users are in Domain B that is two different domains. Azure AD is the Identity Provider
Shadow accounts are created in Domain B for users which have an alternate UPN suffix as domain.onmicrosoft.com and they logon as test@domain.onmicrosoft.com
Getting below errors from StoreFront verbose logs -
00003537 10:19:24 AM [2256] Citrix.DeliveryServices.Kerberos Verbose: 0 :
00003538 10:19:24 AM [2256] Authentication Attempt for user: test@domain.onmicrosoft.com
00003539 10:19:24 AM [2256] Citrix.DeliveryServices.Kerberos Information: 0 :
00003540 10:19:24 AM [2256] Attempting Kerberos authentication with a UPN, and client realm: <null>
00003541 10:19:24 AM [2256] Citrix.DeliveryServices.Kerberos Information: 0 :
00003542 10:19:24 AM [2256] Kerberos authentication: Failed. Authentication Status: C000006D Sub-status: 0000 [The attempted logon is invalid. This is either due to a bad username or authentication information.]
Wireshark from StoreFront server shows an error "KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN"
Open Active Directory Domains and Trusts.
In the console tree, right-click the domain node for the domain you want to administer, and then click Properties.
On the Trusts tab, under either Domains trusted by this domain (outgoing trusts) or Domains that trust this domain (incoming trusts), click the forest trust that you want to administer, and then click Properties.
On the Name Suffix Routing tab, under Name suffixes in the Domain B , click the unique name suffix (domain.onmicrosoft.com) for which you want to Enable the routing status, and then click OK.