summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2012-08-13 10:07:09 +0200
committerLinus Nordberg <linus@nordu.net>2012-08-13 10:07:09 +0200
commit8d287300f510e0559f01a2e7a4dec90674215f25 (patch)
treed32096fc6a45c61551fb453f23d65385d1a3691e
parent972e0b788118c6fd83cefd9bfa0a5a540e241def (diff)
Make naptr-eduroam.sh check NAPTR type case insensitively.
Fix by Adam Osuchowski.
-rw-r--r--AUTHORS1
-rwxr-xr-xtools/naptr-eduroam.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 4a7323f..71cad2a 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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
diff --git a/tools/naptr-eduroam.sh b/tools/naptr-eduroam.sh
index 0e37afb..e310812 100755
--- a/tools/naptr-eduroam.sh
+++ b/tools/naptr-eduroam.sh
@@ -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
@@ -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