summaryrefslogtreecommitdiff
path: root/app/openvpn/sample/sample-scripts/ucn.pl
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-06-05 00:02:09 +0200
committerParménides GV <parmegv@sdf.org>2015-06-05 00:02:09 +0200
commit8d39fbdb4980c95268249f21f3c6b8e36b22cf90 (patch)
tree5e54d8cc7ea06fdcf1aa88fd7fd54ec569a8b7a3 /app/openvpn/sample/sample-scripts/ucn.pl
parent8dc4f58d96892fbfd83094fb85b1d17656035290 (diff)
parent3e849c7cbe847d9260dee7a29b241c8aef185f6d (diff)
Merge branch 'feature/Update-ics-openvpn-from-GitHub-#7087' into develop
Diffstat (limited to 'app/openvpn/sample/sample-scripts/ucn.pl')
-rwxr-xr-xapp/openvpn/sample/sample-scripts/ucn.pl11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/openvpn/sample/sample-scripts/ucn.pl b/app/openvpn/sample/sample-scripts/ucn.pl
deleted file mode 100755
index 6d708f82..00000000
--- a/app/openvpn/sample/sample-scripts/ucn.pl
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/perl -t
-
-# OpenVPN --auth-user-pass-verify script.
-# Only authenticate if username equals common_name.
-# In OpenVPN config file:
-# auth-user-pass-verify ./ucn.pl via-env
-
-$username = $ENV{'username'};
-$common_name = $ENV{'common_name'};
-
-exit !(length($username) > 0 && length($common_name) > 0 && $username eq $common_name);