Auth-Type attribute and authorize section
Hi all, I'm developping some FreeRADIUS modules. In the authorize section, my module set the "Auth-Type" to a specific value to pick my own module in the authorize section. The last one in this section is the FreeRADIUS files module. I use it to perform some tasks if the request is not processed by other modules. Even the Auth-Type has already been set by a precedent module, the request goes through the files modules and match the DEFAULT entry. Is there any possibility not to go through following modules in the authorize section if the Auth-Type has already been set. I mean go directly to the authentication section once the configuration attribute Auth-Type has been set (I would like not to modify the files module code). Thanks in advance
"Nicolas Castel" <nicolas.castel@gmail.com> wrote:
Is there any possibility not to go through following modules in the authorize section if the Auth-Type has already been set.
Yes. See doc/configurable_failover. You should have your module return different codes, based on whether Auth-Type was set or not. You can then have a return code block saying "updated = return", which will stop processing the authorize section. Alan DeKok.
Thanks a lot Alan, that's exactly what i needed 2006/5/30, Alan DeKok <aland@nitros9.org>:
"Nicolas Castel" <nicolas.castel@gmail.com> wrote:
Is there any possibility not to go through following modules in the authorize section if the Auth-Type has already been set.
Yes. See doc/configurable_failover. You should have your module return different codes, based on whether Auth-Type was set or not. You can then have a return code block saying "updated = return", which will stop processing the authorize section.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Nicolas Castel