Skip to content

Two small fixes for auth via tokens

[email protected]... openvpn-devel 2 versions In review

Get series with b4
b4 am [email protected]...

Versions newest first · linked by author and title

  1. v2 Latest3 patches 10 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Increase TLS_CHANNEL_BUF_SIZE from 2048 to 8192src/openvpn/common.h+1 -19 replies
2/3Unconditionally set USER_PASS_LEN to 4096src/openvpn/misc.h+0 -40 replies
3/3Ensure the management channel can take passwords up to the max lengthsrc/openvpn/manage.c src/openvpn/options.h+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Openvpn-devel] [PATCH v2 0/3] Two small fixes for auth via tokens

From: Luca Boccassi <[email protected]...>

When JWT (json web tokens) are used by a server to authenticate the client, the default TLS channel buffer size and password length are too small.
In my local case connecting to an Azure VPN server, the Entra ID token is ~2100 bytes.

With these small changes, it is possible to successfully connect to an Azure VPN endpoint using the OpenVPN 2.7 client, using a dummy username, an Entra token as password and the server-secret from the azvpn XML config that users get as tls-auth key.

v2: also use the USER_PASS_LEN macro in the management channel params.

Luca Boccassi (3):
Increase TLS_CHANNEL_BUF_SIZE from 2048 to 8192 Unconditionally set USER_PASS_LEN to 4096
Ensure the management channel can take passwords up to the max length

 src/openvpn/common.h  | 2 +-
 src/openvpn/manage.c  | 4 ++--
 src/openvpn/misc.h    | 4 ----
 src/openvpn/options.h | 6 +++---
 4 files changed, 6 insertions(+), 10 deletions(-)
Signature · 1 line
2.47.3