0.1003 xxxx
- get entries in array context rather than scalar context,
allowing for multiple values. patch by scpham.
+ - lc() to compare Net::LDAP results with supplied $id
+ bug reported via RT #39113
0.1002 9 July 2008
# a little extra sanity check with the 'eq' since LDAP already
# says it matches.
+ # NOTE that Net::LDAP returns exactly what you asked for, but
+ # because LDAP is often case insensitive, FoO can match foo
+ # and so we normalize with lc().
if ( defined($entry) ) {
- unless ( $entry->get_value($user_field) eq $id ) {
+ unless ( lc( $entry->get_value($user_field) ) eq lc($id) ) {
Catalyst::Exception->throw(
"LDAP claims '$user_field' equals '$id' but results entry does not match."
);