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