Skip to content

Commit

Permalink
Make naptr-eduroam.sh check NAPTR type case insensitively.
Browse files Browse the repository at this point in the history
Fix by Adam Osuchowski.
  • Loading branch information
Linus Nordberg committed Aug 13, 2012
1 parent 972e0b7 commit 8d28730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Radsecproxy is currently being maintained by Linus Nordberg

The following people have contributed to Radsecproxy in one way or
another:
Adam Osuchowski
Andreas Solberg
Arne Schwabe
Faidon Liambotis
Expand Down
4 changes: 2 additions & 2 deletions tools/naptr-eduroam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dig_it_naptr() {
${DIGCMD} +short naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k1 |
while read line; do
set $line ; TYPE=$3 ; HOST=$6
if [ "$TYPE" = "\"s\"" ]; then
if [ "$TYPE" = "\"s\"" -o "$TYPE" = "\"S\"" ]; then
SRV_HOST=${HOST%.}
dig_it_srv
fi
Expand All @@ -50,7 +50,7 @@ host_it_naptr() {
${HOSTCMD} -t naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k5 |
while read line; do
set $line ; TYPE=$7 ; HOST=${10}
if [ "$TYPE" = "\"s\"" ]; then
if [ "$TYPE" = "\"s\"" -o "$TYPE" = "\"S\"" ]; then
SRV_HOST=${HOST%.}
host_it_srv
fi
Expand Down

0 comments on commit 8d28730

Please sign in to comment.