Initialize a variable at python script initialization time.

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Mar 13 18:26:07 CET 2017


> On Mar 12, 2017, at 3:26 AM, Anuruddha Premalal <anuruddhapremalal at gmail.com> wrote:
> 
> Hello Community,
> 
> Is there a method in python extension to load an external data structure?.
> I just need to initialize a large MAC address array from a JSON. And use it
> in all the auth requests without re-reading it from the file every time.
> 
> Is there a way to achieve this?

I'm sure there's a way to do that in Python... The Python interpreter isn't sandboxed, you can do anything you need to .

-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/20170313/9e37a801/attachment.sig>


More information about the Freeradius-Users mailing list