* [LEMONLDAP-490] - fix bad error log

This commit is contained in:
Sandro Cazzaniga 2012-07-10 08:32:40 +00:00
parent 29e6481a54
commit 189880d3ac

View File

@ -80,7 +80,7 @@ sub search {
$self->lmLog( 'LDAP Search error: ' . $mesg->error, 'error' );
return PE_LDAPERROR;
}
unless ( $mesg->count() == 1 ) {
if ( $mesg->count() > 1 ) {
$self->lmLog( 'More than one entry returned by LDAP directory',
'error' );
return PE_BADCREDENTIALS;