Uninstall or reinstall the Okta LDAP Agent
When you uninstall and reinstall your Okta LDAP Agent, you can remove the existing Okta API token. If you are performing an upgrade, you don't need to remove the Okta API token. To remove the API token, you must delete the Okta LDAP Agent folder and deactivate and remove your old Okta LDAP Agent.
To continue using an Okta LDAP Agent and to avoid down time, you must have at least two agents running before you uninstall one of them.
Uninstall the Okta LDAP Agent on Windows
- On your Windows server, click Start > Control Panel > Programs > Programs and Features.
- Select the Okta LDAP Agent, and then click Uninstall/Change.
- To remove the agent configuration data from the hard drive, on the agent server, go to C:\Program Files\Okta and delete the Okta LDAP Agent folder. Deleting this folder removes the agent configuration data and the API token from your hard drive. The API token for the server remains valid in Okta, so it is important to remove the configuration data.
Uninstall the Okta LDAP Agent on Linux
On your Linux server, open a command prompt and run one the following commands:
Debian: dpkg --purge OktaLDAPAgent
RPM: yum remove OktaLDAPAgent
Issuing the remove command removes the agent, all the agent configuration data, and the API token from your hard drive. The API token for the server is still valid in Okta so it is important to remove the configuration data.
Reinstall the Okta LDAP Agent
Installing the Okta LDAP Agent does not overwrite the configuration data in the Okta LDAP Agent folder. To reinstall and create a new API token, delete the Okta LDAP Agent folder before reinstalling the Okta LDAP Agent.
- Install the Okta LDAP Agent. See Install the Okta LDAP Agent.
- In the Admin Console, go to Directory > Directory Integrations.
- Click LDAP and the Agents tab.
- Confirm that your reinstalled Okta LDAP Agent appears in the Agent Monitors section and it is connected to Okta. A minimum of one Okta LDAP Agent should be online.
- Optional. Revoke the Okta API token of the previous Okta LDAP Agent:
- Under Agent Monitors, click Deactivate Agent for the previous Okta LDAP Agent and then click Deactivate Agent to confirm. Deactivating the agent revokes its API token.
- Click Delete and then click Delete Agent.