7 echo "Usage: radzap [options] server[:port] secret" >&2
8 echo " -d raddb_directory: directory where radiusd.conf is located"
9 echo " -N nas_ip_address: IP address of the NAS to zap."
10 echo " -P nas_port: NAS port that the user is logged into."
11 echo " -u username: Name of user to zap (case insensitive)."
12 echo " -U username: like -u, but case-sensitive."
13 echo " -x : more debugging output"
17 while test "$#" != "0"
22 -d) RADDB="-d $2";shift;shift;;
24 -N) NAS_IP_ADDR="-N $2";shift;shift;;
26 -P) NAS_PORT="-P $2";shift;shift;;
28 -u) USER_NAME="-u $2";shift;shift;;
30 -U) USER_NAME="-U $2";shift;shift;;
32 -x) DEBUG="-x";shift;;
39 if test "$#" != "2"; then
48 # Radzap is now a wrapper around radwho & radclient.
50 radwho -ZR $RADDB $NAS_IP_ADDR $NAS_PORT $USER_NAME | radclient $DEBUG $RADDB -f - $SERVER acct $SECRET