Skip Menu |

This queue is for tickets about the Auth-ActiveDirectory CPAN distribution.

Report information
The Basics
Id: 132453
Status: new
Priority: 0/
Queue: Auth-ActiveDirectory

People
Owner: Nobody in particular
Requestors: waverly360 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: authenticate error check function (_v_is_error) dies on any error, even failed login attempt
Date: Wed, 29 Apr 2020 13:01:27 -0500
To: bug-Auth-ActiveDirectory [...] rt.cpan.org
From: Michael McNeil <waverly360 [...] gmail.com>
sub _v_is_error { my ( $message, $s_user ) = @_; return 0 if ( !$message->is_error ); my $error = $message->error; my $level = $message->code == LDAP_INVALID_CREDENTIALS ? 'debug' : 'error'; die qq/Failed to authenticate user '$s_user'. Reason: '$error'/; return 1; } Was this intentional, or is this a bug? As it stands, I'm going to have to eval/try/catch to work around a failed login attempt in order to throw my own error through ajax requests. Curious how others have worked around this.