summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2017-05-15 12:29:17 +0200
committerAleksander Machniak <machniak@kolabsys.com>2017-05-15 12:29:17 +0200
commit1b605db5f721f86f3b306aabcfce43f3da881013 (patch)
tree711dfb040d2e54ae334907008f7366c038315cb6
parentafffd6476d66a885f4401612236dc59dda459df7 (diff)
downloadwebadmin-1b605db5f721f86f3b306aabcfce43f3da881013.tar.gz
Fix ldaps:// connections (T2388)
-rw-r--r--lib/Auth/LDAP.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index ec3f63d..59432ef 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -88,7 +88,6 @@ class LDAP extends Net_LDAP3 {
$this->config_set('unique_attribute', $unique_attr);
$this->_ldap_uri = $this->conf->get('ldap_uri');
- $this->_ldap_server = parse_url($this->_ldap_uri, PHP_URL_HOST);
$this->_ldap_port = parse_url($this->_ldap_uri, PHP_URL_PORT);
$this->_ldap_scheme = parse_url($this->_ldap_uri, PHP_URL_SCHEME);
@@ -102,7 +101,7 @@ class LDAP extends Net_LDAP3 {
}
}
- $this->config_set("host", $this->_ldap_server);
+ $this->config_set("host", $this->_ldap_uri);
$this->config_set("port", $this->_ldap_port);
$this->config_set("use_tls", $this->_ldap_scheme == 'tls');