Last post Jan 07, 2014 12:53 PM by smirnov
Member
32 Points
203 Posts
Jan 07, 2014 12:33 PM|rspiet|LINK
How do I check the absence of an attribute with a DirectorySearcher. For instance, I want to find users who do not have an e-mail address. How would I finishe my filter string?
FilterString=(&(objectClass=user)(objectCategory=Person))?????
All-Star
35149 Points
9075 Posts
Jan 07, 2014 12:53 PM|smirnov|LINK
Try
(&(objectClass=user)(objectCategory=person)(!(mail=*)))
Member
32 Points
203 Posts
DirectorySearcher Filter Help
Jan 07, 2014 12:33 PM|rspiet|LINK
How do I check the absence of an attribute with a DirectorySearcher. For instance, I want to find users who do not have an e-mail address. How would I finishe my filter string?
FilterString=(&(objectClass=user)(objectCategory=Person))?????
All-Star
35149 Points
9075 Posts
Re: DirectorySearcher Filter Help
Jan 07, 2014 12:53 PM|smirnov|LINK
Try
(&(objectClass=user)(objectCategory=person)(!(mail=*)))