Yes, just found this attribute. Thanks. Works well with Perl :), but not with 
Python :(

----- Mail original -----
De: "Phil Mayers" <[email protected]>
À: [email protected]
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, [email protected] 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

Reply via email to