I'm really sorry Arran, python syntax does not allow function naming as python.authorize Also, tried to declare func_dhcp as python.dhcp in the module config, but no, it wants exact function name. Or didn't i get you right again? i have python module call in the instantiate section and i have func_instantiate declared in the module config and it is invoked properly when instantiated i just want the same for dhcp. Thank you. On Thu, May 8, 2014 at 4:15 PM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On 8 May 2014, at 13:34, Serge Krawczenko <skrawczenko@gmail.com> wrote:
Would you add a few words please? Thanks.
Module calls are
<instance name>[.<method override>]
If you want to call a python function associated with the authorize section in a normal RADIUS virtual-server, use python.authorize.
If you want to call a python function associated with the accounting section in a normal RADIUS virtual-server, use python.accounting.
and so on...
Pick the behaviour you need and use the correct method override.
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html