[Fwd: Re: [LDAP-interop] LDAPv3 NOT search filter behavior]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original Message --------
Subject: Re: [LDAP-interop] LDAPv3 NOT search filter behavior
Resent-Date: Fri, 1 Jul 2005 17:33:29 +0000 (GMT)
Resent-From: richm@xxxxxxxxxxxxxxxxxx
Date: Fri, 01 Jul 2005 12:33:26 -0500
From: Benjamin Lewis <bhlewis@xxxxxxxxxx>
To: richm@xxxxxxxxxxxxxxxxxx, OpenLDAP interoperability list <ldap-interop@xxxxxxxx>
CC: quanah@xxxxxxxxxxxx


On July 1 2005, Rich Megginson wrote:

> What happens if you specify the uid attribute to be returned?

The uid attribute is returned for those entries that have one.

> 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?

No.  You might use something like '(&(uid=*)(!(uid=quanah)))' to
return only the entries that have a uid attribute.  It would probably
be better to use objectClass to restrict the search to the type of
objects you're looking for.  Perhaps something like
'(&(objectclass=posixAccount)(!(uid=quanah)))'.

-Ben

-- 
Benjamin Lewis <bhlewis@xxxxxxxxxx>
Security Analyst, Identity and Access Management
IT Security and Privacy
Purdue University


--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux