radtest.in

来自「radius服务器」· IN 代码 · 共 55 行

IN
55
字号
#! /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 + =
减小字号Ctrl + -
显示快捷键?