Commit 21662ae9ee1303038bb628382685454be2a31871
1 parent
c8ebadfd
bumped version number (forgot to do that with the last fix)
updated the URL of the script in my GitLAB (moved the repository)
Showing
1 changed file
with
4 additions
and
4 deletions
privacyidea-checkotp
100644 → 100755
@@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
3 | # privacyidea-checkotp - shell implementation of the PrivacyIDEA OTP check for | 3 | # privacyidea-checkotp - shell implementation of the PrivacyIDEA OTP check for |
4 | # integration with FreeRadius on systems without perl | 4 | # integration with FreeRadius on systems without perl |
5 | # | 5 | # |
6 | -# Version 1.0, latest version, documentation and bugtracker available at: | ||
7 | -# https://gitlab.lindenaar.net/scripts/privacyidea-checkotp | 6 | +# Version 1.1, latest version, documentation and bugtracker available at: |
7 | +# https://gitlab.lindenaar.net/privacyidea/checkotp | ||
8 | # | 8 | # |
9 | # Copyright (c) 2015 Frederik Lindenaar | 9 | # Copyright (c) 2015 Frederik Lindenaar |
10 | # | 10 | # |
@@ -51,11 +51,11 @@ otpresult=`/usr/bin/curl -s "$URL" --data-urlencode "user=$LOGIN" --data-urlenco | @@ -51,11 +51,11 @@ otpresult=`/usr/bin/curl -s "$URL" --data-urlencode "user=$LOGIN" --data-urlenco | ||
51 | # Extract the status of the request from the returned JSON | 51 | # Extract the status of the request from the returned JSON |
52 | otpstatus=`echo $otpresult | sed 's/^{.*"result": *{ *"status": *true, *"value": *\(.*\) *},.*}/\1/'` | 52 | otpstatus=`echo $otpresult | sed 's/^{.*"result": *{ *"status": *true, *"value": *\(.*\) *},.*}/\1/'` |
53 | 53 | ||
54 | -if [ "$otpstatus" = "true" ]; then | 54 | +if [ "$otpstatus" = "true" ]; then |
55 | # echo $LOGIN did authenticate $otpresult | 55 | # echo $LOGIN did authenticate $otpresult |
56 | echo Auth-Type=PrivacyIDEA | 56 | echo Auth-Type=PrivacyIDEA |
57 | exit 0 | 57 | exit 0 |
58 | -elif [ "$otpstatus" = "false" ]; then | 58 | +elif [ "$otpstatus" = "false" ]; then |
59 | # echo $LOGIN did not authenticate $otpresult | 59 | # echo $LOGIN did not authenticate $otpresult |
60 | echo Auth-Type=REJECT | 60 | echo Auth-Type=REJECT |
61 | exit 1 | 61 | exit 1 |