-------- Original Message --------
Subject: Re: [LDAP-interop] LDAPv3 NOT search filter behavior
Resent-Date: Fri, 1 Jul 2005 17:10:21 +0000 (GMT)
Resent-From: richm(a)stanfordalumni.org
Date: Fri, 01 Jul 2005 11:10:01 -0600
From: Rich Megginson <richm(a)netscape.net>
Reply-To: richm(a)stanfordalumni.org
To: quanah(a)stanford.edu
CC: richm(a)stanfordalumni.org, OpenLDAP interoperability list
<ldap-interop(a)fini.net>
References: <42C5750A.4040601(a)netscape.net>
<E3F6EE46A3648FC1E5DF39B9(a)[0.1.0.4]>
quanah(a)stanford.edu wrote:
--On Friday, July 01, 2005 10:53 AM -0600 Rich Megginson
<richm(a)netscape.net> wrote:
> Does search using a NOT filter imply the presence of that attribute?
> Specifically:
>
> (!(someAttr=abc))
>
> Should this return those entries which have the someAttr attribute
> present AND whose someAttr value != abc? Or should this return entries
> which do not have the someAttr attribute?
This should return all entries that don't have someAttr=abc. I.e., if
the entry has someAttr=joe, it will be returned. If the entry doesn't
have any occurrence of someAttr, it will be returned.
What happens if you specify the uid attribute to be returned? Is this
specified in X.500? If so, where?
For example:
tribes:~> ldapsearch "(!(uid=quanah))" | more
e.g. what happens if you do
ldapsearch "(!(uid=quanah))" uid
? Does it return only those entries that have a uid attribute? Does
OpenLDAP omit entries from the search results that match the search
filter but do not contain the attribute listed in the attribute list in
the search request?
SASL/GSSAPI authentication started
SASL username: quanah(a)stanford.edu
SASL SSF: 56
SASL installing layers
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (!(uid=quanah))
# requesting: ALL
#
#
stanford.edu
dn: dc=stanford,dc=edu
objectClass: dcObject
objectClass: organization
o: Stanford University
dc: stanford
l: Palo Alto
# Manager,
stanford.edu
dn: cn=Manager,dc=stanford,dc=edu
objectClass: organizationalRole
cn: Manager
# People,
stanford.edu
dn: cn=People,dc=stanford,dc=edu
objectClass: top
objectClass: organizationalRole
cn: People
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key:
http://www.stanford.edu/~quanah/pgp.html
"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin