Re: ADSI Query to filter out machine accounts in the domain
From: Marc Scheuner [MVP ADSI] (m.scheuner_at_inova.SPAMBEGONE.ch)
Date: 03/12/04
- Next message: Marc Scheuner [MVP ADSI]: "Re: microsoft c# vs Borland c# builder"
- Previous message: William Stacey [MVP]: "Re: MQ Series and C#"
- In reply to: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 09:14:32 +0100
> 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: Marc Scheuner [MVP ADSI]: "Re: microsoft c# vs Borland c# builder"
- Previous message: William Stacey [MVP]: "Re: MQ Series and C#"
- In reply to: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|