Unable to configure for 2FA

Blason R blason16 at gmail.com
Sat Dec 23 02:16:17 PST 2023


Hi Team,

I am trying to configure openconnect for 2FA while getting this error
message and not sure why. I used the compile method and compiled the
software accordingly.

× ocserv.service - OpenConnect SSL VPN server
     Loaded: loaded (/etc/systemd/system/ocserv.service; enabled;
vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-12-23 10:14:10
UTC; 3s ago
       Docs: man:ocserv(8)
    Process: 3331 ExecStart=/usr/local/sbin/ocserv --syslog
--foreground --pid-file /run/ocserv.pid --config
/etc/ocserv/ocserv.conf (code=exited, status=1/FAILURE)
   Main PID: 3331 (code=exited, status=1/FAILURE)
        CPU: 19ms

Dec 23 10:14:10 vpn systemd[1]: Started OpenConnect SSL VPN server.
Dec 23 10:14:10 vpn ocserv[3331]: note: skipping 'pid-file' config option
Dec 23 10:14:10 vpn ocserv[3331]: unknown option 'otp'
Dec 23 10:14:10 vpn systemd[1]: ocserv.service: Main process exited,
code=exited, status=1/FAILURE
Dec 23 10:14:10 vpn systemd[1]: ocserv.service: Failed with result 'exit-code'.



auth = "plain[passwd=/etc/ocserv/ocpasswd,otp=/etc/ocserv/]"
tcp-port = 443
udp-port = 443
run-as-user = nobody
run-as-group = daemon



More information about the openconnect-devel mailing list