radutmp

Franks Andy (RLZ) IT Systems Engineer Andy.Franks at sath.nhs.uk
Wed Aug 6 11:43:05 CEST 2014


Thanks Arran,
  Checked and it was using an old version of the radutmp config file for
some reason, guess I just copied and pasted. Looks like what I put in
was part of the comments field from that old version.
Apologies
Andy

-----Original Message-----
From:
freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradius.org
[mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradiu
s.org] On Behalf Of Arran Cudbard-Bell
Sent: 05 August 2014 18:07
To: FreeRadius users mailing list
Subject: Re: radutmp


On 5 Aug 2014, at 12:35, Franks Andy (RLZ) IT Systems Engineer
<Andy.Franks at sath.nhs.uk> wrote:

> Hi all,
> 
>   Doing some accounting with 3.1.0 (git #8be6046), 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.
> 
> i.e. in mods-available/radutmp:
> 
>   username = %{Stripped-User-Name:-%{User-Name}}
> 
> during accounting it says :
> 
> (225)  radutmp : EXPAND /usr/local/var/log/radius/radutmp
> 
> (225)  radutmp :    --> /usr/local/var/log/radius/radutmp
> 
> (225) ERROR: radutmp : %{Stripped-User-Name:-%{User-Name}}
> 
> (225) ERROR: radutmp :   ^ Unknown module

You've used the wrong syntax... should be:

%{%{Stripped-User-Name}:-%{User-Name}}


> 
> (225)   [radutmp] = fail
> 
> (225)  } #  accounting = fail
> 
> Radwho also doesn't like me, 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 :
> 
> Tue Aug  5 17:34:54 2014 : Error: 
> /usr/local/etc/raddb/policy.d/vlan_override[4]: Parse error in 
> condition
> 
> Tue Aug  5 17:34:54 2014 : Error:   if (control:Ldap-SpecificUTVid) {
> 
> Tue Aug  5 17:34:54 2014 : Error:       ^ Expected a module return
code
> 
> Have I missed something obvious? This always used to work ok.

Probably needs an &control:Ldap-SpecificUTVid or the attribute hasn't
been defined.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org> FreeRADIUS development
team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2



More information about the Freeradius-Users mailing list