Send Attribute Using Script

christian at wanxp.com christian at wanxp.com
Tue Feb 22 07:57:52 CET 2011


how to define $RAD_REPLY ? or no need to define ?

On 2/22/2011 1:29 PM, Tyller D wrote:
> 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 
> <mailto:christian at wanxp.com> <christian at wanxp.com 
> <mailto: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
>
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
>
> -
> 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/ebc28339/attachment.html>


More information about the Freeradius-Users mailing list