Page MenuHomeVyOS Platform

Trying to commit an OpenConnect configuration without any local users results in an exception
Closed, ResolvedPublicBUG


If you set OpenConnect authentication mode to local but don't create any users, the script crashes.

# set vpn openconnect authentication mode local password
foo_admin@vyos# commit
[ vpn openconnect ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
- Make sure you are running the latest version of VyOS available at:
- Consult the community forum to see how to handle this issue:
- Join us on Slack where our users exchange help and advice:

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report time:      2024-01-10 10:48:47
Image version:    VyOS 1.5-rolling-202401080717
Release train:    current

Built by:         [email protected]
Built on:         Mon 08 Jan 2024 09:07 UTC
Build UUID:       6254ca59-32a0-4f18-935f-7fee2267e11c
Build commit ID:  92195009af863c

Architecture:     x86_64
Boot via:         livecd
System type:      KVM guest

Hardware vendor:  innotek GmbH
Hardware model:   VirtualBox
Hardware S/N:     0
Hardware UUID:    33d93ca6-9d47-de4a-bb49-85ed5101970c

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 287, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 94, in verify
    if not ocserv["authentication"]["local_users"]:
KeyError: 'local_users'

[[vpn openconnect]] failed
Commit failed


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)