Re: ADSI Query to filter out machine accounts in the domain

From: Prasad Karunakaran (prasadkkn_at_hotmail.com)
Date: 03/11/04


Date: 11 Mar 2004 13:50:39 -0800

Willy,
  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

  SearchResultCollection res = src.FindAll()

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 ?. Basically I
have to support enumerating NT groups (expect machine accounts) in
both NT Domain and AD domain. As you know WinNT provider is supported
in AD for backward compatibility.

Thanks for your help.

regards,

Prasad



Relevant Pages

  • Re: AD Login failure when using ActiveDirectoryMembershipProvider
    ... The DirectoryEntry code just uses the current security ... the assembly for the provider and looking at the source code. ... I agree that Windows security can be painful. ... Joe Kaplan-MS MVP Directory Services Programming ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cannot start services
    ... | Computer: COUNTYG ... see Help and Support Center at ... | A provider, PerfProv, has been registered in the WMI namespace, ... | will be run using the LocalSystem account. ...
    (microsoft.public.windows.server.general)
  • Re: How to get tables/views/columns in ODBC (& OleDb)
    ... Understanding the Common Schema Collections ... (OLEDB/ODBC/ Microsoft .NET Framework Data Provider). ... and filter the outputs by ... Microsoft Online Community Support ...
    (microsoft.public.data.odbc)
  • RE: Server Performance Report: "No data is available for this sect
    ... There is no data in the entire report. ... This provider will be run using the LocalSystem ... see Help and Support Center at ... >> performance data buffer. ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS Restarting!! DS Promotion? and Other such problems
    ... I have come inthis morning to find that Our SBS server is powered down.... ... see Help and Support Center at ... This provider will be run using the LocalSystem ... SBS 2003 - Admin ...
    (microsoft.public.windows.server.sbs)