📄 radtest.in
字号:
#! /bin/sh## radtest Emulate the user interface of the old# radtest that used to be part of FreeRADIUS.## Version: $Id: radtest.in,v 1.7 2002/09/30 19:05:02 aland Exp $#prefix="@prefix@"exec_prefix="@exec_prefix@"bindir="@bindir@"usage() { echo "Usage: radtest user passwd radius-server[:port] nas-port-number secret [ppphint] [nasname]" >&2 exit 1}radclient=$bindir/radclientif [ ! -x "$radclient" ] && [ -x ./radclient ]then radclient=./radclientfiif [ "$1" = "-d" ]then DICTIONARY="-d $2" shift;shiftelse DICTIONARY=""fiif [ $# -lt 5 ] || [ $# -gt 7 ]then usagefiif [ "$7" ]then nas=$7else nas=`hostname`fi( echo "User-Name = \"$1\"" echo "User-Password = \"$2\"" echo "NAS-IP-Address = $nas" echo "NAS-Port = $4" if [ "$6" ] then echo "Framed-Protocol = PPP" fi) | $radclient $DICTIONARY -x $3 auth $5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -