<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    how to define $RAD_REPLY ? or no need to define ?<br>
    <br>
    On 2/22/2011 1:29 PM, Tyller D wrote:
    <blockquote
      cite="mid:AANLkTi=snTUuHfE09eV64EnwsdadFU53o=O1FZMccUz6@mail.gmail.com"
      type="cite">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 moz-do-not-send="true"
          href="mailto:christian@wanxp.com">christian@wanxp.com</a> <span
          dir="ltr"><<a moz-do-not-send="true"
            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
            moz-do-not-send="true"
            href="http://www.freeradius.org/list/users.html"
            target="_blank">http://www.freeradius.org/list/users.html</a><br>
        </blockquote>
      </div>
      <br>
      <br>
      -- <br>
      This message has been scanned for viruses and
      <br>
      dangerous content by
      <a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
      and is
      <br>
      believed to be clean.
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
-
List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a></pre>
    </blockquote>
    <br>
  </body>
</html>