Use the numeric NAS-Port attribute, and not the string NAS-Port-Id
[freeradius.git] / src / main / radtest.in
index 1f207f6..dc46cf0 100644 (file)
@@ -11,7 +11,7 @@ exec_prefix="@exec_prefix@"
 bindir="@bindir@"
 
 usage() {
-       echo "Usage: radtest user passwd radius-server[:port] nas-port-id secret [ppphint] [nasname]" >&2
+       echo "Usage: radtest user passwd radius-server[:port] nas-port-number secret [ppphint] [nasname]" >&2
        exit 1
 }
 
@@ -45,7 +45,7 @@ fi
        echo "User-Name = \"$1\""
        echo "User-Password = \"$2\""
        echo "NAS-IP-Address = $nas"
-       echo "NAS-Port-Id = $4"
+       echo "NAS-Port = $4"
        if [ "$6" ]
        then
                echo "Framed-Protocol = PPP"