<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Okta Active Directory Agent Fails to Reconnect After Server Restore With a "401 Unauthorized" Error
Okta Classic Engine
Directories
Okta Identity Engine
Overview

The Active Directory (AD) Agent fails to reconnect to Okta after a server restore because Okta invalidates the OAuth 2.0 token for security reasons. To resolve this issue, reinstall the AD Agent on the server. When this issue occurs, the AD Agent logs display the following errors:

 

{Response from server: 401 UNAUTHORIZED "Unauthorized"}

 

{Response from server: {"errorCode":"E0000011","errorSummary":"Invalid token provided","errorLink":"E0000011"}

 

NOTE: Review the Connection Issues for Okta AD Agent Versions 3.18.0 and Above documentation if the AD Agent logs contain the following error:

 

{"error":"invalid_token","error_description":"The token timestamp is invalid."}

Applies To
  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Active Directory (AD) Integration
  • Active Directory (AD) Agent
Cause

Okta invalidates the OAuth 2.0 token for security reasons when a server restore reverts the AD Agent to an earlier snapshot.

Solution

How is the Active Directory Agent reconnected to Okta after a server restore?

 

To reconnect the server to Okta, uninstall the existing agent, download the latest installer from the Admin Console, and run the installation program.

 

  1. Uninstall the Okta Active Directory agent.
  2. In the Okta Admin Console, go to Settings > Downloads.
  3. Scroll to the AD Agent Installer section and select Download Latest.
    AD Agent Installer - Download button
  4. Run the installation program and follow the directions.
Loading
Okta Active Directory Agent Fails to Reconnect After Server Restore With a "401 Unauthorized" Error