<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>radutmp</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Hi all,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri"> Doing some accounting with</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">3.1.0 (git #8be6046)</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">, and I’ve changed the radutmp module in a very small way to use stripped user name, and then user name if that isn’t populated.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">i.e. in mods-available/radutmp:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri"> username = %{Stripped-User-Name:-%{User-Name}}</FONT></SPAN><SPAN LANG="en-gb"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">during accounting it says :</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) radutmp : EXPAND /usr/local/var/log/radius/radutmp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) radutmp : --> /usr/local/var/log/radius/radutmp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) ERROR: radutmp : %{Stripped-User-Name:-%{User-Name}}</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) ERROR: radutmp : ^ Unknown module</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) [radutmp] = fail</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">(225) } # accounting = fail</FONT></SPAN><SPAN LANG="en-gb"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Radwho also doesn’t like me,</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">all the policies I’ve written where I’m testing a control variable work fine in the FR main config but using radwho it complains that it’s expecting a module return code :</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Tue Aug 5 17:34:54 2014 : Error: /usr/local/etc/raddb/policy.d/vlan_override[4]: Parse error in condition</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Tue Aug 5 17:34:54 2014 : Error: if (control:Ldap-SpecificUTVid) {</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Tue Aug 5 17:34:54 2014 : Error: ^ Expected a module return code</FONT></SPAN><SPAN LANG="en-gb"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Have I missed something obvious? This always used to work ok.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Thanks</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Andy</FONT></SPAN><SPAN LANG="en-gb"></SPAN></P>
</BODY>
</HTML>