Skip to content

fix(openconnect): let openconnect use its config #165

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

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

david-jointech
Copy link

  • Openconnect will now use the custom config provided to Vopono.
  • Openconnect is now able to authenticate with the provided password
  • It's not possible to provide a username via Vopono to Openconnect. This is due to there not being a simple optional way to provide it and the username clashing with the one provided in the openconnect-config.
  • Openconnect will use the optionally provided server, or the server from its custom config. If both are provided openconnect will fail.

An example minimal openconnect.conf which can be provided as a custom config:
with server:

server = vpn.example.com
user = user

without server:

user = user

Generally you can add all command-line-arguments from openconnect. E.g. my tested VPN-config would look like this:

server = vpn.example.com
user = user
authgroup = group
no-dtls

from this oppenconnect-command: openconnect --user user --authgroup group --no-dtls --passwd-on-stdin vpn.example.com. Note, that passwd-onstdin is always added in vopono and shouldn't be set in the config.

Fixes #39

- Openconnect will now use the custom config provided to Vopono.
- Openconnect is now able to authenticate with the provided
  password
- It's not possible to provide a username via Vopono to
  Openconnect
- Openconnect will use the optionally provided server, or the
  server from its custom config

Fixes jamesmcm#39
@jamesmcm
Copy link
Owner

Thanks this looks great, I can't test it directly without having an OpenConnect VPN anymore, but it looks good.

@jamesmcm jamesmcm merged commit 7e240dd into jamesmcm:master Jun 28, 2022
@david-jointech david-jointech deleted the fix-openconnect-39 branch June 28, 2022 10:04
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

Successfully merging this pull request may close these issues.

Add Cisco OpenConnect support
2 participants