The last version of FortiClient
asks me about my password every time.
How can I make the program to remember it and who faces a similar problem?
Does anyone have a solution?
The last version of FortiClient
asks me about my password every time.
How can I make the program to remember it and who faces a similar problem?
Does anyone have a solution?
"show_remember_password" type="4" data="0"
"show_remember_password" type="4" data="1"
v6.2.2.0877
here. It seems that it will always disappear if you change the registry or config after you disconnect. This is likely being reset each time due to the server administrator's setting. –
Holcomb Restore
button is disabled. –
Acarology I had the same issue in OSX (Sierra) using Forticlient 5.4.1.I ended up editing the following file: [May be in a different location for you depending how app was installed - look at long answer below if it doesn't exist]
sudo vim /Library/Application\ Support/Fortinet/FortiClient/conf/vpn.plist
To change the following two zeroes to ones:
...
<dict>
<key>YOUR_VPN_CONNECTION_NAME_HERE</key>
<dict>
<key>AllowAutoConnect</key>
<integer>1</integer>
<key>AllowKeepRunning</key>
<integer>0</integer>
<key>AllowSavePassword</key>
<integer>1</integer>
...
Save and then simply open again and the checkboxes to save will be available now, unlike before.
You could also use the same thing to save some vpn settings for auto rollout of machines by script (instead of manual setup for each user)
For those interested, the way I found it was simple:
Open Forticlient Console
In terminal run "sudo opensnoop | grep Forti"
In forticlient console quickly add a new vpn
(CNTl-C) terminal and then search through output
File above was most obvious sounding one and quick look showed a good outlook.
Edit as above and it works.
Remember credential
check box –
Stinkpot sudo chflags nouchg
–
Alcoran vpn.plist
file: <key>OnDisconnectScript</key> <string>nohup PATH_TO_YOUR_RESTART_SCRIPT</string>
and put this into the restart_script: #!/usr/bin/env bash killall FortiClientAgent; killall FortiClient; open -a FortiClient -jg && osascript -e 'tell application "System Events" to set visible of application process "FortiClient" to false';
–
Maximinamaximize According to the official documentation, "How to activate Save Password, Auto Connect, and Always Up in FortiClient", the availability of this option (and some others) is decided by the server administrator, using the config setting set save-password enable
.
You can currently override this by tampering with the show_* options in the registry; specifically,
HLKM\Software\Wow6432Node\Fortinet\Forticlient\sslvpn\<name>\show_remember_password = 1
Then if 'save password' is checked during login, the client will encrypt the password into the DATA1 and DATA2 values, and even though the server may hide the checkboxes again, the saved password will stay. To clear it, edit the connection's settings and switch auth back to 'Prompt on login'.
EDIT: As posted by Igor half a year later, a much more structured solution is to export the config file, alter it and then load it back in. There are various useful settings you might want to tweak. You can also re-use the config file when deploying to multiple hosts or re-installing.
For windows and Forticlient VPN (Not only named Forticlient) 6 or above version:
FortiClient 6.4: In Windows regedit, go to
Computer\HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\Sslvpn\Tunnels\<vpn name>
and set the value of show_remember_password
to 1
.
in Windows, if you use register editor, and search HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\Sslvpn\Tunnels<VPN_NAME>, you'll se a show_remember_password entry with a value of "0". If you change this value to "1", you will be able to save your password for latter use...
For FortiClient VPN 6.4.3, seems like you have to
I'll detail option 1.:
Open FortiClient VPN
Export your *.conf file:
Import your *.conf file:
This did the trick for me. Also, it appears once this was done, a "save_password" element was added to the conf file, if exported again: connections > connection > ui section of the *.conf file, with a value of 1:
<ui>
<show_alwaysup>0</show_alwaysup>
<show_autoconnect>0</show_autoconnect>
<save_username>0</save_username>
<save_password>1</save_password>
<show_remember_password>0</show_remember_password>
</ui>
For Linux you may use forticlientsslvpn_cli
with Expect to feed in the password.
A complete solution available here:
https://gist.github.com/azizasm/e216bc47b54f5b68405f3c8f8b832e8a
Note: this solution will auto reconnect the if the VPN get disconnected.
I have tried editing the configuration file and restoring but the switch resets itself after a connection has been made as described above. I have also edited the registry at Computer\HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\Sslvpn\Tunnels<vpn name> to ensure a key SavePass exists with a value of 1 but that also does not persist. This is on version 6+ of Forticlient. However on version 5.2.5.0658 I found that editing the config file AND editing the vpn connection details and removing the 'Description' field I can then enter a password and tick the save password. This is remembered after disconnecting and persists provided you don't shutdown Forticlient.
© 2022 - 2024 — McMap. All rights reserved.