Re: ADSI Query to filter out machine accounts in the domain
From: Prasad Karunakaran (prasadkkn_at_hotmail.com)
Date: 03/11/04
- Next message: raykos: "RE: Newbie help with .config"
- Previous message: Louis Marascio: "Re: God why can't anyone help me???!!!"
- In reply to: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: raykos: "RE: Newbie help with .config"
- Previous message: Louis Marascio: "Re: God why can't anyone help me???!!!"
- In reply to: Willy Denoyette [MVP]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|