Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Domain user login with other domain
Message
From
09/11/2015 14:43:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01627267
Message ID:
01627271
Views:
56
>>I am using a code to login with a domain user account. That works perfectly fine when the user is logged on the computer with the primary domain:
>>lcCurrentUserDomain = GETENV("UserDomain")
>>
>>However some clients log onto Windows using a secondary domain (something to do with the exchange server), so the program cannot authenticate the user when I specify lcCurrentUserDomain. The authentication must be done on another domain.
>>
>>I wonder if there is a way to get a list of domains that the program could go through?
>
>Not sure:
>
>oUserInfo = CREATEOBJECT("WScript.network")
>? oUserInfo.ComputerName
>? oUserInfo.UserDomain
>? oUserInfo.UserName
>
I cannot test it on my machine, but I believe that would return the same information as GetEnv("UserDomain").
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform