[Date Prev][Date Next]
RE: (uid=*) search filter returns no entries (ITS#2522)
> -----Original Message-----
> From: Jonathan Eric Miller [mailto:firstname.lastname@example.org]
> Howard Chu wrote me and told me that this bug is a duplicate
> of ITS#2507.
> I just tested again with OpenLDAP 2.1.20 and found that the
> bug may only be
> partly fixed. For example, if I do a,
> ldapsearch '(uid=*)'
> it now works. i.e. it returns entries whereas before it didn't return
> This also works.
> ldapsearch '(uid=swilson)'
> However, this doesn't work.
> ldapsearch '(&(uid=*)(uid=swilson))'
> It doesn't return any entries. This query worked in OpenLDAP 2.1.11.
This should now work for both indexed and non-indexed attributes in CVS HEAD.
Also note that this kind of search filter is non-optimal - you're better off
and saving the redundant (uid=*) filter evaluation.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support