radutmp

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue Aug 5 19:07:13 CEST 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140805/ef7b3fbd/attachment.pgp>


More information about the Freeradius-Users mailing list