Skip to content

Default config #632

@stary123419

Description

@stary123419

Current Behavior

When installing via APT, Ubuntu loads a default config file containing a ccd block. Apparently, it should be replaced by client-config:

Expected Behavior

client-config:
enabled: true
path: "/etc/openvpn-auth-oauth2/client-config"

Steps To Reproduce

/etc/openvpn-auth-oauth2/config.yaml
openvpn:
#  addr: "unix:///run/openvpn/server.sock"  # This is overridden by /etc/sysconfig/openvpn-auth-oauth2
# auth-token-user: true
#  auth-pending-timeout: 2m
#  bypass:
#    common-names:
#      - "test"
#      - "test2"
#      - "wildcard.*"
  ccd:
    enabled: false
    path: "/etc/openvpn-auth-oauth2/client-config/"
    token-claim: ""
#  common-name:
#    environment-variable-name: common_name
#    mode: plain
#  password: ""
#  override-username: false # (requires OpenVPN 2.7 server)
#  reauthentication: true

Environment

  • openvpn-auth-oauth2 Version: 1.26.0
  • OpenVPN Server Version:
  • Server OS: Ubuntu 24.04
  • OpenVPN Client (flavor, OS):
  • OIDC Provider:

openvpn-auth-oauth2 logs

Oct 11 14:25:52 openvpn-oauth systemd[1]: Started openvpn-auth-oauth2.service - OpenVPN authenticator.
Oct 11 14:25:52 openvpn-oauth openvpn-auth-oauth2[3200]: configuration error: error decoding config file /etc/openvpn-auth-oauth2/config.yaml: yaml: unmarshal errors:
Oct 11 14:25:52 openvpn-oauth openvpn-auth-oauth2[3200]:   line 70: field ccd not found in type config.OpenVPN

openvpn server logs

Anything else?

No response

Preflight Checklist

  • I could not find a solution in the documentation,
    the FAQ, the existing issues or discussions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions