3.9.13. BindFailedHook Previous topic Parent topic Child topic Next topic

This optional parameter allows you to define a Perl function that is run after the LDAP bind with the AuthDN fails.
BindFailedHook has the following arguments:
  1. Handle to the current Net::LDAP object
  2. Name of the user being authenticated
  3. Password of the user being authenticated
  4. Error string
  5. LDAP server the connection was made to
  6. Possible SASL error
The default is to log the error with the password set to obscured. If password debugging is required, redefine the hook or use the Debug parameter and see the console output.