Re: How to use GetObject in CShaprt

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 11/22/04


Date: Mon, 22 Nov 2004 20:00:27 +0100

Great.
In that case you should use "LDAP://.." in you AD path, there are only a few
cases where you need WinNT as protocol provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:OZhHTYJ0EHA.2200@TK2MSFTNGP09.phx.gbl...
> Thank,
> I am running windows 2003 domain.
> Your example link is valueable. I am studying them now!
>
>
> "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> 撰寫於郵件新聞
> :uZ#74UJ0EHA.1452@TK2MSFTNGP11.phx.gbl...
>> Sorry,
>>
>>
> http://msdn.microsoft.com/library/en-us/sds/sds/quick_list_for_c__code_examples.asp?
>>
>> You seem to running an NT4 domain, but I told you, most of the samples
>> are
>> for W2K domains, NT4 has nothing to do with AD the NT4 provider has only
>> supports a subset of ADSI.
>>
>> Willy.
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:eYdNQvI0EHA.3120@TK2MSFTNGP12.phx.gbl...
>> > Thank,
>> > But the two links you mentioned are the same.
>> >
>> > I have used the codes below to insert all groups in my server into a
>> > DroupDownList,
>> > But how can I list the users in a specified group?
>> >
>> >
>> >
>>
>> --------------------------------------------------------------------------
> --
>> > -------------------------------------------
>> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> > if (!this.IsPostBack)
>> > {
>> > foreach(System.DirectoryServices.DirectoryEntry child in
>> > DirectoryEntry1.Children)
>> > {
>> >
>> > switch (child.SchemaClassName)
>> > {
>> > case "Group" :
>> > DropDownList1.Items.Add(child.Name);
>> > break;
>> > }
>> > }//foreach
>> > }
>> >
>> >
>> >
>> >
>> > I have use the ADSI
>> > "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> 撰寫於郵件新聞
>> > :uSfZsWI0EHA.2804@TK2MSFTNGP15.phx.gbl...
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:O7TGozH0EHA.1188@tk2msftngp13.phx.gbl...
>> >> >I have read the help in VS.net, but the document is few.
>> >> > Are there any documents about DirectoryEntry and
>> >> > DirectorySearcher ?
>> >> > I want to use ADSI to manage the users in my domain.
>> >> >
>> >> >
>> >>
>> >> What domain are you running? If it's an NT4 domain, it's not worth the
>> >> trouble to learn all this.
>> >> If it's a W2K or higher domain, just check this:
>> >>
>> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/active_directory_service_interfaces_adsi.asp
>> >>
>> >> and the samples:
>> >>
>> >>
>> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/active_directory_service_interfaces_adsi.asp
>> >>
>> >> But before you dive into this stuff make sure you have a basic
>> > understanding
>> >> of directory services and ADSI.
>> >>
>> >> Willy.
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Relevant Pages

  • Group Policy
    ... I am running Windows XP professional and am attempting to ... configure local group policies as we have an NT4 domain ... retrieve IP settings from an NT4 DHCP server and the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: I need to know how to test to see if a string value in the DOMAIN/somevalue format is either a N
    ... you can do a lookup via LDAP to determine this using ... you might use S.DS and the WinNT ... provider to look up a local machine or NT4 domain or group. ...
    (microsoft.public.dotnet.security)
  • NT4 Domain in a existing Win2k Forest
    ... I would like to know if its the following scenario is possible, ... I have a NT4 Domain, called "Winnt" and the domain is Auth.com ... I know i can have a new domain tree or child domains to the Forest ...
    (microsoft.public.windows.server.migration)