How to get all NT users identity

  • Thread starter Thread starter Sharon
  • Start date Start date
S

Sharon

Hi.
I need to implement a web based file permission dialog.
For this i need to get the identities of all NT users.
I can get the current identity, but have no idea of how to get all
identities.
Thanks.
 
Hi Sharon,

You could use DirectorySearcher with the "WinNT:" protocol to fetch all
usernames for the specific machine.
look it up under the DirectoryServices namespace and talk to me for further
help.

Picho.
 
Hi Picho.
I never worked with DirectoryServices.
Is it a part of win XP? or do i need to install it?
Thanks.
 
Is there a way to query the domain controller?

Picho said:
Hi Sharon,

You could use DirectorySearcher with the "WinNT:" protocol to fetch all
usernames for the specific machine.
look it up under the DirectoryServices namespace and talk to me for further
help.

Picho.
 
Sharon please be specific.

there is a big difference in querying a local machine (WinNT:// protocol) or
a domain controller/active directory (LDAP:// protocol).
please tell me what is your main goal and the context of the problem.

Picho.
 
Hi Picho.
I it's more clear to me now.
What i need to do is query active directory, something like:
DirectoryEntry de= new DirectoryEntry(LDAP://serverAddress)
Thanks lots for your help.
Sharon.
 
Back
Top