What's the query for? Can you not query on all objects then export to excel or 
word and look for the spaces? Crude but it should work.

Mark

-----Original Message-----
From: Sitton Glen E <[EMAIL PROTECTED]>
Date: Tue, 7 Feb 2006 11:16:53 
To:[email protected]
Subject: [ActiveDir] DSQUERY filter for space character only

I need to run an obscure DSQUERY with a filter that finds displayNames with a 
value of a single space character.  I'm stumped.  I've tried every escape 
character possibility that I'm aware of.  I know how to find null values, but 
can't seem to query on a space character alone.  It hoses the ldap syntax. 
 
When ADUC builds the ldap query itself, it fails: 
 
    (&(objectCategory=user)(displayName= )) 
 
    The query filter ... is not a valid query string. 
 
I've tried: 
    " " 
    ' ' 
    %20 
    + 
 and escaping it with a \ or a ^ 
 
Any ideas? 
 
Thanks in advance, 
- Glen 
 
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to