Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 9 Sep 2005 03:28:31 -0700,    group: microsoft.public.platformsdk.adsi        back       


wunderlinr@gmx.ch   
Hi,

I've maid a program with Delphi 2005 to read out every user of a
domain.
Now I want to read out the SID.

I lookup the SID of the user with the function LookupAccountName().
This work fine, but there is a problem. If there is an local user which
have the same name as an domain user (like Administrator) I receive the
SID of the local user.

I though I can find a solution, when call the function
LookupAccountName() with the domain controller name as parameter.
But how do I get the domain-controller name?

thank,
date: 9 Sep 2005 03:28:31 -0700   author:   Robin

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us