* [LEMONLDAP-490] - fix bad error log
This commit is contained in:
parent
29e6481a54
commit
189880d3ac
|
@ -80,7 +80,7 @@ sub search {
|
||||||
$self->lmLog( 'LDAP Search error: ' . $mesg->error, 'error' );
|
$self->lmLog( 'LDAP Search error: ' . $mesg->error, 'error' );
|
||||||
return PE_LDAPERROR;
|
return PE_LDAPERROR;
|
||||||
}
|
}
|
||||||
unless ( $mesg->count() == 1 ) {
|
if ( $mesg->count() > 1 ) {
|
||||||
$self->lmLog( 'More than one entry returned by LDAP directory',
|
$self->lmLog( 'More than one entry returned by LDAP directory',
|
||||||
'error' );
|
'error' );
|
||||||
return PE_BADCREDENTIALS;
|
return PE_BADCREDENTIALS;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user