Re: share variables in perl script (rlm_perl)

2012-12-05 Thread laurent . feron
only 1 thread ? what 's about performance? yes, many thanks, i will look at your code Regards, Laurent - Mail original - De: "Thomas Glanzmann" À: "FreeRadius users mailing list" Envoyé: Samedi 1 Décembre 2012 16:11:35 Objet: Re: share variables in perl script

Re: share variables in perl script (rlm_perl)

2012-12-04 Thread John Dennis
On 12/04/2012 09:30 AM, laurent.fe...@free.fr wrote: Hello, thanks for your respond. I tried memcached as suggested by John Denins. Seems working very well. i thought of Redis, if memcached does not satisfied me (i don't see), Redis could be an option. In term of security, i have to be sure tha

Re: share variables in perl script (rlm_perl)

2012-12-04 Thread laurent . feron
d not public. Regards, Laurent - Mail original - De: "Iliya Peregoudov" À: "FreeRadius users mailing list" Envoyé: Mardi 4 Décembre 2012 08:14:13 Objet: Re: share variables in perl script (rlm_perl) Arran Cudbard-Bell wrote: > On 29 Nov 2012, at 22:14, laurent.fe..

Re: share variables in perl script (rlm_perl)

2012-12-03 Thread Iliya Peregoudov
Arran Cudbard-Bell wrote: On 29 Nov 2012, at 22:14, laurent.fe...@free.fr wrote: Hello, In a perl script (where authorize() and authenticate() are defined), i was able to set a global variable. when a radius request comes, the script may modify the variable, and the next request has the new

Re: share variables in perl script (rlm_perl)

2012-12-01 Thread Thomas Glanzmann
Hello Laurent, > Meaning, when i start the first radtest that modifies the global > variable, only the sixth request can view the global variable modified > by the first request( i guess the sixth one turns into the first > thread). I had the very same problem when I was implementing the smsotp p

Re: share variables in perl script (rlm_perl)

2012-11-29 Thread John Dennis
On 11/29/2012 05:14 PM, laurent.fe...@free.fr wrote: Hello, In a perl script (where authorize() and authenticate() are defined), i was able to set a global variable. when a radius request comes, the script may modify the variable, and the next request has the new value. I test with radiusd -X, a

Re: share variables in perl script (rlm_perl)

2012-11-29 Thread Arran Cudbard-Bell
On 29 Nov 2012, at 22:14, laurent.fe...@free.fr wrote: > Hello, > > In a perl script (where authorize() and authenticate() are defined), i was > able to set a global variable. when a radius request comes, the script may > modify the variable, and the next request has the new value. I test with

share variables in perl script (rlm_perl)

2012-11-29 Thread laurent . feron
Hello, In a perl script (where authorize() and authenticate() are defined), i was able to set a global variable. when a radius request comes, the script may modify the variable, and the next request has the new value. I test with radiusd -X, and everything is fine. when radiusd is started as a