Two small fixes for auth via tokens
Get series with b4
b4 am [email protected]...Versions newest first · linked by author and title
- v2 Latest3 patches 10 repliesIn review
- v12 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Increase TLS_CHANNEL_BUF_SIZE from 2048 to 8192src/ | +1 | 9 replies | |
| 2/3 | Unconditionally set USER_PASS_LEN to 4096src/ | +0 | 0 replies | |
| 3/3 | Ensure the management channel can take passwords up to the max lengthsrc/ src/ | +5 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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