From bb3d1add3ca7d0b402e434aadd6644a92cbe62ec Mon Sep 17 00:00:00 2001 From: Fabio Napoleoni Date: Sat, 6 Feb 2016 21:40:11 +0100 Subject: [PATCH] Export user pass option in client when OTP is enabled --- bin/ovpn_getclient | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index 1c029c9..fc9345b 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -85,6 +85,10 @@ $OVPN_ADDITIONAL_CLIENT_CONFIG echo "auth $OVPN_AUTH" fi + if [ -n "$OVPN_OTP_AUTH" ]; then + echo "auth-user-pass" + fi + if [ -n "$OVPN_COMP_LZO" ]; then echo "comp-lzo" fi