From 3dd69aa428e52947533778762d7f1a6324ed2b76 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 --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 04584a9..43e4ad0 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1772,7 +1772,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.1.4