<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
-------- Original Message --------
<table border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
      <td>Re: [LDAP-interop] LDAPv3 NOT search filter behavior</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Resent-Date: </th>
      <td>Fri, 1 Jul 2005 17:10:21 +0000 (GMT)</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Resent-From: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:richm@stanfordalumni.org">richm@stanfordalumni.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Date: </th>
      <td>Fri, 01 Jul 2005 11:10:01 -0600</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">From: </th>
      <td>Rich Megginson <a class="moz-txt-link-rfc2396E" href="mailto:richm@netscape.net"><richm@netscape.net></a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Reply-To: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:richm@stanfordalumni.org">richm@stanfordalumni.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">To: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:quanah@stanford.edu">quanah@stanford.edu</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">CC: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:richm@stanfordalumni.org">richm@stanfordalumni.org</a>, OpenLDAP interoperability list
<a class="moz-txt-link-rfc2396E" href="mailto:ldap-interop@fini.net"><ldap-interop@fini.net></a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">References: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:42C5750A.4040601@netscape.net"><42C5750A.4040601@netscape.net></a>
<a class="moz-txt-link-rfc2396E" href="mailto:E3F6EE46A3648FC1E5DF39B9@[0.1.0.4]"><E3F6EE46A3648FC1E5DF39B9@[0.1.0.4]></a></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<pre><a class="moz-txt-link-abbreviated" href="mailto:quanah@stanford.edu">quanah@stanford.edu</a> wrote:

>
>
> --On Friday, July 01, 2005 10:53 AM -0600 Rich Megginson 
> <a class="moz-txt-link-rfc2396E" href="mailto:richm@netscape.net"><richm@netscape.net></a> 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: <a class="moz-txt-link-abbreviated" href="mailto:quanah@stanford.edu">quanah@stanford.edu</a>
> 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: <a class="moz-txt-link-freetext" href="http://www.stanford.edu/~quanah/pgp.html">http://www.stanford.edu/~quanah/pgp.html</a>
>
> "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
>
>

</pre>
</body>
</html>