GUI Setting openconnect VPN doesn't save credentials correctly
Compositor
Niri
Distribution
Arch Linux
If Other, please specify
No response
Select your Installation Method
Dux Installer
Was this your original Installation method?
Yes
If no, specify
No response
dms doctor -vC
Click to expand
## DMS Doctor ReportSystem
- [ok] Operating System: Arch Linux
- ID: arch, Version: rolling, Arch: amd64
- [ok] Architecture: amd64
- [ok] Display Server: Wayland
- WAYLAND_DISPLAY=wayland-1
Versions
- [ok] DMS CLI: dms v2.1.0
- /usr/bin/dms
- [ok] Quickshell: Quickshell 0.3.2 (revision , distributed by Arch Linux)
- /usr/bin/qs
- [ok] DMS Shell: v2.1.0
- /run/user/1000/dms-shell/9483c24f0a364ed0
Installation
- [ok] DMS Configuration: Found
- /run/user/1000/dms-shell/9483c24f0a364ed0
- [ok] shell.qml: Present
- /run/user/1000/dms-shell/9483c24f0a364ed0/shell.qml
- [info] Install Type: Unknown
- /run/user/1000/dms-shell/9483c24f0a364ed0
Compositor
- [ok] Hyprland: 0.57.1
- /usr/bin/hyprland
- [ok] niri: 26.04
- /usr/bin/niri
- [warn] binds-next include: config.kdl does not include dms/binds-next.kdl
- Add include optional=true "dms/binds-next.kdl" above line 275, or run 'dms setup', to get the DMS binds that depend on the niri version.
- [info] Active: niri
- [ok] Background Blur: Supported
- Compositor supports ext-background-effect-v1
Quickshell Features
- [ok] Polkit: Available
- Authentication prompts
- [ok] IdleMonitor: Available
- Idle detection
- [ok] IdleInhibitor: Available
- Prevent idle/sleep
- [ok] ShortcutInhibitor: Available
- Allow shortcut management (niri, Aqueous)
- [ok] BackgroundBlur: Available
- Background blur API support in Quickshell
Optional Features
- [ok] accountsservice: Available
- User accounts
- [ok] power-profiles-daemon: Available
- Power profile management
- [ok] logind: Available
- Session management
- [ok] cups-pk-helper: Available
- Printer management
- [info] I2C/DDC: No monitors detected
- External monitor brightness control
- [ok] qt6-imageformats: Installed (5 formats)
- Formats: GIF, WebP, TIFF, JP2, ICNS (/usr/lib/qt6/plugins/imageformats:/usr/lib/qt/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
- [ok] kimageformats: Installed (4 formats)
- Formats: AVIF, HEIF, JXL, EXR (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
- [ok] Terminal: ghostty, kitty, foot
- [ok] Network: NetworkManager
- NetworkManager present. Using NM API.
- [ok] matugen: Installed
- Dynamic theming
- [ok] cava: Installed
- Audio visualizer
- [info] khal: Not installed
- Calendar events
- [ok] dux-search: Installed
- File search
- [ok] dux-calendar: Installed
- Calendar app
- [info] dux-files: Not installed
- File manager
- [info] fprintd: Not installed
- Fingerprint auth
- [ok] adw-gtk3: Installed
- GTK3 dynamic theming (user copy)
Config Files
- [ok] settings.json: Present
- /home/cyperion/.config/dms/settings.json
- [info] clsettings.json: Not yet created
- /home/cyperion/.config/dms/clsettings.json
- [ok] plugin_settings.json: Present
- /home/cyperion/.config/dms/plugin_settings.json
- [ok] session.json: Present
- /home/cyperion/.local/state/dms/session.json
- [ok] dms-colors.json: Present
- /home/cyperion/.cache/dms/dms-colors.json
Services
- [ok] dms.service: enabled, active
- Wanted by niri.service
- [ok] greetd: enabled
- [warn] Greeter package: Retired package installed: greetd-dms-greeter-bin, greetd-dms-greeter-bin
- Hyprland 0.57 only reads Lua; switch to the dux-greeter package and rerun
dms-greeter install. Install from AUR with 'paru -S dux-greeter-bin' or 'yay -S dux-greeter-bin'
- Hyprland 0.57 only reads Lua; switch to the dux-greeter package and rerun
- [ok] xdg-desktop-portal: Settings portal reachable
Environment
- [info] QT_QPA_PLATFORMTHEME: Not set
- [info] QT_QPA_PLATFORMTHEME_QT6: Not set
- [info] QS_ICON_THEME: Not set
- [info] XDG_MENU_PREFIX: Not set
Fonts
- [ok] Normal Font: Google Sans Flex
- /run/user/1000/dms-shell/9483c24f0a364ed0/DCommon/assets/fonts/google-sans-flex/GoogleSansFlex.ttf
- [ok] Monospace Font: Fira Code
- /run/user/1000/dms-shell/9483c24f0a364ed0/DCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf
- [ok] Display Font: DM Serif Display
- /run/user/1000/dms-shell/9483c24f0a364ed0/DCommon/assets/fonts/dm-serif-display/DMSerifDisplay-Regular.ttf
Summary: 0 error(s), 2 warning(s), 39 ok
Description
I am unable to connect to my institutions CISCO/openconnect VPN. Several things might be happening at once:
(1) The GUI Setting for the connections looks bugged (there is no box around the password field).
(2) The GUI Setting for the connections does not save my password when I click save credentials. It flashes credentials saved and then clears the password field instead.
(3) The VPN is actually currently down, but this shouldn't have anything to do with trying to set up the credentials.
(4) When I try to connect anyway, it prompts me to put in my password manually, but then immediately fails.
Either The VPN-Connection >>REDACTED<< could not be established, because no valid VPN-Secrets are available (Roughly translated from German) pops up in the notifications center or just VPN connection failed flashes without additional information.
Expected Behavior
- Create the openconnect VPN connection via
nm-connections-editorwith the correct Gateway - I store my credentials using the Dux Settings VPN page
- I try to connect using Dux Panel Widget/Dux Settings/Dux Dash
- After some time I get an error notification stating that the Server is unreachable
Steps to Reproduce
- Create a new valid CISCO/openconnet VPN connection using
nm-connections-editor - Navigate to Settings -> Network -> VPN -> [YOUR VPN CONNECTION], then click the arrow to expand
- Notice (1) the missing box around the password field
- Put in your credentials, then click
save credentials - (2)
credentials savedwill flash on the screen, but the password field will be cleared again - Try connecting manually minimizing the Connection, then clicking on it and put in your password into the dialog window.
- Observe the immediate crash due to missing VPN secrets (4).
Error Messages/Logs
Just the notification described above (4).
Also connecting via nmtui works (it times out trying to connect instead of immediatly shutting down).
Screenshots/Recordings
Already partly fixed by https://github.com/duxlabs-dev/dux-shell/pull/3727. Dont know if/when it will land though, I will see if I implement the rest there or take it out of the feature PR in a dedicated bug fix
Same fallback also hits org.freedesktop.NetworkManager.gpclient (the NetworkManager plugin
from yuezk/GlobalProtect-openconnect),
so this may be about the generic plugin-VPN path rather than openconnect specifically.
Settings → Network → VPN renders a Username/Password form for a connection that has no
password field, and saving credentials can never help — the plugin validates secrets against
a fixed list (cookie, gateway, gwcert, resolve), so a stored password is ignored:
[SecretAgent] vpnSvc=org.freedesktop.NetworkManager.gpclient, fields=[], vpnPasswordFlags=65535
[SecretAgent] VPN with empty hints but we're connecting - inferred fields: [password]
vpn[...,"<vpn-name>"]: final secrets request failed to provide sufficient secrets
vpnPasswordFlags=65535 is 0xFFFF, NetworkManager's default when a profile does not declare
which secrets it needs, so DMS cannot infer the real field from the profile and falls back to
guessing password. For SAML/SSO VPNs there is no username/password that would ever validate;
the portal hands back an auth cookie.
@Conava re: whether the rest lands in #3727 or a separate fix — from reading that PR, it looks like it covers the UI half (the control-centre credentials panel becomes the profile editor, and profiles with externally-managed secrets survive an edit). The activation path still seems to be the remaining piece: connecting from DMS fails on the unknown service type regardless of what is stored in the profile.
If a follow-up does happen, #3395's findOpenConnectAuthHelper() looks like the right shape,
with one generalisation: it hardcodes nm-openconnect-service.name, but auth-dialog under
[GNOME] is a generic key in the .name format rather than an openconnect-specific one —
gpclient declares it too:
# /usr/lib/NetworkManager/VPN/nm-gpclient-service.name
[GNOME]
auth-dialog=/usr/libexec/nm-gpclient-auth-dialog
libnm exposes it as nm_vpn_plugin_info_get_auth_dialog(), and nm-applet links that symbol
plus nm_secret_agent_old_get_secrets, which is why connecting through the applet works for
these profiles today. Selecting on the profile's vpn.service-type instead of a hardcoded
filename would cover openconnect, gpclient and any other plugin shipping a dialog, with no
per-vendor backend.
Worth keeping the existing path-trust check when generalising, and keying the lookup on the
service type rather than taking the first .name that happens to declare a dialog — that code
ends up executing a helper with the user's secrets, so resolving the wrong one is worse than
resolving none.
Also worth noting: DMS already has runGlobalProtectSAMLAuth, and it does return a cookie,
which is the correct key. But it is gated on protocol == "gp" parsed out of vpnc-style
command-line fields and shells out to gp-saml-gui, so it does not apply to a gpclient profile
— those have no protocol key at all. Hence the generic dialog path seeming like a better fit
than a second vendor-specific backend.
Happy to test a branch — reproducible gpclient + SAML setup on Fedora 45 / niri, and I can check
both the nmcli and DMS-initiated activation paths.
Yes exactly, I decided to put the UI fix in my bigger PR, the credentials fix will land as its own PR in the next days.
This is actually not fully done yet, still missing the backend changes. I have the PR mostly ready, currently rebasing on the merged networkmanager changes.