I have a problem with adding filter for attribute, which exist not in all members of organization unit. I set filter like this^ (status=Active) But this property doesn't exist in half of members and server returns "unwilling to execute 53 error". I wonder how should I rewrite this filter query to make it work only for objects with this attribute? Thanks
1 Answer
- To return entries that contain a populated
status
attribute, use apresent
filter, for example,(status=*)
. - To return entries that do not contain a
status
attribute, negate the present filter:(!(status=*))
. - If the server is unwilling to execute, check that the
status
attribute is indexed forequality
andpresence
. If do not have access to this information, check with the LDAP administrators in the appropriate organization.
see also
- Microsoft: Search Filter Syntax (Active Directory)
- Atlassian: How to write LDAP search filters
- IBM Domino 8.5 / 8.5.1: Using search filters with ldapsearch
- Oracle: Sun Java System Directory Server Enterprise Edition 6.0 Reference - Searching the Directory
- Red Hat: Directory Server 10 LDAP Search Filters
-
Ok, thanks. In my case I think it's the third statement. But anyway marked as answer.– Johnny_DMar 30, 2012 at 11:58
-
1