summaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorEmilien Mantel <emilien.mantel@businessdecision.com>2010-06-17 21:38:59 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 21:26:59 +0200
commit2e8337de248ef0b5b48cbb2964da0d5c3f28b15b (patch)
tree7f21b614c1c950cd0a8d9b521bf0d51205289027 /options.h
parent8bebb729a53ae423d0867648f0c12868a96cafde (diff)
downloadopenvpn-2e8337de248ef0b5b48cbb2964da0d5c3f28b15b.tar.gz
openvpn-2e8337de248ef0b5b48cbb2964da0d5c3f28b15b.tar.xz
openvpn-2e8337de248ef0b5b48cbb2964da0d5c3f28b15b.zip
Choose a different field in X509 to be username
For my company, we use a PKI (linked to a LDAP) with OpenVPN. We can't use "CN" to be username (few people can have the same "CN"). In our case, we only use the UID. With my patch, you can choose another field to be username with a new option called --x509-username-field, the default value is "CN". Signed-off-by: Emilien Mantel <emilien.mantel@businessdecision.com> Acked-by: David Sommerseth <dazo@users.sourceforge.net> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'options.h')
-rw-r--r--options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.h b/options.h
index 52763f3..cb29d79 100644
--- a/options.h
+++ b/options.h
@@ -512,6 +512,9 @@ struct options
within n seconds of handshake initiation. */
int handshake_window;
+ /* Field used to be the username in X509 cert. */
+ char *x509_username_field;
+
/* Old key allowed to live n seconds after new key goes active */
int transition_window;