3.89.11. SIP2Hook Previous topic Parent topic Child topic Next topic

Perl hook that is run for each request handled by SIP2. This hook can be used for further authorisation checks. The hook is passed the following arguments:
  • Reference to the current AuthBy SIP2 object
  • Response received from the ACS
  • Reference to the current request
The hook return value must be one of:
$main::ACCEPT
$main::REJECT
$main::IGNORE
$main::CHALLENGE
$main::REJECT_IMMEDIATE
Note
When the optional parameter NoCheckPassword is enabled, the hook return value determines the authentication result. See goodies/sip2hook.pl for an example.
SIP2Hook file:"%D/sip2hook.pl"