Last post Mar 16, 2012 02:34 PM by bbcompent1
Mar 16, 2012 01:55 PM|BethInAK|LINK
I'm querying our rather messy active directory for valid users and my query just isnt' returning the records I want. What I am going for is (in plain ol english, well sort of):
sn = Smith AND ou!=Disabled Users AND ((company=This) or (company=that) or (company=the other thing))
Essentially all users named smith, not in disabled users who belong to these companies. My LDAP filter looks like the following and the restults include users in Disabled Users, meaning that my parenthesis are hosed. Truthfully, the syntax is killing
me. Can someone see what I've hosed up?:
Thank you in advance for any help you have to offer.
Mar 16, 2012 02:03 PM|bbcompent1|LINK
Ok, I think you might have better luck if you zero in on the specifics in your ad query. Try it this way:
Mar 16, 2012 02:06 PM|BethInAK|LINK
if you could help me get the OR on the companies, that might work!! Thanks in advance!
Mar 16, 2012 02:09 PM|bbcompent1|LINK
Ok, try this:
Mar 16, 2012 02:30 PM|BethInAK|LINK
This query returns no records in our active directory.
Mar 16, 2012 02:34 PM|bbcompent1|LINK
Ok, do the query but specify only one company. If that works, then we can zero in on how to implement the OR clause