Computing.Net > Forums > Office Software > How to query multiple OUs (LDAP)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to query multiple OUs (LDAP)

Reply to Message Icon

Name: MrBedo
Date: June 20, 2008 at 03:34:39 Pacific
OS: XP
CPU/Ram: 2gb
Product: Dell
Comment:

At the moment our Active Directory is structured in such a way that an LDAP query from Outlook returns every user in the domain. I need to exclude users with disabled accounts however.

Our AD hierachy is like this, we have one domain (ourcomapny.internal) and then five OUs representing each of our different sites (Leeds, London, Manchester etc). These five OUs contain all our users accounts. Also directly under the domain we have an OU specifically for disabled accounts (for reasons I won't bore you with, we cannot delete old user accounts).

At the moment in Outlook we use the following LDAP 'Search Base' string: dc=ourcompany,DC=internal

This returns all the users. Without moving all the site OUs into a single OU and then specifiying that OU in the LDAP string, is there a way to exclude the disabled accounts OU from the results ?

We can't use multiple address books (I know this would be an easy way around it).

Unfortunately we don't use Exchange. Our company in there infinite wisdom went for a cheaper competitor in the form of Ipswitch Imail......

many thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: June 20, 2008 at 14:52:17 Pacific
Reply:

Um...maybe remove the email address from the disabled user accounts? Don't know..just guessing, as I'm not real familiar with LDAP.

Life's more painless for the brainless.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: How to query multiple OUs (LDAP)

how to copy multiple non-adj cells www.computing.net/answers/office/how-to-copy-multiple-nonadj-cells/8175.html

How to count multiple values www.computing.net/answers/office/how-to-count-multiple-values/9382.html

How to formatting multiple excel files?? www.computing.net/answers/office/how-to-formatting-multiple-excel-files/9653.html