3 # radtest Emulate the user interface of the old
4 # radtest that used to be part of cistron-radius.
6 # Version: @(#)radtest.sh 1.10 25-Jul-1999 miquels@cistron.nl
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 ]
24 if [ $# -lt 5 ] || [ $# -gt 7 ]
37 echo "User-Name = \"$1\""
38 echo "Password = \"$2\""
39 echo "NAS-IP-Address = $nas"
40 echo "NAS-Port-Id = $4"
43 echo "Framed-Protocol = PPP"
45 ) | $radclient -dn $3 auth $5