Calling a module name from a dynamic variable
Jorge Pereira
jpereiran at gmail.com
Thu Nov 5 15:26:28 CET 2015
Frank,
What is your "mymodule"? a xlat function? tell more about the "mymodule"
--
Jorge Pereira
On Thu, Nov 5, 2015 at 12:15 PM, Franks Andy (IT Technical Architecture
Manager) <Andy.Franks at sath.nhs.uk> wrote:
> Hi Jorge,
> Still the same :
> Failed to find "%{%{control:Tmp-String-0}}" as a module or policy.
>
> Oh well.
> Thanks
> Andy
>
> -----Original Message-----
> From: Freeradius-Users [mailto:freeradius-users-bounces+andy.franks=
> sath.nhs.uk at lists.freeradius.org] On Behalf Of Jorge Pereira
> Sent: 05 November 2015 13:26
> To: FreeRadius users mailing list
> Subject: Re: Calling a module name from a dynamic variable
>
> Hi Frank,
>
> try this...
>
> update control {
> Tmp-String-0 := "mymodule"
> }
>
> "%{%{control:Tmp-String-0}}" {
> Fail =1
> }
>
> --
> Jorge Pereira
>
> On Thu, Nov 5, 2015 at 11:19 AM, Franks Andy (IT Technical Architecture
> Manager) <Andy.Franks at sath.nhs.uk> wrote:
>
> > Hi all,
> > Freeradius 3.1 from git.
> >
> > Just wanted to know if I can do this :
> >
> > Update control {
> > Tmp-String-0 := "mymodule"
> > }
> >
> > "%{control:Tmp-String-0}" {
> > Fail =1
> > }
> >
> > Hopefully it's obvious - I want to prepare a variable and call a
> > matching module name from the variable, in this case mymodule.
> > It doesn't work at the moment as the string isn't evaluated - it just
> says:
> >
> > Failed to find "%{control:Tmp-String-0}" as a module or policy.
> >
> > If I can't, I can't no worries, I would just stop me searching if I knew.
> >
> > Thanks
> > Andy
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list