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
Asked
Active
Viewed 4.6k times
1 Answers
58
- 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

James Daily
- 587
- 6
- 21

Terry Gardner
- 10,957
- 2
- 28
- 38
-
Ok, thanks. In my case I think it's the third statement. But anyway marked as answer. – Johnny_D Mar 30 '12 at 11:58
-
1Dead links on this answer from 2012. – KeithL Sep 15 '15 at 17:51