Adding Reply Attributes (GNU Radius Reference Manual)

Next: , Previous: , Up: Filters [Contents][Index]


10.1.4 Adding Reply Attributes

Apart from simply deciding whether to authenticate a user, the filter can also modify the reply pairs.

#! /bin/sh
DB=/var/db/userlist
while read NAME CLID
do
 if grep "1ドル:2ドル" $DB; then
 echo "0 Service-Type = Login, Session-Timeout = 1200"
 else
 echo "1 Reply-Message =
 \"You are not authorized to log in\""
 fi
done

AltStyle によって変換されたページ (->オリジナル) /