Problem accessing Self-Service via FortiClient VPN

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Answer
PA DEQUIDT
Messages: 16
Registration: Oct 27, 2025 - 4:18 p.m.

November 19, 2025 - 08:37

Good morning,

We have the following problem with users of a Forticlient VPN.

Accessing their Self-Service system when connected via VPN displays no results, even though the machine is reachable via the console.
VPN_Error.png
VPN_Error.png (69.95 KB) Viewed 11428 times
However, if the selservice is reconnected, access is restored about half the time.

Here is a list of all the actions we have already taken:
  • Traffic audit = No traffic is blocked, either to the primary or secondary repository on ports 80 and 443.
    Agent uninstalled and then reinstalled.
    WAPT services stopped and then restarted.
If you have any ideas for finding a solution, they would be more than welcome. :D
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 19, 2025 - 09:45

Try doing this in a regular command prompt:

And do this while the VPN is running:

Code: Select all

C:\Windows\System32>wapt-get shell
>>> from waptservice.service import get_allowed_domain_usergroups
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
['nomedugroupe']
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
['nomedugroupe']
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
['nomedugroupe']
Rerun get_allowed_domain_usergroups several times to see


You can also try:

Code: Select all

C:\Windows\System32>wapt-get shell
>>> import pyldap
>>> print(pyldap.cldap_get_domain_info()['host_name'])
>>> print(pyldap.cldap_get_domain_info()['host_name'])
>>> print(pyldap.cldap_get_domain_info()['host_name'])
>>> print(pyldap.cldap_get_domain_info()['host_name'])
To see if it's still returning the correct DC
PA DEQUIDT
Messages: 16
Registration: Oct 27, 2025 - 4:18 p.m.

November 21, 2025 - 2:46 PM

Sorry for the late reply. I rely on third parties, but my VPN is working perfectly. :)

Here's the return of orders:

Code: Select all

>>> from waptservice.service import get_allowed_domain_usergroups
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
[]
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
[]
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
>>> get_allowed_domain_usergroups('username',['nomedugroupe'])
[]
>>>

Code: Select all

>>> import pyldap
>>> print(pyldap.cldap_get_domain_info()['host_name'])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
>>> print(pyldap.cldap_get_domain_info()['host_name'])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
>>> print(pyldap.cldap_get_domain_info()['host_name'])
FRRNS-SAD01.sii.fr
>>> print(pyldap.cldap_get_domain_info()['host_name'])
FRRNS-SAD02.sii.fr
>>> print(pyldap.cldap_get_domain_info()['host_name'])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
>>> print(pyldap.cldap_get_domain_info()['host_name'])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
>>> print(pyldap.cldap_get_domain_info()['host_name'])
FRRNS-SAD01.sii.fr
>>> print(pyldap.cldap_get_domain_info()['host_name'])
FRRNS-SAD02.sii.fr
>>> print(pyldap.cldap_get_domain_info()['host_name'])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
>>>
In view of the order response, I better understand the random aspect, namely that about half the time the Selfservice responds.

Do you think it's a flow problem or something else entirely?

Best regards,

Pierre-Alexis DEQUIDT
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 21, 2025 - 3:11 PM

Thanks for the feedback

Could you try increasing the timeout?

Code: Select all

import pyldap
print(pyldap.cldap_get_domain_info(timeout_ms=3000)['host_name'])
PA DEQUIDT
Messages: 16
Registration: Oct 27, 2025 - 4:18 p.m.

November 24, 2025 - 09:33

The increased timeout results in an error half the time, corresponding to the accessibility of the self-service area.

Code: Select all

import pyldap
print(pyldap.cldap_get_domain_info(timeout_ms=3000)['host_name'])
Increase_Time_Out.png
Could the WAPT logs on the client machine tell us more?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 24, 2025 - 11:35

This should be tried several times to see:

Code: Select all

import pyldap
pyldap.cldap_get_ldap_controller('sii.fr')
PA DEQUIDT
Messages: 16
Registration: Oct 27, 2025 - 4:18 p.m.

December 2, 2025 - 2:47 PM

Hello,

Following the commands provided, we were able to deduce that the error stemmed from recurring requests to two of our old domain controllers.

Once the VMs were decommissioned, the service reached 100% availability again.

Thank you very much for your help.

Pierre-Alexis DEQUIDT
Answer