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

RE: (uid=*) search filter returns no entries (ITS#2522)

> -----Original Message-----
> From: Jonathan Eric Miller [mailto:jemiller@uchicago.edu]
> 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
> anything.
> 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
just using
and saving the redundant (uid=*) filter evaluation.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support