Revision a7702ed5
Added by Ermal LUÇI almost 14 years ago
etc/inc/auth.inc | ||
---|---|---|
650 | 650 |
global $g; |
651 | 651 |
|
652 | 652 |
unset($caref); |
653 |
if (empty($authcfg['ldap_cacert']) || !strstr($authcfg['ldap_urltype'], "SSL")) {
|
|
653 |
if (empty($authcfg['ldap_caref']) || !strstr($authcfg['ldap_urltype'], "SSL")) {
|
|
654 | 654 |
putenv('LDAPTLS_REQCERT=never'); |
655 | 655 |
return; |
656 | 656 |
} else { |
657 |
$caref = lookup_ca($authcfg['ldap_cacert']);
|
|
657 |
$caref = lookup_ca($authcfg['ldap_caref']);
|
|
658 | 658 |
if (!$caref) { |
659 |
log_error(sprintf(gettext("LDAP: Could not lookup CA by reference for host %s."), $authcfg['ldap_cacert']));
|
|
659 |
log_error(sprintf(gettext("LDAP: Could not lookup CA by reference for host %s."), $authcfg['ldap_caref']));
|
|
660 | 660 |
/* XXX: Prevent for credential leaking since we cannot setup the CA env. Better way? */ |
661 | 661 |
putenv('LDAPTLS_REQCERT=hard'); |
662 | 662 |
return; |
Also available in: Unified diff
Correct array key typo mistake. Ticket #1052