bugfix LDAP filter ldap_set_options

This commit is contained in:
OpenXE 2024-05-01 12:13:38 +02:00
parent 6d0b0006b7
commit 640974afc8

View File

@ -849,6 +849,8 @@ class Acl
{ {
// verbinden zum ldap server // verbinden zum ldap server
$ds = ldap_connect($this->app->erp->Firmendaten("ldap_host")); $ds = ldap_connect($this->app->erp->Firmendaten("ldap_host"));
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
$suche = $this->app->erp->Firmendaten("ldap_searchbase"); $suche = $this->app->erp->Firmendaten("ldap_searchbase");
$filter = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_filter")); $filter = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_filter"));
$bind_name = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_bindname")); $bind_name = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_bindname"));