Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > LDAP Query

Reply
 
 
Joe Richards [MVP]
Guest
Posts: n/a

 
      06-20-2005
For your main question, no you can not exclude specific branches in the
hierarchy when doing a subtree search. You need to either scope your queries as
single level queries or more specifically set the search bases.

If you are simply looking for a command line tool, my adfind will exclude output
from specific branches but it returns that that info in the set and simply
filters it from the output.

Now if you actually mean DomainDnsZones and ForestDnsZones, those would be
referrals to other partitions and those can be controlled by disabling referrals
on the LDAP query.



joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Ian wrote:
> Hi,
>
> I hope this is the right place to ask this. If not, my appologies.
>
> I am trying todo an LDAP lookup against a 2003 (I think) server. Now the
> server has DnsDomainForest (or something like that), which I cant connect to.
> Now the users that I am searching for are located in various OU's under the
> main DC. Is there a way that I can, with a search filter, exclude a certain
> DC from the search.
>
> For example:
> -2003.domain.com
> --OU=Users
> --OU=Groups
> --OU=Retail
> --OU=Other
> --DC=DnsDomainForest
>
> I connect to that and want to search through all of 2003.domain.com but
> exlude DC=DnsDomainForest from the search because otherwise it errors and my
> search comes back with an error.
>
> Thanks alot,
> Ian

 
Reply With Quote
 
 
 
 
Ian
Guest
Posts: n/a

 
      06-20-2005
Hi,

I hope this is the right place to ask this. If not, my appologies.

I am trying todo an LDAP lookup against a 2003 (I think) server. Now the
server has DnsDomainForest (or something like that), which I cant connect to.
Now the users that I am searching for are located in various OU's under the
main DC. Is there a way that I can, with a search filter, exclude a certain
DC from the search.

For example:
-2003.domain.com
--OU=Users
--OU=Groups
--OU=Retail
--OU=Other
--DC=DnsDomainForest

I connect to that and want to search through all of 2003.domain.com but
exlude DC=DnsDomainForest from the search because otherwise it errors and my
search comes back with an error.

Thanks alot,
Ian
 
Reply With Quote
 
Al Mulnick
Guest
Posts: n/a

 
      06-20-2005
Can you post the query you're using?
It sounds like you want to make a query for certain objects, but not return
the DNS entries in that query. Seeing the query would help to understand how
to better help. Include a description of exactly what you want to find and
the scope (sounds like the scope is the entire domain though).

Al


"Ian" <> wrote in message
news:22D1E8B5-2A25-442E-9EC3-...
> Hi,
>
> I hope this is the right place to ask this. If not, my appologies.
>
> I am trying todo an LDAP lookup against a 2003 (I think) server. Now the
> server has DnsDomainForest (or something like that), which I cant connect
> to.
> Now the users that I am searching for are located in various OU's under
> the
> main DC. Is there a way that I can, with a search filter, exclude a
> certain
> DC from the search.
>
> For example:
> -2003.domain.com
> --OU=Users
> --OU=Groups
> --OU=Retail
> --OU=Other
> --DC=DnsDomainForest
>
> I connect to that and want to search through all of 2003.domain.com but
> exlude DC=DnsDomainForest from the search because otherwise it errors and
> my
> search comes back with an error.
>
> Thanks alot,
> Ian



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP Query scuba19 Windows Server 1 06-18-2009 03:41 PM
How can I query LDAP in WLM? Michael Gao Windows Live Mail 2 04-28-2009 11:12 PM
ldap query ned Internet Explorer 0 11-01-2007 10:25 AM
LDAP Query Help K Windows Server 0 10-03-2006 10:36 AM
LDAP Query Andy Windows Server 0 07-26-2004 01:28 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59