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

@ -5,12 +5,12 @@ class LDAPDB {
private $driver;
public function __construct($driver, $ldaphost, $binddn, $bindpw) {
public function __construct($driver, $ldaphost, $ldapport, $binddn, $bindpw) {
if (!@require_once(DIR_DATABASE . $driver . '.php')) {
exit('Error: Could not load database file ' . $driver . '!');
}
$this->driver = new $driver($ldaphost, $binddn, $bindpw);
$this->driver = new $driver($ldaphost, $ldapport, $binddn, $bindpw);
}