How to remember password in FortiClient VPN? [closed] - vpn

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
The community reviewed whether to reopen this question 3 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
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?

Open FortiClient console.
Press button Backup in System section.
Save your configuration in vpn.conf file (No password).
Open vpn.conf in text editor.
Find string: "show_remember_password" type="4" data="0"
Modify to: "show_remember_password" type="4" data="1"
Save changes.
Press button Restore in System section FortiClient console.
Select your changed vpv.conf file.
Now you can see Save Password checkbox and you can save your password.

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.

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:
Open the FortiClient.
Press the config symbol.
Press the button Backup.
Save your configuration in vpn.conf file.
Open your vpn.conf in text editor.
Find the string: show_remember_password (it must be 0)
Modify to: 1
Find the string again show_remember_password under user_configuration.
Modify to: data="1"
Save changes.
Find button Restore under config again.
Firstly, click lock icon(this button enable to restore operation) and then click restore.
Select your changed vpn.conf file. Now you can see Save Password checkbox and you can save your password.
This checkbox may be disappear after first using. Don't worry, if your password changes, do it again these steps.

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.

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.

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
modify the user configuration section within the *.conf" file or
add a save_password node to the ui section in your *.conf file.
I'll detail option 1.:
Open FortiClient VPN
Export your *.conf file:
Click the gear icon (second icon) on the upper-right
Click Backup
In the file dialog box, indicate the file to output your *.conf
Ensure the "Include user settings" is checked
Indicate a password for encrypting the *.conf file. This password is used simply to encrypt sensitive info for exporting/importing the *.conf file.
Open the *.conf file in a text editor.
7 At the bottom of the file, in the user_configuration section, set show_remember_password key to 1:
Save the *.conf file.
Import your *.conf file:
Click the padlock icon on the upper-right. This must be done to Restore *.conf file
Click the Restore button
Indicate the File and password (used to encrypt the *.conf file in the 'Export conf file' section)
Click OK
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>

Related

I have a problem with the db_assembler. bash mysqladmin not found

even so I can access my sql database, seeing it running in my services and created the user acore with all rights I have this error when using db_assembler.
https://i.imgur.com/Xf51U0J.png
Then the window gets closed I configured the config.sh earlier but it didnt got me far. Thanks for the help.
Just ran into the same problem, and solved by editing the Path variable in Windows. The error is caused because the 'mysqladmin.exe' file is not being found by the AzCore installation script.
To fix it, you need to add the directory that file is found in (usually C:\Program Files\MySQL\MySQL Server 8.0\bin\ on a default install) to the Path variable. To do that, go to Advanced System Settings under System in the Control Panel, click the Environment Variables button, select Path from the list up the top, and click the Edit button. Then click New, add the path to the 'mysqladmin.exe' file, and OK out of there. You'll need to reboot, restart the MySQL Server service, and then retry the AzCore DB installation script.

Wordpress encoding issue after migrating to new server

We've switched server for one of my client's website from a CentOS CPanel to a other CentOS CPanel We encountered some irregularities with accents and single quote.
For some reason, some characters are displaying as it should and some are not :
wrong encoding on different sentences
I've tried to change DB_CHARSET to utf8 and I've also tried to change table collation without success.
Website was running great on former server. Everything is wrong since we've changed it.
One of the users has issues connecting to the site as his user group switch every now and then. I don't know if it could be related ?
Any help would be very appreciated.
Try this to Fix Character Problem in WordPress:
As you know that latest Wordpress defined DB_CHARSET and DB_COLLATE values in wp-config.php. Which is actually the main reason behind this issue. To fix this issue just comment those two lines in wp-config.php file.
Open wp-config.php file and locate below lines
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);
Comment them out and Save that file. After commenting it should look like
//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');
Now upload the updated ‘wp-config.php’ file to your WebHost (overwriting the old one).
This character encoding problem can happen after a database upgrade too so it doesn’t hurt to keep this trick in your mind just in case.
You may experience an error when importing a WordPress .sql database from your old hosting to new.
So, Try again Export a .sql the database file manually via phpMyAdmin on your old host, then import the .sql to your new database. Try bellow steps;
Open phpMyAdmin & select your database
Click the "Export" tab for the database
Click the the "Custom" radio button - In the section titled "Format-specific options:", change the option for the "Database system or older MySQL server to maximize output compatibility with" from 'NONE' to 'MYSQL40'.
Scroll to the bottom and click "GO".
Now you should be able to import your .sql into phpMyAdmin in your control panel.
FYI, I've found the issue. It was server related.
I've checked the list of PHP extensions that were installed on my server and some were missing...
I don't have the exact list as there was a lot of them missing.
So, for those who have same issues, check your PHP version and extensions.

How can I access hidden system files with R?

