]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Improve documentation of --username-as-common-name
authorSelva Nair <selva.nair@gmail.com>
Sun, 27 Sep 2020 18:46:00 +0000 (14:46 -0400)
committerGert Doering <gert@greenie.muc.de>
Tue, 29 Sep 2020 05:58:59 +0000 (07:58 +0200)
Trac #1079

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1601232360-14096-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21098.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/server-options.rst

index c0b22a534a56c55e85df85d89ba3cdcfd2aed201..5a689452c9fb2c11383abbd630e16cf107b3ed01 100644 (file)
@@ -668,9 +668,15 @@ fast hardware. SSL/TLS authentication must be used in this mode.
   ``--max-routes-per-client``
 
 --username-as-common-name
-  For ``--auth-user-pass-verify`` authentication, use the authenticated
-  username as the common name, rather than the common name from the client
-  cert.
+  Use the authenticated username as the common-name, rather than the
+  common-name from the client certificate. Requires that some form of
+  ``--auth-user-pass`` verification is in effect. As the replacement happens
+  after ``--auth-user-pass`` verification, the verification script or
+  plugin will still receive the common-name from the certificate.
+
+  The common_name environment variable passed to scripts and plugins invoked
+  after authentication (e.g, client-connect script) and file names parsed in
+  client-config directory will match the username.
 
 --verify-client-cert mode
   Specify whether the client is required to supply a valid certificate.