From 18f9658c9f0eeb8866829a69b29e562ff6570b44 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 26 Oct 2009 15:54:31 +0000 Subject: [PATCH] ldapsearch: always deref --- lam/lib/lists.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 9c5dc608..e31679bf 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -828,7 +828,7 @@ class lamList { $module_filter = get_ldap_filter($this->type); // basic filter is provided by modules $filter = "(&" . $module_filter . ")"; $attrs = $this->attrArray; - $sr = @ldap_search($_SESSION["ldap"]->server(), escapeDN($this->suffix), $filter, $attrs); + $sr = @ldap_search($_SESSION["ldap"]->server(), escapeDN($this->suffix), $filter, $attrs, 0, 0, 0, LDAP_DEREF_ALWAYS); if (ldap_errno($_SESSION["ldap"]->server()) == 4) { StatusMessage("WARN", _("LDAP sizelimit exceeded, not all entries are shown."), _("See README.openldap.txt to solve this problem.")); }