[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

LDAP Query ; Exchange 2007

Posted on 2008-09-30
3
Medium Priority
?
928 Views
Last Modified: 2012-05-05
I am trying to take the following query which is working  in an old vb6 application:

"Select Adspath from 'LDAP://domain/DC=domain,DC=com' where samAccountName='ADGROUP1'"

and get it to take into account multiple AD Group entries like this:

" Select Adspath from 'LDAP://domain/DC=domain,DC=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
0
Comment
Question by:sny23vpb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 71

Expert Comment

by:Chris Dent
ID: 22613305

Hey,

You might have more luck with a traditional LDAP filter:

(|(sAMAccountName=ADGroup1)(sAMAccountName=ADGroup2))

Where | represents the Or.

Or is that something you've already tried?

Chris
0
 

Author Comment

by:sny23vpb
ID: 22641727
Would that look like  :

 Select Adspath from 'LDAP://domain/DC=domain,DC=com' where (|(sAMAccountName=ADGroup1)(sAMAccountName=ADGroup2))

I tried that syntax with no luck.
Thank you for your help; I'm not accustomed to writing LDAP queries;
0
 

Accepted Solution

by:
sny23vpb earned 0 total points
ID: 22744315
I ended up just making two passes to the ldap for each condition in the 'or' statement. Thanks for everyones help.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New style of hardware planning for Microsoft Exchange server.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question