Some of my Customers are moving for Entra-joined devices from Hybrid-joined scenario.
One of the question in such configuration is SSO with on-prem resources joined to a traditional AD.
When a user uses account/password combination for logon (or for lock screen) SSO works out of the box, but if there is Windows Hello for Business in picture (and it is a default) some special steps need to be performed to be sure it works when a user using a PIN (or Biometry) for logon.
The latest technique recommended by Microsoft is called “Cloud Kerberos Trust” and outlined here: Windows Hello for Business cloud Kerberos trust deployment guide | Microsoft Learn.
Please note supported and unsupported scenarios as described by Microsoft:
Supported scenarios
The scenario in this article supports SSO in both of the following instances:
Cloud resources such as Microsoft 365 and other Security Assertion Markup Language (SAML)-enabled applications.
On-premises resources, and Windows-integrated authentication to websites. The resources can include websites and SharePoint sites that require IIS authentication and/or resources that use NTLM authentication.
Unsupported scenarios
The following scenarios aren’t supported:
Windows Server Active Directory Domain Services (AD DS)-joined (on-premises only devices) deployment.
Remote Desktop Protocol (RDP), virtual desktop infrastructure (VDI), and Citrix scenarios by using a security key.
S/MIME by using a security key.
Run as by using a security key.
Log in to a server by using a security key.
There is also a Deep Dive document here: https://learn.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/how-it-works-authentication#microsoft-entra-hybrid-join-authentication-using-cloud-kerberos-trust
The process is pretty straight-forward
– Check that your Domain controller in the AD-site is writable, has a certificate issued from Kerberos Authentication template (in case of Microsoft PKI, or has proper subject name and EKU (including KDC Authentication) in case of a third-party CA – see more here: https://learn.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/hello-deployment-issues#resolve-on-premises-resource-access-issue-with-non-microsoft-cas) and has proper encryption policy (AES256_HMAC_SHA1) enabled as described here: https://learn.microsoft.com/en-us/entra/identity/authentication/howto-authentication-passwordless-security-key-on-premises#prerequisites
– be sure your EntraID Connect syncs attributes as described here: https://learn.microsoft.com/en-us/entra/identity/authentication/howto-authentication-passwordless-security-key-on-premises#prerequisites. Those attributes should be synced by default.
– you need to deploy Entra Kerberos (Passwordless security key sign-in to on-premises resources – Microsoft Entra ID | Microsoft Learn) which will bring an additional object under Domain Controllers container.
– after that several Windows Hello For Business policies must be assigned using Intune. Either Settings Catalog or Custom CSP can be used. I used CSP because I added a parameter CloudKerberosTicketRetrievalEnabled to get a Kerberos ticket during sign-in and that is not supported by a settings catalog (yet). The key usage is described in Peter’s article here: All about Microsoft Intune | Configuring Azure AD Kerberos authentication on Azure file shares for Windows devices
I configured the clous trust and applied WHB policies to my test device where I used a test account to log on.
I checked Event Viewer Microsoft-Windows-User Device Registration log and looked for Event ID 358 outlining WHB registration. It looked good
I also ran klist command and saw a Kerberos ticket issued by Entra.
But when I tried to access a file share where I set permissions for the user I received a logon pop-up windows which asked me to use a WNB PIN and with a message “The system cannot contact a domain controller to service the authentication request windows hello for business” in red. If I put the PIN the connection fails with access denied.
I ran a wireshark and in the trace I see the Kerberos ticket request failed with “kdc_error_client_name_mismatch”
Resolution: As per Microsoft Doc: “Similar rules and restrictions used for RODCs apply to the AzureADKerberos computer object. For example, users that are direct or indirect members of privileged built-in security groups won’t be able to use cloud Kerberos trust.” My test user had “Builtin\Administrators” group membersip via one of other groups. So I created another non-privileged user, re-assign it as a Primary user for the Test machine and logged in. Immediately after the logon the user got a WHB enrollment page. after that I lock the device and unlocked it using WHB PIN. Next I tried to access a file share and SSO worked as expected.
Troubleshooting resources:
dsregcmd /status
klist
klist cloud_debug
Event Viewer:
Application and Services\Microsoft\Windows\User Device Registration
Application and Services\Microsoft\Windows\SMBClient\Security
WHB CSP policies: PassportForWork CSP | Microsoft Learn
If you need to protect your DC with a Kerberos Proxy (or there is no direct sight to DC from a Client): Windows Hello for Business Cloud Trust and KDC proxy – Cloudbrothers