6.0.0-beta1
7/24/25

[#1448] complex ldap filter does not work
Summary complex ldap filter does not work
Queue Turba
Queue Version 2.0.1
Type Bug
State Not A Bug
Priority 1. Low
Owners Horde Developers (at)
Requester max-4004 (at) terragate (dot) net
Created 02/27/2005 (7452 days ago)
Due
Updated 03/03/2009 (5987 days ago)
Assigned 03/05/2005 (7446 days ago)
Resolved 03/06/2005 (7445 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/03/2009 03:56:34 PM jokot3 (at) gmail (dot) com Comment #5 Reply to this comment
Hello,



Please reopen this ticket as a bug because something like

objectClass=top)(objectClass=person)(objectClass=organizationalPerson

(which works) is really not a filter (as described by RFC2254).



By the way, someone may say "use objectClass array instead". The 
problem is that this array is ORed by the function 
_buildObjectclassFilter (in lib/Driver/ldap.php) which is really 
counter-intuitive.
03/06/2005 10:29:25 PM Chuck Hagenbuch Comment #4
State ⇒ Not A Bug
Reply to this comment
You need to remove the outer set of parentheses from your filter - 
it'll work fine then. There was an error when the filter was bad that 
we weren't handling; it's fixed now. So with your filter unchanged 
you'll see an error message now.
03/06/2005 11:09:21 AM max-4004 (at) terragate (dot) net Comment #3 Reply to this comment
With filter "cn=*" I get normal results

with filter (|(cn=*)(mail=*)) I get just one result with name "AA" and 
email "A"

with filter xyz (nosens) I get the same "A" result

The "A" result does not exist in LDAP and cannot be edit or viewed

I am using openldap 2.2.23 maybe the ldapd is the problem, I dont know.

I change my ldap schema, so I dont need the complex filter anymore.



THX for great work and support
03/05/2005 03:34:48 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Please define "does not work"
02/28/2005 02:40:21 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
 
02/27/2005 05:23:23 PM max-4004 (at) terragate (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ complex ldap filter does not work
Queue ⇒ Turba
Reply to this comment
a ldap filter like " 'filter' => '(|(cn=*)(mail=*))' " does not work.

Saved Queries