Lines 53-64
BEGIN {
Link Here
|
53 |
$ldap = C4::Context->config('useldapserver') || 0; |
53 |
$ldap = C4::Context->config('useldapserver') || 0; |
54 |
$cas = C4::Context->preference('casAuthentication'); |
54 |
$cas = C4::Context->preference('casAuthentication'); |
55 |
$caslogout = C4::Context->preference('casLogout'); |
55 |
$caslogout = C4::Context->preference('casLogout'); |
|
|
56 |
require C4::Auth_with_cas; # no import |
56 |
if ($ldap) { |
57 |
if ($ldap) { |
57 |
require C4::Auth_with_ldap; |
58 |
require C4::Auth_with_ldap; |
58 |
# no import import C4::Auth_with_ldap qw(checkpw_ldap); |
59 |
# no import import C4::Auth_with_ldap qw(checkpw_ldap); |
59 |
} |
60 |
} |
60 |
if ($cas) { |
61 |
if ($cas) { |
61 |
require C4::Auth_with_cas; # no import |
|
|
62 |
import C4::Auth_with_cas qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url); |
62 |
import C4::Auth_with_cas qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url); |
63 |
} |
63 |
} |
64 |
|
64 |
|
65 |
- |
|
|