Page MenuHomeVyOS Platform

openconnect: KeyError: 'local_users'
Closed, ResolvedPublicBUG

Description

To reproduce:

set vpn openconnect authentication mode local
commit
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/vpn_openconnect.py", line 147, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/vpn_openconnect.py", line 64, in verify
    if not ocserv["authentication"]["local_users"] or not ocserv["authentication"]["local_users"]["username"]:
KeyError: 'local_users'

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202208151448
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.2
1.3.2

Event Timeline

c-po triaged this task as Normal priority.
c-po created this task.
c-po edited projects, added VyOS 1.3 Equuleus (1.3.3); removed VyOS 1.3 Equuleus.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.
c-po changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.2) board.