Okta Agentless Desktop Single Sign-On Fails Pre-Check and Redirects Authentication on AWS Remote Desktop Hosts
Last Updated:
Overview
Okta Agentless Desktop Single Sign-On (ADSSO) fails the pre-check on Amazon Web Services (AWS) Virtual Remote Desktop hosts due to browser Canonical Name (CNAME) canonicalization. Configure the browser on the Remote Desktop Services (RDS) host machines to suppress CNAME lookup during Kerberos authentication. When users attempt to authenticate to Okta via ADSSO while logged into RDS virtual machines hosted on AWS, Okta redirects the ADSSO attempt to the next routing rule after failing the ADSSO pre-check.
The System Log displays the following redirection event with a reason code:
ADSSO precheck failure on Classic
The Windows Kerberos Log displays the following event:
Event ID 100 - Error - "The service principal name (SPN) HTTP/ is not registered, which caused Kerberos authentication to fail: 0x7."
Additionally, no Kerberos ticket is generated for the Okta Kerberos URL unless the user navigates directly to the URL in the browser: <org>.kerberos.okta.com.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Agentless Desktop Single Sign-On (ADSSO)
- Active Directory (AD)
- Amazon Web Services (AWS)
Cause
Browser CNAME canonicalization causes the failure. When <org>.kerberos.okta.com resolves in the Domain Name System (DNS), it acts as a CNAME that points to an underlying Okta or AWS load balancer hostname. By default on these AWS environments, Chromium-based browsers (Google Chrome and Microsoft Edge) perform DNS CNAME resolution before initiating Kerberos negotiation. Instead of requesting a Kerberos ticket from Active Directory using the original alias (HTTP/<org>.kerberos.okta.com), the browser requests a ticket matching the canonical destination name: HTTP/1234234235.awsglobalaccelerator.com@<domainName>.
Because that AWS hostname does not exist as a Service Principal Name (SPN) on the Active Directory service account, the Domain Controller returns the following error.
Event ID 100 Error 0x7 (KDC_ERR_S_PRINCIPAL_UNKNOWN)
Solution
How does the Kerberos feature flag resolve this issue?
Okta expects this behavior for Okta Classic Engine tenants that don't have the Kerberos feature flag enabled. This flag ensures authentication requests to the Domain Controller use the Kerberos subdomain to avoid CNAME canonicalization. This Flag is a requirement for the OIE Upgrade - See OIE Upgrade Okta Article.
Contact Okta Support to enable this feature flag.
Disable CNAME Lookup for Kerberos Negotiation in Google Chrome
If ADSSO must function on Remote Desktop Services environments with Okta Classic Engine, configure the browser on the RDS host machines to suppress CNAME lookups during Kerberos authentication. This forces the browser to request the SPN using the exact hostname in the URL.
Configure the Google Chrome Group Policy Object (GPO) to disable CNAME lookups when negotiating Kerberos authentication by navigating through the Administrative Templates.
- Navigate to Computer Configuration > Policies > Administrative Templates > Chrome > HTTP authentication.
- Select Disable CNAME lookup when negotiating Kerberos authentication.
- Choose Enabled.
What is the Group Policy Object configuration for Microsoft Edge?
Configure the Microsoft Edge GPO to disable CNAME lookups when negotiating Kerberos authentication by navigating through the Administrative Templates.
- Navigate to Computer Configuration > Policies > Administrative Templates > Microsoft Edge > HTTP authentication.
- Select Disable CNAME lookup when negotiating Kerberos authentication.
- Choose Enabled.
