CC: | zordrak [...] cpan.org |
Subject: | Small bug in ExternalAuth |
Date: | Tue, 28 Oct 2008 14:37:07 -0700 |
To: | bug-RT-Authen-ExternalAuth [...] rt.cpan.org |
From: | Nick Kartsioukas <nicholas_kartsioukas [...] cuesta.edu> |
I found a bug in ExternalAuth that's only triggered when doing
debug-level logging.
This error is received when logging in with a valid username but an
incorrect password:
Can't call method "as_string" on an undefined value at
/home/rtemail/rt3.6/local/lib/RT/User_Vendor.pm line 890.
Afterwards, if I reload the RT URL, it allows me access as that user.
Lines 885-892:
$RT::Logger->debug( "LDAP Search === ",
"Base:",
$base,
"== Filter:",
$disable_filter->as_string,
"== Attrs:",
join(',',@attrs));
If I change line 890 to:
$disable_filter,
then everything works properly (no errors, rejects me with an incorrect
password, allows me in with a correct password).
Let me know if this isn't a bug and I'm actually doing something
terrible that would cause this to happen instead :)