-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Connection with GUI works, but not with CLI using the same credentials #443
Comments
@kzawad1-ces you should run the cli as root. |
@yuezk I see what is happening now. I tried the following commands:
I thought that the reason why it was prompting for a second login was because the credentials were not input correctly or it had a bug in the software since it does not do it in the GUI, so it is not submitted correctly. However, this is not the case and if I inspect the output carefully it is logging into two separate entities: PORTAL and GATEWAY. This is why it prompts twice.
Now, I am trying to figure out how to make this usable from the point of view that this software ties up the Terminal. It is not organized in a background process and separate commands to configure and start stop the process. So to make it more usable. @yuezk can you tell how to:
|
To resolve the login two times issue, try pass the '--as-gateway' option to see if it works for you. |
@yuezk , I don't think this is available in my version because I am getting the following error:
The help information is the following and it does not have the option to pass in:
The version information is the following:
Do I need to get a different version of the software? |
it is released in https://github.com/yuezk/GlobalProtect-openconnect/releases/tag/v2.1.3, try to upgrade the client |
Ok, so that new version has that "as-gateway" command input. Now, I only get one prompt To upgrade, did the following:
Then connecting:
Now, how do I save the credentials, just like in the GUI app? |
Try this #381 (comment), which is available in 2.3.4. |
@yuezk , that example does work. Now the struggle is having this run like a process. Linux has something called "network maanger" and "nmcli" command. The nmcli is used to control the process in the background. Network manager allows me to create different connection and then tell the service to make a connection. I was hoping this would be similar. However, this software is not designed/architected in the same way. I was trying to see if I can do this with "&" and have that session run in the background or if I need to setup a systemd process for this. Do you have a recommend way of running this "gpclient" on a Ubunutu server with no UI. Then running gpclient in the background? |
I prefer the systemd service if it works. |
Describe the bug
Connection using GlobalProtect-openconnect GUI works (with Linux client), but fails with CLI. The error indicates that it "Invalid user name", but I have used that same username and password as the GUI. Even clear the credentials within the GUI and it worked copying and pasting same credentials from text file.
Expected behavior
Should be able to connect using the CLI just as easily as the GUI.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
~/.local/share/gpclient/gpclient.log
gpclient
command.(NOTE: remove the personal data from log)
Environment:
Ubuntu 24.04.1 LTS
GNOME
ps aux | grep 'gnome-keyring\|kwalletd5' | grep -v grep
: [Required for secure store error]kris 4755 0.0 0.1 316632 9984 ? SLsl 10:05 0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring
No
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: