Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent realm being interpreted as options
  • Loading branch information
Guy Halse authored and Fabian Mauchle committed May 31, 2021
1 parent c374141 commit b831925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/naptr-eduroam.sh
Expand Up @@ -38,7 +38,7 @@ dig_it_srv() {
}

dig_it_naptr() {
${DIGCMD} +short naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k1 |
${DIGCMD} +short naptr "${REALM}" | grep x-eduroam:radius.tls | sort -n -k1 |
while read line; do
set $line ; TYPE=$3 ; HOST=$(validate_host $6)
if ( [ "$TYPE" = "\"s\"" ] || [ "$TYPE" = "\"S\"" ] ) && [ -n "${HOST}" ]; then
Expand All @@ -59,7 +59,7 @@ host_it_srv() {
}

host_it_naptr() {
${HOSTCMD} -t naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k5 |
${HOSTCMD} -t naptr "${REALM}" | grep x-eduroam:radius.tls | sort -n -k5 |
while read line; do
set $line ; TYPE=$7 ; HOST=$(validate_host ${10})
if ( [ "$TYPE" = "\"s\"" ] || [ "$TYPE" = "\"S\"" ] ) && [ -n "${HOST}" ]; then
Expand Down
4 changes: 2 additions & 2 deletions tools/radsec-dynsrv.sh
Expand Up @@ -28,7 +28,7 @@ validate_port() {
}

dig_it() {
${DIGCMD} +short srv _radsec._tcp.${REALM} | sort -n -k1 |
${DIGCMD} +short srv "_radsec._tcp.${REALM}" | sort -n -k1 |
while read line ; do
set $line ; PORT=$(validate_port $3) ; HOST=$(validate_host $4)
if [ -n "${HOST}" ] && [ -n "${PORT}" ]; then
Expand All @@ -38,7 +38,7 @@ dig_it() {
}

host_it() {
${HOSTCMD} -t srv _radsec._tcp.${REALM} | sort -n -k5 |
${HOSTCMD} -t srv "_radsec._tcp.${REALM}" | sort -n -k5 |
while read line ; do
set $line ; PORT=$(validate_port $7) ; HOST=$(validate_host $8)
if [ -n "${HOST}" ] && [ -n "${PORT}" ]; then
Expand Down

0 comments on commit b831925

Please sign in to comment.