3.7.39. HandlerFindHook Previous topic Parent topic Child topic Next topic

Specifies an optional Perl hook that can be used to avoid linear Handler lookup when there are multiple Handlers. This is advantageous for configurations, such as proxying based on realm, where maximum packet throughput is required. The hook is expected to return the Handler to use or nothing. If nothing is returned, lookup continues as defined by Section 3.31. <Handler attribute=value,attribute=value, ....>.
The hook is passed the following arguments
  • $_[0] A reference to the current RADIUS request
  • $_[1] Current username without realm part
  • $_[2] Realm part of the username, if any
HandlerFindHook is not set by default. See goodies/handler-find-hook.cfg for a configuration sample.