Hello,

I have a perl module that changes the username during the authorization phase 
(retrieve from a oracle database) by modifying the user-name attribute in the 
RAD_REQUEST dictionary. This update is global and can be used by the 
authentication phase (still handled by the perl script).

I try to switch from perl to python as i'm more comfortable. Everything is ok 
except i don't know how to modify on the fly the user-name.

in the 'authorize(p)' function, p is the read only tuple of the request. I 
cannot update the request here.
The return of the function is (RLM_MODULE_something, tuple4reply, 
tuple4config). I still cannot change here.

Moreover, if i change the tuple config in the authorize function , how i can 
retrieve it in the authentication function?

Maybe i miss something as i'm a beginner on FR.

Regards,
Laurent
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to