Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18.04. App always ask password even password was filled. #101

Closed
linelect opened this issue Dec 15, 2019 · 10 comments
Closed

Ubuntu 18.04. App always ask password even password was filled. #101

linelect opened this issue Dec 15, 2019 · 10 comments

Comments

@linelect
Copy link

linelect commented Dec 15, 2019

After ubuntu 18.04 update (not sure that this is true reason but earlier I did not fill password every connect) openFortiGUI 0.7 version always ask password in new window. I've updated openFortiGUI to 0.8.1 version but it did not help.

After edit and adding password using gui I can see in /home/username/.openfortigui/vpnprofiles/nameOfConnection.conf
that password is in the config file:

[vpn]
password="encoded_password"

But when I try to connect app ask for password:
image

log:

г��д. 15 20:00:51 openfortiGUI::Debug: "start-vpn process::" "connection_name"
г��д. 15 20:00:51 openfortiGUI::Debug: "start-vpn process::config_file::" "/home/username/.openfortigui/main.conf"
г��д. 15 20:00:51 openfortiGUI::Debug: vpnProcess::startVPN::slot
г��д. 15 20:00:51 openfortiGUI::Debug: tiConfVpnProfile::readVpnProfiles() -> vpnprofile found: "/home/username/.openfortigui/vpnprofiles/connection_name.conf"
г��д. 15 20:00:51 openfortiGUI::Debug: passstore requested from vpn
г��д. 15 20:00:52 openfortiGUI::Debug: server sent something::
г��д. 15 20:00:52 openfortiGUI::Debug: server api command2:: 8 ::name:: "connection_name"
г��д. 15 20:00:54 openfortiGUI::Debug: server sent something::
г��д. 15 20:00:54 openfortiGUI::Debug: server api command2:: 4 ::name:: "connection_name"
г��д. 15 20:00:54 openfortiGUI::Debug: vpnWorker::process::slot
г��д. 15 20:00:54 openfortiGUI::Debug: shutting down vpn process:: "connection_name"

How I can fix it?

@boospy
Copy link
Collaborator

boospy commented Dec 22, 2019

If you create the same connection again, did this solve the problem?

@linelect
Copy link
Author

If you create the same connection again, did this solve the problem?

It did not help me.

@theinvisible
Copy link
Owner

Hi,
the string "passstore requested from vpn" says you are using the password manager which can be enabled/disabled in main preferences. Try disable it and try again.

@linelect
Copy link
Author

linelect commented Jan 17, 2020

Hi,
the string "passstore requested from vpn" says you are using the password manager which can be enabled/disabled in main preferences. Try disable it and try again.

It was disabled, tried enable and get error:
image

@theinvisible
Copy link
Owner

Seems like your password manager is broken from your update, please try to fix this first. Also there seems a bug that you cannot disable the password manager when its broken, will look into this. As a workaround you can manually edit your config file in ~/.openfortigui/main.conf and set "use_system_password_store" to false

@linelect
Copy link
Author

Seems like your password manager is broken from your update, please try to fix this first. Also there seems a bug that you cannot disable the password manager when its broken, will look into this. As a workaround you can manually edit your config file in ~/.openfortigui/main.conf and set "use_system_password_store" to false

I've fixed problem with password manager but it did not help me.
use_system_password_store is false
Tried re-create connection, no results.

Flow:

  1. Edit connection, set password and press save.
  2. Go to /home/username/.openfortigui/vpnprofiles/nameOfConnection.conf and see password is filled.
  3. Try to connect. Then app shows window 'Please enter you login details'.
  4. Open connection for editing and see that passwrod field is empty whereas in config file still present.

@linelect
Copy link
Author

linelect commented Jan 22, 2020

New portion of logs.
What i did: Just tried edit connection, set password and press save. Then tried connect. App asked password in new window. I closed login window.

connectionName.log:

140581221357568:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:537:
INFO: Start tunnel.
INFO: Connected to gateway.
ERROR: Could not authenticate to gateway (HTTP status code).
INFO: Closed connection to gateway.
INFO: Logged out.

openfortigui.log:

���. 22 22:17:29 openfortiGUI::Debug: "start-vpn process::" "epi"
���. 22 22:17:29 openfortiGUI::Debug: "start-vpn process::config_file::"
"/home/linelect/.openfortigui/main.conf"
���. 22 22:17:29 openfortiGUI::Debug: vpnProcess::startVPN::slot
���. 22 22:17:29 openfortiGUI::Debug: tiConfVpnProfile::readVpnProfiles() -> vpnprofile found: "/home/linelect/.openfortigui/vpnprofiles/epi.conf"
���. 22 22:17:33 openfortiGUI::Debug: server sent something::
���. 22 22:17:33 openfortiGUI::Debug: server api command2:: 4 ::name:: "epi"
���. 22 22:17:33 openfortiGUI::Debug: vpnWorker::process::slot
���. 22 22:17:33 openfortiGUI::Debug: shutting down vpn process:: "epi"

@theinvisible
Copy link
Owner

Hi,
seems something wrong with your encryption key or the encrypted data. The problem then is the program can not decode the password and so asks for it.

The best solution would be to start with a fresh profile. To do so close OpenFortiGUI, move your ~/.openfortigui folder somewhere else and start the program again.

@linelect
Copy link
Author

Hi,
seems something wrong with your encryption key or the encrypted data. The problem then is the program can not decode the password and so asks for it.

The best solution would be to start with a fresh profile. To do so close OpenFortiGUI, move your ~/.openfortigui folder somewhere else and start the program again.

It works! Thank you very much!

@afperezm
Copy link

afperezm commented Jun 1, 2021

Hi,
seems something wrong with your encryption key or the encrypted data. The problem then is the program can not decode the password and so asks for it.

The best solution would be to start with a fresh profile. To do so close OpenFortiGUI, move your ~/.openfortigui folder somewhere else and start the program again.

Using OpenFortiGUI 0.9.0 this solution worked for me, I moved the ~/.openfortigui folder somewhere else and re-started the program, then it asked me a master key to store passwords and I recreated the connection and it worked perfectly.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants