Re: ADSI Query to filter out machine accounts in the domain
From: Prasad Karunakaran (prasadkkn_at_hotmail.com)
Date: 03/12/04
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: [Feature Request] Automatically Add using"
- Previous message: J.Marsch: "Re: Help with using/converting MFC to C#"
- In reply to: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Date: 12 Mar 2004 07:32:07 -0800
Marc,
Thanks for your reply. In that case can I use LDAP Provider instead
of WinNT provider to enumerate group objects, filter out machine
accounts for both a NT domain and AD domain. To be specific does LDAP
Provider support NT domains?
regards,
Prasad
Marc Scheuner [MVP ADSI] <m.scheuner@inova.SPAMBEGONE.ch> wrote in message news:<g9s2505cebf3spbio94nsf17081b6sdhon@4ax.com>...
> > I tried the code you proposed. The code works great with AD. I use
> >the LDAP provider ("LDAP://DomainName") in the domain path when I
> >create the DirectoryEntry() object.
> >
> >I tried using the same code for a NT domain. I changed the provider to
> >WinNT ("WinNT://DomainName") in the domain path and use a domain user
> >account while creating DirectoryEntry() object
> >
> >I get an expection in the following line
> >The exception message : "The provider does not support searching and
> >cannot search WinNT://corp.aspentech.com"
> >Error Code : 0x80131515
> >
> >How should I change the code to work for a NT domain ?.
>
> In short - you can't.
>
> From the MSDN docs:
>
> "Use a DirectorySearcher to search and perform queries against an
> Active Directory hierarchy using the Lightweight Directory Access
> Protocol (LDAP). LDAP is the only system-supplied Active Directory
> Service Interfaces (ADSI) provider that supports directory searching."
>
> DirectorySearcher does *NOT* support WinNT.
>
> Marc
> ================================================================
> Marc Scheuner May The Source Be With You!
> Bern, Switzerland m.scheuner(at)inova.ch
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: [Feature Request] Automatically Add using"
- Previous message: J.Marsch: "Re: Help with using/converting MFC to C#"
- In reply to: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|