Thank you Martin.
Today I've learned about System.Director yServices as you pointed, and I
succeeded to get a list of AD objects in //domain/Users. My current code is
as following.
using System;
using System.Security ;
using System.Director yServices;
namespace users
{
public class listUsers
{
public static int Main()
{
DirectoryEntry entries =
new DirectoryEntry( "LDAP://CN=Users,DC=myd om,DC=local");
foreach(Directo ryEntry ent in entries.Childre n)
{
Console.WriteLi ne("{0} {1}", ent.Name, ent.Path);
}
return 0;
}
}
}
Above program show me a complete list of users and groups which are exist in
//mydom.local/Users. But I still haven't understood clearly. I want to
distinguish group or user object from the entries.Childre n list.
How can I do it? What the things I should learn about?
TK
"Martin c" <ma****@nospam. com> wrote in message
news:OT******** ******@TK2MSFTN GP09.phx.gbl...
the System.Director yservices namespace is the one you are after.
There is a whole sheaf od stuff on it on MSDN adn a couple of good
articles on www.4guysfromrolla.com
hope this helps
M
"TK" <tk****@nospam. emotionalbits.c om> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl... How can I show a list of OS users and groups in an ASP.NET page?
Is there MSDN or SDK articles?
please help.
TK