<div dir="ltr">Phil Mayer,<div><br></div><div>Thanks very much for you help on this!</div><div><br></div><div style>Jeff</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 3:42 PM, Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 08/05/2013 20:09, Jeff Smith wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello,<br>
<br>
I've got a freeradius server 2.2.0 configured to process requests, and<br>
now I'd like to add some logging that would look something like this:<br>
<br>
Wed May 8 14:53:16 2013 Access-Request for <a href="mailto:abcd@purdue.edu" target="_blank">abcd@purdue.edu</a><br></div>
<mailto:<a href="mailto:abcd@purdue.edu" target="_blank">abcd@purdue.edu</a>> from MAC address (Calling-Station-Id)<div class="im"><br>
84-3a-4b-0c-46-44 NAS lwsn-b143-wism2-11<br>
<br>
I actually have that working, but would like for linelog to also log a<br>
line for packet types access-challenge, access-accept, and<br>
</div></blockquote>
<br>
Can't easily be done for Access-Challenge I'm afraid. The server doesn't pass them through post-auth.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
access-reject. My /opt/freeradius/etc/raddb/<u></u>modules/linelog has:<br>
</blockquote>
<br>
The easiest way is to define another instance of the linelog module, and use "Response-Packet-Type" in the format of the 2nd module, and call that in any "response" sections. If this offends your sensibilities, you can wrap the two linelog modules in a "policy" like so:<br>
<br>
policy {<br>
mylog.authorize {<br>
linelog1<br>
}<br>
mylog.post-auth {<br>
linelog2<br>
}<br>
}<br>
<br>
...then call "mylog". This can be useful for other reasons e.g. using unlang to format attributes before calling the linelog module, and is what we do.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
</blockquote></div><br></div>