From 6965c58308f384bf895050be692a1d71e091514d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 21 Jun 2018 08:28:08 +0100 Subject: [PATCH] Bug 20879: Fix regression in shibboleth when ldap enabled Signed-off-by: Nick Clemens Signed-off-by: Nick Clemens --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 5722e4f2bd..2731ff2512 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1771,7 +1771,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 ) { -- 2.39.5