I am Mac User. Whenever I want to access Mail folder located in the /Users/user_name/Library/Mail folder; RStudio just ignores it and doesn't show any files.
setwd("/Users/user_name/Library/Mail")`
list.dirs("/Users/user_name/Library/Mail")
> character(0)
list.files("/Users/user_name/Library/Mail")
> character(0)
I understand that because of access to these files requires admin authorization, the R cannot access them. Is there a way to grant admin access to R to access hidden system files?
This question is cross-posted on RStudio Community forum two days ago. Unfortunately, I couldn't get a reply. That's why I asked here again.
Edit: Both of list.files() and list.dirs() return nothing.
Add both the R executable and RStudio executable (drag their icons) to the Full Disk Access element under the Privacy tab of System Preferences => Security & Privacy:
NOTE: I also have R and Rscript in there but the pane is too small to show them.
Also NOTE that I do see
nw_path_close_fd Failed to close guarded necp fd 22 [9: Bad file descriptor]
in the Console.app on these attempts and my call to list.dirs() appears to hang but it's just taking a while b/c I have a ton of folders/files under there (thanks, gmail).
I'd try it incrementally with recursive=FALSE in list.dirs() until you've verified everything is working.
This post has some links that provide background on this new sandboxed filesystem behaviour.

How to prevent WebStorm temp files constantly launch Meteor rebuilt

Each time I write something into WebStorm IDE Meteor rebuilds. Even if I don't save the files. My computer becomes noisy and hot quickly.
I am looking for a way to prevent Meteor to watch WebStorm temp files.
Does this happen when debugging your code? If yes, this must be a Live Edit issue. Try disabling Live Edit plugin - does it help?
Look at the synchronization section of the system settings page from their documentation
Here's what it says:
Synchronization
Synchronize files on frame or editor tab activation
If this check box
is selected, all the files that were changed externally are reloaded
from disk when you switch to WebStorm from a different application, or
when you you switch to their editor tab.
Save files on frame deactivation
If this check box is selected, all
modified files are auto saved when you switch from WebStorm to a
different application. Note that you cannot disable autosave
completely by turning off this and the following option. See Saving
and Reverting Changes.
Save files automatically if application is idle for N seconds
If this
check box is selected, all modified files are auto saved at regular
time internals. See also, Saving and Reverting Changes.
Use "safe write" (save changes to a temporary file first)
If this
check box is selected, a changed file is first saved in a temporary
file. If the save operation succeeds, the file being saved is replaced
with the saved file. (Technically, the original file is deleted and
the temporary file is renamed.) Also, the ownership of such file
changes. If this check box is not selected, the ownership of a file
does not change, but all the advantages of safe write will be lost.
Try unchecking those checkboxes and see if that prevents some saves.
I had a similar problem in that WebStorm was constantly saving edits to Jade files, even after typing just one character, triggering a gulp watcher. Disabling the Live Edit plugin and unchecking these boxes worked for me. Since disabling Live Edit didn't work for you, maybe unchecking one or more of these boxes will fix it.
Check this meteor specific webstorm help article. There is detailed description on how to configure live edit and code updating and how that would work together with meteor.

Blackberry Playbook App Debug Installation Error

I am trying to install a Blackberry Webworks App from my MAC onto a playbook using a usb cable and terminal line commands blackberry-deploy -installApp...
I am getting an error referring to an author mismatch between application and debug token
result::failure 881 application author does not match debug token author
has anyone had the same issue?
thanks
Paul
Try to set the following properties in your bar-descriptor.xml file
<!-- Name of author which is used for signing.
Must match the developer name of your development certificate -->
<author>**</author>
<!-- Unique author ID assigned by signing authority. Required if using debug tokens -->
<authorId>**</authorId>
"I had similar issue. Check that in blackbery-tablet.xml and fields are correct.
To get the right values for those fields just rename your packed .bar file to .zip, then unarchieve it. There will be manifest.mf file in META-INF folder. Open it with notepad. Grab and values from there and rebuild your app.
If that does not help, then rebuild debug token and make sure you install it on the device. Debug token needs to have correct device pin.
Please click the Thumbs Up icon if this comment has helped you! If your issue is resolved, please click the solution button on the resolution!" - source : http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Failure-881-Application-Author-does-not-match-debug-token-author/m-p/2055935#M32567
I had similar issue. and it was not an "author" problem : I was trying to deploy in debug mode and the debugToken was just not installed on the device.
The debugToken must be on the device so that the deploy can work. You can upload the debugToken with :
blackberry-deploy -installDebugToken debugtoken.bar -device 169.254.0.1 -password
hope this helps :)
Open the bar file with WinRar BUT DO NOT EXTRACT. Doing so will corrupt the META file. Within the WinRar Application locate the META.INF file and double click to open. (if the file type is not set to open with Notepad automatically choose it as the preferred application to do so.)
In the open Notepad with the META info, change the author name and author ID to that of your existing debugtoken. (This can be accessed from the debugtoken via the same process to locate the desired application's META.INF).
Close Notepad and choose to save upon exit. WinRar SHOULD ask if you would like to save it to the archive. Simply choose yes, then exit and attempt the installation again with the newly edited application bar file.
I observed that using this method, there is no change in the size of the originally packed file and supposedly no damage to its original contents.
Open with a text editor the file blackberry-tablet.xml, the file is inside your <BlackBerry WebWorks SDK Tablet install folder>\bbwp\AirAppTemplates\src\.
You should see a section with something like:
<publisher>Sample Inc.</publisher>
<category>core.internet</category>
after this section you have to add
<author>*replace with your author name info*</author>
<authorId>*replace with your author id info*</authorId>
You'll have to get your author and your author id info from the debug token that you uploaded on your PlayBook. You should have your debug token on your computer, rename .bar to .zip and extract. With a text editor look in the META-INF folder at the MANIFEST.MF file for values for Package-Author: and Package-Author-Id: folowed by the actual string values.
Hope this helps.

Resources