From 640974afc8ceb77fc209b7b851408e6574dcb2b5 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Wed, 1 May 2024 12:13:38 +0200 Subject: [PATCH] bugfix LDAP filter ldap_set_options --- phpwf/plugins/class.acl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpwf/plugins/class.acl.php b/phpwf/plugins/class.acl.php index e26022ac..b7fd4449 100644 --- a/phpwf/plugins/class.acl.php +++ b/phpwf/plugins/class.acl.php @@ -849,6 +849,8 @@ class Acl { // verbinden zum ldap server $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"); $filter = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_filter")); $bind_name = str_replace('{USER}',$username,$this->app->erp->Firmendaten("ldap_bindname"));