mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
Fixed LDAP() call in model/saas/ldap.php
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
3c57d5fec7
commit
d1fecf3a0c
@ -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()) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user