Added ldap port to gui

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2018-09-09 14:18:38 +00:00
parent 5a96b65ead
commit 4efe39b5f3
4 changed files with 9 additions and 6 deletions

View File

@ -6,9 +6,9 @@ class LDAP {
private $link;
private $bind;
public function __construct($ldaphost, $binddn, $bindpw) {
public function __construct($ldaphost, $ldapport, $binddn, $bindpw) {
$this->link = ldap_connect($ldaphost) or exit('Error: ldap_connect()');
$this->link = ldap_connect($ldaphost, $ldapport) or exit('Error: ldap_connect()');
ldap_set_option($this->link, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($this->link, LDAP_OPT_REFERRALS, 0);