sny23vpb
asked on
LDAP Query ; Exchange 2007
I am trying to take the following query which is working in an old vb6 application:
"Select Adspath from 'LDAP://domain/DC=domain,D C=com' where samAccountName='ADGROUP1'"
and get it to take into account multiple AD Group entries like this:
" Select Adspath from 'LDAP://domain/DC=domain,D C=com' where samAccountName='ADGROUP1' or samAccountName='ADGROUP2'"
I've tried multiple syntax changes using what I've seen to be LDAP query methodology; but have been unsuccessful. Any help would be greatly appreciated.
Thank you
"Select Adspath from 'LDAP://domain/DC=domain,D
and get it to take into account multiple AD Group entries like this:
" Select Adspath from 'LDAP://domain/DC=domain,D
I've tried multiple syntax changes using what I've seen to be LDAP query methodology; but have been unsuccessful. Any help would be greatly appreciated.
Thank you
ASKER
Would that look like :
Select Adspath from 'LDAP://domain/DC=domain,D C=com' where (|(sAMAccountName=ADGroup1 )(sAMAccou ntName=ADG roup2))
I tried that syntax with no luck.
Thank you for your help; I'm not accustomed to writing LDAP queries;
Select Adspath from 'LDAP://domain/DC=domain,D
I tried that syntax with no luck.
Thank you for your help; I'm not accustomed to writing LDAP queries;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hey,
You might have more luck with a traditional LDAP filter:
(|(sAMAccountName=ADGroup1
Where | represents the Or.
Or is that something you've already tried?
Chris