3 # radtest Emulate the user interface of the old
4 # radtest that used to be part of FreeRADIUS.
10 exec_prefix="@exec_prefix@"
14 echo "Usage: radtest user passwd radius-server nas-port-id secret [ppphint] [nasname]" >&2
18 radclient=$bindir/radclient
19 if [ ! -x "$radclient" ] && [ -x ./radclient ]
32 if [ $# -lt 5 ] || [ $# -gt 7 ]
45 echo "User-Name = \"$1\""
46 echo "Password = \"$2\""
47 echo "NAS-IP-Address = $nas"
48 echo "NAS-Port-Id = $4"
51 echo "Framed-Protocol = PPP"
53 ) | $radclient $DICTIONARY -x $3 auth $5