<div dir="ltr"><div><div><div><div><div><div><div>all i need is just to invoke my python script from dhcp section to perform my actions and return some values.<br><br></div>if i got it right, there are handlers in python module, for corresponding sections in radiusd.conf<br>
<br>for example, i have instantiate section in radiusd.conf and def instantiate(_params) function in my script and it is being invoked successfully<br><br>there's python module config as well, where we define module and appropriate function for each event, such as <br>
<br>    mod_instantiate = "test_freeradius"<br>    func_instantiate = "instantiate"<br><br></div>next, i've not found any mention of 'dhcp' section in rlm_python sources and even added it.<br>
<br></div><div>and added module and func_dhcp='dhcp' in the module config<br></div><div>nothing happened indeed<br></div><div><br></div>now, the question.<br><br></div>how do i call my python function from dhcp {whatever} section?<br>
</div><br></div>python script is being called but there's no entry point, <br>like 'python returns noop'<br>therefore i can't return any values into radius instance.<br><br></div>weird feeling i'm doing it first in the universe, please any help appreciated, spent over a week on this issue.<br>
thanks.<br><br><div>ps i dont need any auth, acct, detail, post-auth logic. all i need is to call my python scipt from dhcp section and return values.<br></div></div>