Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Exclude OUs using LDAP Query

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-03-2010
WildPacket
 
Posts: n/a
Exclude OUs using LDAP Query

Hello ...

I need to import all ACTIVE users profiles in MOSS 2007 from AD using a LDAP
Query and I want to exclude 2 OUs ...which have Resouce Accounts.

I have been looking around and noticed that I cannot exclude OUs?????

Anybody done this successfully ....???

Advise Please.

Thank you
Reply With Quote
  #2  
Old 06-03-2010
Joe Kaplan
 
Posts: n/a
Re: +++++++ Exclude OUs using LDAP Query ++++++++

Right, LDAP does not support that. You must either choose the query scope to
include only the containers you want (which may be impossible given the
hierarchy) or you must filter based on an attribute value stored in the
individual object. If the accounts you want to exclude have non-expiring
passwords and the other accounts don't, then you could filter on that flag
in userAccountControl. Alternately, if all the description attributes of the
resource accounts said something like "resource account" then you could
filter on that.

You can do this by query scope by breaking the query into multiple queries.

Hope that makes sense.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"WildPacket" <WildPacket@discussions.microsoft.com> wrote in message
news:53C1DB04-3CBF-40B3-8EEC-293C3A4CD593@microsoft.com...
> Hello ...
>
> I need to import all ACTIVE users profiles in MOSS 2007 from AD using a
> LDAP
> Query and I want to exclude 2 OUs ...which have Resouce Accounts.
>
> I have been looking around and noticed that I cannot exclude OUs?????
>
> Anybody done this successfully ....???
>
> Advise Please.
>
> Thank you


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Exclude OUs using LDAP Query"
Thread Thread Starter Forum Replies Last Post
MySQL query select all columns but exclude specific. RSeven Software Development 3 29-07-2009 10:26 PM
LDAP query to speficied LDAP server on TCP port 389 failed Shash Windows Server Help 1 29-05-2009 10:46 PM
LDAP query rob davis Active Directory 3 11-12-2008 02:09 AM
LDAP query can it be done ? zscw1 Active Directory 4 13-11-2008 10:08 AM
LDAP Query Anzelem Window 2000 Help 3 07-02-2008 10:23 PM


All times are GMT +5.5. The time now is 10:24 PM.