[Date Prev][Date Next] [Chronological] [Thread] [Top]

Should this work: (|(sn=hughes)) ?



Maybe I'm misinterpreting things, but I'd expect:

	(sn=hughes)
	(&(sn=hughes))
	(|(sn=hughes))

to all give the same results.

But they don't, the "or" version returns no data,
and doesn't seem to do any search at all.

Running with -d36 I see:

==> bdb_bind: dn: cn=manager,dc=calvaedi,dc=com
entry_rdwr_rlock: ID: 2
entry_rdwr_runlock: ID: 2
send_ldap_result: err=0 matched="" text=""
ber_flush: 14 bytes to sd 10
connection_get(10)
SRCH "dc=contacts,dc=calvaedi,dc=com" 2 0    0 0 0
begin get_filter
OR
begin get_filter_list
begin get_filter
EQUALITY
end get_filter 0
end get_filter_list
end get_filter 0
    filter: (|(sn=hughes))
    attrs:
entry_rdwr_rlock: ID: 3
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        DN SUBTREE
<= bdb_filter_candidates: id=3 first=3 last=5
=> bdb_filter_candidates
        OR
=> bdb_list_candidates 0xa1
=> bdb_filter_candidates
        EQUALITY
<= bdb_equality_candidates: index_param failed (18)
<= bdb_filter_candidates: id=-1 first=1 last=5
<= bdb_list_candidates: id=0 first=0 last=0
<= bdb_filter_candidates: id=0 first=0 last=0
<= bdb_list_candidates: id=0 first=3 last=0
<= bdb_filter_candidates: id=0 first=3 last=0
entry_rdwr_runlock: ID: 3
ber_flush: 14 bytes to sd 10