Maybe try it like this<br><br> if ( $lefttime le 0 ) {<br> $RAD_REPLY{'Reply-Message'} = "Your account has expired";<br> return RLM_MODULE_REJECT;<br>
<br> }else {<br><br> $RAD_REPLY{'Session-Timeout'} = "$lefttime";<br> return RLM_MODULE_OK;<br><br><br><div class="gmail_quote">
On Tue, Feb 22, 2011 at 6:55 AM, <a href="mailto:christian@wanxp.com">christian@wanxp.com</a> <span dir="ltr"><<a href="mailto:christian@wanxp.com">christian@wanxp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear,<br>
<br>
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 ?<br>
<br>
#!/usr/bin/perl<br>
#<br>
<br>
if ($lefttime <= 0)<br>
{<br>
print "Reply-Message=\"Your account has expired\"";<br>
exit 1;<br>
}<br>
else<br>
{<br>
print "Session-Timeout=" . $lefttime . ", ";<br>
}<br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br>