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: Tue, 20 May 2008 12:09:16 +0530,    group: microsoft.public.platformsdk.active.directory        back       


LookupAccountName & runas   
Hi,
    I have a program which calls LookupAccountName for a AD user in
the following format - DomainName\UserName.

LookupAccountName fails with the following error

1789 is ERROR_TRUSTED_RELATIONSHIP_FAILURE in the Windows SDK -
"The trust relationship between this workstation and the primary domain 
failed."

Now, I run the following from the command line
runas /user:domainname\username cmd.exe

It successfully opens a cmd window as the user.

After this I run my program again, the same LookupAccountName call succeeds.

Any ideas, how something like this could happen?
date: Tue, 20 May 2008 12:09:16 +0530   author:   JG

Google
 
Web ureader.com


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