3.81.21. UserPasswordHook Previous topic Parent topic Child topic Next topic

Specifies an optional Perl hook that can be used to determine the correct password for the user. It is expected to return the correct user password in plaintext.
The hook is passed the following arguments:
  • $_[0] A reference to the current AuthBy module object
  • $_[1] A reference to a hash containing the guest's Opera data (as received in a GI message from Opera)
  • $_[2] A reference to the current RADIUS request
The default is:
UserPasswordHook sub {return $_[1]->{'G#'}}
which specifies the guests Guest Number (G#) is to be used as their password.