share information between authorize and authenticate sections (rlm_perl & rlm_python)
laurent.feron at free.fr
laurent.feron at free.fr
Thu Dec 13 14:27:12 CET 2012
Yes, just found this attribute. Thanks. Works well with Perl :), but not with Python :(
----- Mail original -----
De: "Phil Mayers" <p.mayers at imperial.ac.uk>
À: freeradius-users at 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.feron at 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
More information about the Freeradius-Users
mailing list