Re: share information between authorize and authenticate sections (rlm_perl & rlm_python)
Yes, just found this attribute. Thanks. Works well with Perl :), but not with Python :( - Mail original - De: "Phil Mayers" À: freeradius-users@lists.freeradius.org Envoyé: Jeudi 13 Décembre 2012 13:05:23 Objet: Re: share information between authorize and authenticate sections (rlm_perl & rlm_python) On 12/12/12 22:04, laurent.fe...@free.fr wrote: > Hello, > > If someone can advise me... > How to share information between the authorize() function and the > authenticate() function within a perl or python script ? Just set an attribute: authorize { update request { Tmp-String-0 := "%{some:expansion}" } ... } authenticate { Auth-Type XXX { if (Tmp-String-0 == "a") { module_a } else { module_b } } } ...re-work as appropriate for your use-case. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: share information between authorize and authenticate sections (rlm_perl & rlm_python)
On 12/12/12 22:04, laurent.fe...@free.fr wrote: Hello, If someone can advise me... How to share information between the authorize() function and the authenticate() function within a perl or python script ? Just set an attribute: authorize { update request { Tmp-String-0 := "%{some:expansion}" } ... } authenticate { Auth-Type XXX { if (Tmp-String-0 == "a") { module_a } else { module_b } } } ...re-work as appropriate for your use-case. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: share information between authorize and authenticate sections (rlm_perl & rlm_python)
Hi, > in perl, i could write some new attributes in RAD_CHECK ??, then > authenticate() will access them. > in python, attributes are read only, so i cannot use them to pass information > to authenticate(). > A simple database, like redis, could be a solution by adding info with the id > of the request (with Message-Authenticator as key)? we use and update private internal FreeRADIUS attributes alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
share information between authorize and authenticate sections (rlm_perl & rlm_python)
Hello, If someone can advise me... How to share information between the authorize() function and the authenticate() function within a perl or python script ? For example, i get some information from a database in authorize() that will reuse it in authenticate()? I could resubmit the sql request again, but it is clearly not efficient. in perl, i could write some new attributes in RAD_CHECK ??, then authenticate() will access them. in python, attributes are read only, so i cannot use them to pass information to authenticate(). A simple database, like redis, could be a solution by adding info with the id of the request (with Message-Authenticator as key)? If someone has an idea, it is very welcome... Regards, Laurent - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: rlm_perl/rlm_python adding extra value pairs
Mike O'Connor wrote: > I wish to add some extra valid pairs to accounting packets which are > being proxied to other radius servers. > > If in the 'preacct' or the 'accounting' stage I was to add using > rlm_python or rlm_perl value pairs would they be sent thought to the > other radius servers ? Yes. It doesn't take too long to try it and see. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
rlm_perl/rlm_python adding extra value pairs
Hi All I wish to add some extra valid pairs to accounting packets which are being proxied to other radius servers. If in the 'preacct' or the 'accounting' stage I was to add using rlm_python or rlm_perl value pairs would they be sent thought to the other radius servers ? Thanks Mike - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: rlm_perl / rlm_python
Quoting Thor Spruyt <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > Hi there, > > Could someone tell me what versions of freeradius have rlm_perl? > > All latest version have it. But it's unstable and therefore you have to > compile from source using --with-experimental-modules > > > Do I have to install the 1.0.4 version to get rlm_perl? > > No, but latest version is best :) > > > A very subjective question here... what is better to use rlm_perl or > > rlm_python? > > I think that rlm_perl is likely to be supported better than rlm_python. > > > I would have to learn python, but if the general concensus is to go > > with python I'll do it. > > Go for rlm_perl > > -- > Groeten, Regards, Salutations, > > Thor Spruyt > M: +32 (0)475 67 22 65 > E: [EMAIL PROTECTED] > W: www.thor-spruyt.com > > www.salesguide.be > www.telenethotspot.be > Thanks for the info, will do the compile route - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: rlm_perl / rlm_python
I think there's a bug in the latest perl versions. When you are running Debian 3.1 (perl 5.8.4) and want experimental package you may want to link libperl.so into freeradius, if you don't you get an error when you start the freeradius server with rlm_perl enabled Like: /usr/sbin/freeradius: relocation error: /usr/lib/perl/5.8/auto/IO/IO.so: undefined symbol: Perl_Tstack_sp_ptr (failed! run '/usr/sbin/freeradius -x' to find out why.) I solved this with recompile configure option: --with-rlm-perl-lib-dir=/usr/lib/libperl.so.5.8.4 You also can do LD_PRELOAD=/usr/lib/libperl.so freeradius but I would suggest the first option... J. -- Jonathan De Graeve Network/System Administrator Imelda vzw Informatica Dienst 015/50.52.98 [EMAIL PROTECTED] -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Thor Spruyt Verzonden: vrijdag 9 september 2005 23:19 Aan: FreeRadius users mailing list Onderwerp: Re: rlm_perl / rlm_python [EMAIL PROTECTED] wrote: > Hi there, > Could someone tell me what versions of freeradius have rlm_perl? All latest version have it. But it's unstable and therefore you have to compile from source using --with-experimental-modules > Do I have to install the 1.0.4 version to get rlm_perl? No, but latest version is best :) > A very subjective question here... what is better to use rlm_perl or > rlm_python? I think that rlm_perl is likely to be supported better than rlm_python. > I would have to learn python, but if the general concensus is to go > with python I'll do it. Go for rlm_perl -- Groeten, Regards, Salutations, Thor Spruyt M: +32 (0)475 67 22 65 E: [EMAIL PROTECTED] W: www.thor-spruyt.com www.salesguide.be www.telenethotspot.be - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: rlm_perl / rlm_python
[EMAIL PROTECTED] wrote: > Hi there, > Could someone tell me what versions of freeradius have rlm_perl? All latest version have it. But it's unstable and therefore you have to compile from source using --with-experimental-modules > Do I have to install the 1.0.4 version to get rlm_perl? No, but latest version is best :) > A very subjective question here... what is better to use rlm_perl or > rlm_python? I think that rlm_perl is likely to be supported better than rlm_python. > I would have to learn python, but if the general concensus is to go > with python I'll do it. Go for rlm_perl -- Groeten, Regards, Salutations, Thor Spruyt M: +32 (0)475 67 22 65 E: [EMAIL PROTECTED] W: www.thor-spruyt.com www.salesguide.be www.telenethotspot.be - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
rlm_perl / rlm_python
Hi there, Could someone tell me what versions of freeradius have rlm_perl? I have a fedora box with freeradius 1.0.1 installed, I have downloaded the 1.0.4 version and it has references to rlm_perl in it. Do I have to install the 1.0.4 version to get rlm_perl? A very subjective question here... what is better to use rlm_perl or rlm_python? I would have to learn python, but if the general concensus is to go with python I'll do it. TIA - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html