Calling a module name from a dynamic variable

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Nov 5 15:52:47 CET 2015


> On Nov 5, 2015, at 9:47 AM, Franks Andy (IT Technical Architecture Manager) <Andy.Franks at sath.nhs.uk> wrote:
> 
> It's an SQL "named" module, just logs results from post-auth.
> Its name is really sql-radius-lan0 or sql-radius-lan1 or whatever, depending on certain circumstances.


You can't do that and with the way the code is structured it'd be very hard to support that.

Use switch and enumerate the possible modules you want to call.

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


More information about the Freeradius-Users mailing list