[Openvpn-devel] [PATCH] Correct value for --client-disconnect env variable common_name

2021-09-17 Thread stringvest88
From: Richard T Bonhomme A server configured with --client-disconnect and --username-as-common-name will pass the X509-CN not username, after the client has completed a renegotiation, to --client-disconnect. Explicitly set the environment variable common_name to the current value, which will be

[Openvpn-devel] [PATCH] Correct --client-disconnect environment variable common_name

2021-09-16 Thread stringvest88
From: Richard T Bonhomme --client-disconnect is always passed the X509 certificate common_name, which is incorrect when --username-as-common-name is used. Set the environment variable common_name to the correct value, prior to calling --client-disconnect. Resolves https://community.openvpn.net/