From d1fecf3a0ce40ef58865f8ff2b26797c1b58333f Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 28 Oct 2020 12:38:38 +0100 Subject: [PATCH] Fixed LDAP() call in model/saas/ldap.php Signed-off-by: Janos SUTO --- webui/model/saas/ldap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webui/model/saas/ldap.php b/webui/model/saas/ldap.php index 2fd5768d..cedcca37 100644 --- a/webui/model/saas/ldap.php +++ b/webui/model/saas/ldap.php @@ -82,6 +82,7 @@ class ModelSaasLdap extends Model public function get_accounts_in_domain($domain = '') { $ldap_type = ''; $ldap_host = LDAP_HOST; + $ldap_port = LDAP_PORT; $ldap_base_dn = LDAP_BASE_DN; $ldap_helper_dn = LDAP_HELPER_DN; $ldap_helper_password = LDAP_HELPER_PASSWORD; @@ -102,7 +103,7 @@ class ModelSaasLdap extends Model if($ldap_host == '' || $ldap_helper_password == '') { return array(); } - $ldap = new LDAP($ldap_host, $ldap_helper_dn, $ldap_helper_password); + $ldap = new LDAP($ldap_host, $ldap_port, $ldap_helper_dn, $ldap_helper_password); if($ldap->is_bind_ok()) {