diff --git a/C4/Auth.pm b/C4/Auth.pm index 10929d887f..df62174a2c 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1776,7 +1776,7 @@ sub checkpw { if ( $patron and $patron->account_locked ) { # Nothing to check, account is locked - } elsif ($ldap) { + } elsif ($ldap && defined($password)) { $debug and print STDERR "## checkpw - checking LDAP\n"; my ( $retval, $retcard, $retuserid ) = checkpw_ldap(@_); # EXTERNAL AUTH if ( $retval == 1 ) {