diff options
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index e93bf02..15bf2e2 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -650,13 +650,13 @@ function ldap_setup_caenv($authcfg) { global $g; unset($caref); - if (empty($authcfg['ldap_cacert']) || !strstr($authcfg['ldap_urltype'], "SSL")) { + if (empty($authcfg['ldap_caref']) || !strstr($authcfg['ldap_urltype'], "SSL")) { putenv('LDAPTLS_REQCERT=never'); return; } else { - $caref = lookup_ca($authcfg['ldap_cacert']); + $caref = lookup_ca($authcfg['ldap_caref']); if (!$caref) { - log_error(sprintf(gettext("LDAP: Could not lookup CA by reference for host %s."), $authcfg['ldap_cacert'])); + log_error(sprintf(gettext("LDAP: Could not lookup CA by reference for host %s."), $authcfg['ldap_caref'])); /* XXX: Prevent for credential leaking since we cannot setup the CA env. Better way? */ putenv('LDAPTLS_REQCERT=hard'); return; |