]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Implement auth-token-user
authorArne Schwabe <arne@rfc2549.org>
Thu, 20 May 2021 15:11:41 +0000 (17:11 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 15 Jun 2021 13:53:20 +0000 (15:53 +0200)
commitb398aa37ca309948b481401adf0074ea5589eb2d
treec7268d60439de1ad51941f574e7413461982bded
parente007cc260edb0f24ad8f8468fbe7daf9efde85dc
Implement auth-token-user

When not using username and password (i.e. auth-user-pass) it can still
be desirable to provide the client with an auth-token, e.g. for allowing
a session to continue after a reconnect without requiring 2FA again.

However, without --auth-user-pass openvpn does not have a username and will
ignore any pushed auth-token command.

This patch adds support for auth-token-user to set the username that should
be used for auth-token

The spec of using auth-token-user base64-encoded-user are the ones that
OpenVPN3 already implements.

Patch V2: Improve style, fix comments and commit message

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210520151148.2565578-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22417.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/client-options.rst
src/openvpn/misc.c
src/openvpn/misc.h
src/openvpn/options.c
src/openvpn/ssl.c
src/openvpn/ssl.h