Skip to content

Instantly share code, notes, and snippets.

@nqbao
Created February 2, 2017 05:16
Show Gist options
  • Save nqbao/b3ae628ad52b3321eae5ac734020f0f8 to your computer and use it in GitHub Desktop.
Save nqbao/b3ae628ad52b3321eae5ac734020f0f8 to your computer and use it in GitHub Desktop.
OpenVPN auth-user-pass-verify example script
#!/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