Created
February 2, 2017 05:16
-
-
Save nqbao/b3ae628ad52b3321eae5ac734020f0f8 to your computer and use it in GitHub Desktop.
OpenVPN auth-user-pass-verify example script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readarray -t lines < $1 | |
username=${lines[0]} | |
password=${lines[1]} | |
if [[ "$password" == "bao" ]]; then | |
echo "ok" | |
exit 0 | |
fi | |
echo "not ok" | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment