LDAP Query for values

Giganews Newsgroups
Subject: LDAP Query for <not set> values
Posted by:  cquackenbush (cquackenbush.39ok…@DoNotSpam.com)
Date: Tue, 20 May 2008

I'm sure this has been hashed and rehashed a million times, but perhaps
some kind soul could assist me.

I currently have an LDAP query that will return the users in my AD who
have the VPN Dial-in value set to Allow.


What I would like to know, is how I can also find the users who are set
to VPN Dial-in by Remote Access Policy. Apparently this value for
msNPAllowDialin is represented as <not set>. I can search for TRUE and
FALSE, but can't figure out how to search for <not set>.

I had the brilliant idea of doing a
"(!msNPAllowDialin=TRUE)(!msNPAllowDialin=FALSE)" which should leave
just the unset ones, but only the first search is occuring returning
all the "not TRUE" or "not FALSE" values depending on how I order the

Any suggestions or pointers would be greatly appreciated!

cquackenbush's Profile:http://forums.techarena.in/member.php?userid=49840
View this thread:http://forums.techarena.in/showthread.php?t=971387