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
 

Reply via email to