projects
/
catagits/Catalyst-Authentication-Store-LDAP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Merge 'better_model_integration' into 'trunk'
[catagits/Catalyst-Authentication-Store-LDAP.git]
/
lib
/
Catalyst
/
Authentication
/
Store
/
LDAP
/
Backend.pm
diff --git
a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
index
e562977
..
b33ce82
100644
(file)
--- a/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
+++ b/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
@@
-279,6
+279,8
@@
sub lookup_user {
if ( $id =~ /\*/ ) {
Catalyst::Exception->throw("ID $id contains wildcards!");
}
+ # Trim trailing space or we confuse ourselves
+ $id =~ s/\s+$//;
my $ldap = $self->ldap_bind;
my @searchopts;
if ( defined( $self->user_basedn ) ) {