<!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">&lt;richm@netscape.net&gt;</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">&lt;ldap-interop@fini.net&gt;</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">&lt;42C5750A.4040601@netscape.net&gt;</a>
<a class="moz-txt-link-rfc2396E" href="mailto:E3F6EE46A3648FC1E5DF39B9@[0.1.0.4]">&lt;E3F6EE46A3648FC1E5DF39B9@[0.1.0.4]&gt;</a></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<pre><a class="moz-txt-link-abbreviated" href="mailto:quanah@stanford.edu">quanah@stanford.edu</a> wrote:

&gt;
&gt;
&gt; --On Friday, July 01, 2005 10:53 AM -0600 Rich Megginson 
&gt; <a class="moz-txt-link-rfc2396E" href="mailto:richm@netscape.net">&lt;richm@netscape.net&gt;</a> wrote:
&gt;
&gt;&gt; Does search using a NOT filter imply the presence of that attribute?
&gt;&gt; Specifically:
&gt;&gt;
&gt;&gt; (!(someAttr=abc))
&gt;&gt;
&gt;&gt; Should this return those entries which have the someAttr attribute
&gt;&gt; present AND whose someAttr value != abc?  Or should this return entries
&gt;&gt; which do not have the someAttr attribute?
&gt;
&gt;
&gt; This should return all entries that don't have someAttr=abc.  I.e., if 
&gt; the entry has someAttr=joe, it will be returned.  If the entry doesn't 
&gt; 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?

&gt;
&gt; For example:
&gt;
&gt; tribes:~&gt; 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?

&gt; SASL/GSSAPI authentication started
&gt; SASL username: <a class="moz-txt-link-abbreviated" href="mailto:quanah@stanford.edu">quanah@stanford.edu</a>
&gt; SASL SSF: 56
&gt; SASL installing layers
&gt; # extended LDIF
&gt; #
&gt; # LDAPv3
&gt; # base &lt;&gt; with scope sub
&gt; # filter: (!(uid=quanah))
&gt; # requesting: ALL
&gt; #
&gt;
&gt; # stanford.edu
&gt; dn: dc=stanford,dc=edu
&gt; objectClass: dcObject
&gt; objectClass: organization
&gt; o: Stanford University
&gt; dc: stanford
&gt; l: Palo Alto
&gt;
&gt; # Manager, stanford.edu
&gt; dn: cn=Manager,dc=stanford,dc=edu
&gt; objectClass: organizationalRole
&gt; cn: Manager
&gt;
&gt; # People, stanford.edu
&gt; dn: cn=People,dc=stanford,dc=edu
&gt; objectClass: top
&gt; objectClass: organizationalRole
&gt; cn: People
&gt;
&gt;
&gt; --Quanah
&gt;
&gt; -- 
&gt; Quanah Gibson-Mount
&gt; Principal Software Developer
&gt; ITSS/Shared Services
&gt; Stanford University
&gt; 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>
&gt;
&gt; "These censorship operations against schools and libraries are stronger
&gt; than ever in the present religio-political climate. They often focus on
&gt; fantasy and sf books, which foster that deadly enemy to bigotry and blind
&gt; faith, the imagination." -- Ursula K. Le Guin
&gt;
&gt;

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