|
| |||||||||
| Tags: exclude, ldap, ous, query |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |