From c4de2b5e888cad4c9077633b81c129380c7b85a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 17 Apr 2018 13:55:11 +0200 Subject: [PATCH] :sparkles: feat(ldap) Add base scope support to ldap::search Not directly related to #5799 but it was needed for debugging issue #5799 --- include/class_ldap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 0bd7d4b8b..bf5db49ea 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -256,7 +256,8 @@ class LDAP $this->clearResult($srp); switch (strtolower($scope)) { case 'base': - throw new FusionDirectoryException('not implemented'); + $this->sr[$srp] = @ldap_read($this->cid, $this->basedn, $filter, $attrs); + break; case 'one': $this->sr[$srp] = @ldap_list($this->cid, $this->basedn, $filter, $attrs); break; -- GitLab