Created on
03-25-2025
09:33 AM
Edited on
03-31-2025
05:34 AM
By
Jean-Philippe_P
Description
This article describes how to connect VNC server using a custom VNC template that is created manually.
Scope
FortiPAM.
Solution
The first necessary step is to create a secret template dedicated for the VNC server connection. It can be done by following the path Secret Settings -> Templates -> Create, then filling the details in and submitting it.
The 'Permission' section and 'TOTP setting' can also be modified based on needs.
After creating the VNC secret template, a dedicated target needs to be created by selecting the created template through the path Secrets -> Targets -> Create, as shown below.
The next step is to create a secret to be able to connect to the VNC server by following the path Secrets -> Secrets -> Create and selecting the created template that is dedicated to the VNC server connection.
To launch the dedicated secret, the 'Launch Secret' option needs to be run after selecting the secret from the secrets list. The connection will directly start if only the 'Web-VNC' option is configured in the 'Launchers' section in the secret template settings.
To troubleshoot it, run the below debug commands in the FortiPAM CLI:
diagnose wad debug enable category secret
diagnose wad debug enable category vnc
diagnose wad debug enable level verbose
diagnose debug enable