Send Attribute Using Script

Tyller D tyllerd at gmail.com
Tue Feb 22 07:29:31 CET 2011


Maybe try it like this

                if ( $lefttime le 0 ) {
                                           $RAD_REPLY{'Reply-Message'} =
"Your account has expired";
                                        return RLM_MODULE_REJECT;

                }else {

                                        $RAD_REPLY{'Session-Timeout'} =
"$lefttime";
                                        return RLM_MODULE_OK;


On Tue, Feb 22, 2011 at 6:55 AM, christian at wanxp.com <christian at wanxp.com>wrote:

> Dear,
>
> i am just planning to upgrade Freeradius to v2 , but i got my perl didnt
> send any atrribute , it worked fine in v1, is there any idea what wrong with
> my script in freeradius2 ?
>
> #!/usr/bin/perl
> #
>
>    if ($lefttime <= 0)
>    {
>        print "Reply-Message=\"Your account has expired\"";
>        exit 1;
>    }
>    else
>    {
>        print "Session-Timeout=" . $lefttime . ", ";
>    }
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110222/65dc7552/attachment.html>


More information about the Freeradius-Users mailing list