[#6362] Group LDAP backend returns error for "Empty result"
Summary Group LDAP backend returns error for "Empty result"
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners Chuck Hagenbuch <chuck (at) horde (dot) org>
Requester asmarre (at) ull (dot) es
Created 03/03/2008 (188 days ago)
Due
Updated 03/04/2008 (187 days ago)
Assigned
Resolved 03/04/2008 (187 days ago)
Attachments group_ldap_empty_result_ok.diff Download
Milestone
Patch No

History
03/04/2008 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Assigned to Chuck Hagenbuch
Reply to this comment
Makes sense - committed, thanks.
03/03/2008 asmarre (at) ull (dot) es Comment #1
New Attachment: group_ldap_empty_result_ok.diff Download
Queue ⇒ Horde Framework Packages
Summary ⇒ Group LDAP backend returns error for "Empty result"
Type ⇒ Enhancement
Priority ⇒ 1. Low
State ⇒ New
Reply to this comment
The function getGroupMemberships of the Horde/Group/ldap.php returns 
an error where the result of a query is empty. I'm not sure if this 
behaviour is correct, I manage a LDAP where the majority of the users 
don't are members of a group (but have a primaryGroup attribute in 
their user entry).

I suggest to return array(); instead of the error.

I attach a patch for the version 1.18.2.2 of the file (I hope it will 
be ok for newer versions).