6.0.0-RC7
6/22/26

[#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 2/27/05 (7785 days ago)
Due
Updated 3/3/09 (6320 days ago)
Assigned 3/5/05 (7779 days ago)
Resolved 3/6/05 (7778 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
343 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.
2510 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.
2111 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
483 Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Please define "does not work"
212 Jan Schneider Assigned to Horde DevelopersHorde Developers
 
235 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