<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hugh,<br>
<br>
Heikki nailed on the head I switched to %l which is what we use in our
other authlog clauses and it worked just fine.&nbsp; I was thinking
something else had to be done in a postauthhook.<br>
<br>
Just wanted to say thanks for all your help.<br>
<br>
-Chris<br>
<br>
Hugh Irvine wrote:
<blockquote cite="mid:5510C7A1-0C0D-4DF3-AD2E-7A64872A3DD9@open.com.au"
 type="cite">
  <pre wrap="">Hello Heikki, Hello Chris -

Heikki is correct - the "Timestamp" is only available in accounting requests.

This is because accounting requests can contain an "Acct-Delay-Time" in case of retransmissions, and Radiator automatically corrects the Timestamp to the time the event occured - ie. current time minus Acct-Delay-Time. There is no equivalent for access requests because you aren't doing billing on access requests.

This is why my response also suggested looking at the other special characters in section 5.2 of the manual ("doc/ref.pdf").

regards

Hugh


On 20 Feb 2010, at 06:47, Heikki Vatiainen wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">On 02/19/2010 08:58 PM, Chris Bland wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Still now sure what's not working.  I tried you solution in a file by
itself and this is what showed up in the logs
      </pre>
    </blockquote>
    <pre wrap="">I am not Hugh, but took look at this too :)

    </pre>
    <blockquote type="cite">
      <pre wrap="">Fri Feb 19 11:37:25 2010: DEBUG: AuthBy LDAP2 result: ACCEPT,
Fri Feb 19 11:37:25 2010: DEBUG: Timestamp is
Fri Feb 19 11:37:25 2010: DEBUG: Access accepted for <a class="moz-txt-link-abbreviated" href="mailto:chris@fdu.edu">chris@fdu.edu</a>

I forgot to mention in my original post that I am able to get the
Timestamp during other requests just not in the Access-Request.
      </pre>
    </blockquote>
    <pre wrap="">I think Timestamp is only available in Accounting-Request packets.

If you check the manual for version 4.5.1, section 5.29.16
"AcctColumnDef", there is discussion about the Timestamp attribute and
how it is added by Radiator to received Accounting-Requests.

The log snippet you included shows that the attribute is not in
Access-Request and since it is not added by Radiator, I think that
explains why you can not see it.

If the need is only to log the timestamp of request arrival, maybe %B or
the other time related specifiers would do. For example, %B does not
depend on the request contents, but is the result of strftime(time()) call.

-- 
Heikki Vatiainen, Arch Red Oy
+358 44 087 6547
_______________________________________________
radiator mailing list
<a class="moz-txt-link-abbreviated" href="mailto:radiator@open.com.au">radiator@open.com.au</a>
<a class="moz-txt-link-freetext" href="http://www.open.com.au/mailman/listinfo/radiator">http://www.open.com.au/mailman/listinfo/radiator</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->


NB: 

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (<a class="moz-txt-link-abbreviated" href="http://www.open.com.au/archives/radiator">www.open.com.au/archives/radiator</a>)?
Have you had a quick look on Google (<a class="moz-txt-link-abbreviated" href="http://www.google.com">www.google.com</a>)?
Have you included a copy of your configuration file (no secrets), 
together with a trace 4 debug showing what is happening?

  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<title>OIRT Signature</title>
<style media="all" type="text/css">
        #sig{
                margin:6px 0 0 15px;
                padding:6px;
                width: 530px;
                }
        #sig .person{
                font-family:Georgia, "Times New Roman", Times, serif;
                font-size:12px;
                font-style:italic;
                color:#333333;
                font-weight: bolder;
                padding: 0 0 0 15px;
        }
                #sig .title{
                font-family:Georgia, "Times New Roman", Times, serif;
                font-size:10px;
                font-style:italic;
                color:#333333;
                padding: 0 0 0 15px;
                letter-spacing: .1em;
                line-height: 10px;
        }

        #sig .row {
                line-height:12px;
                color:#333333;
                padding-top: 13px;
                padding: 10px 0 0 15px;
                font-family: Verdana, Arial, Helvetica, sans-serif;
                font-size: 10px;
        }
        #sig .top {
                font-family:Georgia, "Times New Roman", Times, serif;
                font-size:11px;
                font-style:italic;
                color:#CC0000;
                padding:7px 0 0 0;
                font-weight: bolder;
        }
        #sig .toptwo {
                font-family:Georgia, "Times New Roman", Times, serif;
                font-size:11px;
                font-style:italic;
                color:#CC0000;
                padding-left: 120px;
                font-weight: bolder;
        }

        #sig .row a:link, .row avisited {
                color:#5CBDBF;
                text-decoration:none;
                }
        #sig .row a:over{
                color:#333333;
                border: 1px black dotted;
        }

</style>
<div id="sig">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr>
      <td valign="top" width="150"><img moz-do-not-send="false"
 src="cid:part1.00040401.03010604@fdu.edu" alt="fdu logo" height="62"
 width="140"></td>
      <td>
      <div class="person">Christopher Bland</div>
      <div class="title">Systems Manager<br>
Information Systems and Technology</div>
      <div class="row"> <strong>1000 River Road, Teaneck NJ 07666</strong><br>
Mail Stop: T-BH1-01<br>
      <img moz-do-not-send="false"
 src="cid:part2.08000501.08050304@fdu.edu" alt="phone" height="10"
 width="13">: 201-692-2414 | <img moz-do-not-send="false"
 src="cid:part3.01060005.00030503@fdu.edu" alt="fax" height="13"
 width="15">: 201-692-2494 | <img moz-do-not-send="false"
 src="cid:part4.00040708.06020607@fdu.edu" alt="email" height="11"
 width="12">: <a href="mailto:chris@fdu.edu">chris@fdu.edu</a> </div>
      </td>
    </tr>
    <tr>
      <td colspan="2">
      <div class="top">"Fairleigh Dickinson University will never<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ask for your password. Please do not
share it with others!"</div>
      </td>
    </tr>
  </tbody>
</table>
</div>
</div>
</body>
</html>