Troubleshooting Tip: How to troubleshoot TSAgent connectivity and user mapping issues
Description | This article describes a troubleshooting methodology to verify TSAgent (Terminal Server Agent) connectivity and user mapping in a FortiGate FSSO environment. |
Scope | Product: FortiGate. Feature: FSSO, TSAgent. Version: FortiOS v7.x and later. |
Solution | TSAgent is used in terminal server environments to provide user identity information to FortiGate for policy enforcement. Incorrect configuration or communication issues can prevent user mapping. This procedure verifies installation, communication, and user detection. Troubleshooting flow:
Verification steps:
On the terminal server, open PowerShell and run: Expected result: The service status is 'Running'. If the service is not running, start the service and verify the startup type.
Open PowerShell and run the following command: Expected result: The TSAgent process listens on the configured port (default is 8000). If no listening port is detected, verify the TSAgent configuration.
Navigate to the TSAgent installation directory and review the configuration file. Verify the following:
On FortiGate CLI, run: Expected result: Logs show successful communication with TSAgent and user logon events. Disable debug after verification:
On FortiGate CLI, run the following command: Expected result: Logged users from the terminal server appear with correct IP and username mapping.
On the terminal server:
Expected result: No critical errors related to the TSAgent service or communication.
On the terminal server, open PowerShell and run the following command: Expected result: Active user sessions are listed with session IDs.
On the terminal server, open PowerShell and run the following command: Expected result: If connectivity fails, verify firewall rules and network routing.
Ensure that policies allow communication between FortiGate and the terminal server.
Ensure that FortiGate and the terminal server use synchronized time sources. Time differences can affect authentication and logging. Expected result: The time difference is minimal between devices.
Related articles: |
