Bug 5630 Followup: checkpw_ldap not imported
authorIan Walls <ian.walls@bywatersolutions.com>
Tue, 30 Aug 2011 14:41:10 +0000 (10:41 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 12 Oct 2011 21:50:50 +0000 (10:50 +1300)
If LDAP authentication is used, Koha barks that C4::Auth::checkpw_ldap is
undefined, which is true.  checkpw_ldap needs to be imported from C4::Auth_with_ldap,
like it was before the bug fix for 5630

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Auth.pm

index d6dcd87..57f4d2c 100644 (file)
@@ -56,7 +56,7 @@ BEGIN {
     require C4::Auth_with_cas;             # no import
     if ($ldap) {
        require C4::Auth_with_ldap;
-       # no import import C4::Auth_with_ldap qw(checkpw_ldap);
+       import C4::Auth_with_ldap qw(checkpw_ldap);
     }
     if ($cas) {
         import  C4::Auth_with_cas qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url);