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

Re: (ITS#4521) filtered search problem

On Thu, 2006-05-04 at 23:22 +0000, caiqian@gmail.com wrote:
> Full_Name: Qian Cai
> Version: 2.2.26-5

This version is obsolete.  Issues with 2.2 will not be considered.

> OS: Debian
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> Suppose there is an entry in database,
> dn: o=new,dc=debian,dc=org
> objectClass: organization
> o: new
> ldapsearch -x -b "dc=debian,dc=org" '(o=ne*)'
> ldapsearch -x -b "dc=debian,dc=org" '(o=n*)'
> will work. However,
> ldapsearch -x -b "dc=debian,dc=org" '(objectClass=org*)'
> does NOT work. it will never return any item. I suppose that is a problem
> according to RFC 2254.

This filter is invalid, as there's no SUBSTR rule for objectClass (by
design), thus evaluating to undefined.  That's why this search does not
return anything: an undefined filter never matches.  This behavior is
consistent with current specs.  This ITS will be closed.


Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it