Re: How to use GetObject in CShaprt
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 11/22/04
- Next message: Willy Denoyette [MVP]: "Re: Late Binding Outlook"
- Previous message: bismarkjoe: "DataGrid Column Resizing Issues"
- In reply to: ad: "Re: How to use GetObject in CShaprt"
- Next in thread: ad: "Re: How to use GetObject in CShaprt"
- Reply: ad: "Re: How to use GetObject in CShaprt"
- Messages sorted by: [ date ] [ thread ]
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.
>> >>
>> >>
>> >
>> >
>>
>>
>
>
- Next message: Willy Denoyette [MVP]: "Re: Late Binding Outlook"
- Previous message: bismarkjoe: "DataGrid Column Resizing Issues"
- In reply to: ad: "Re: How to use GetObject in CShaprt"
- Next in thread: ad: "Re: How to use GetObject in CShaprt"
- Reply: ad: "Re: How to use GetObject in CShaprt"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|