Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for user name in Novell
Message
From
03/10/1997 08:46:20
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
02/10/1997 20:42:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00052969
Message ID:
00053031
Views:
30
>I need to access the username or logon ID
>from vfp50? Can vfp50 perform logic
>on the username comming from Novell?


Robert,

Our Novell Administrator inserted this code into the login script.

DOS SET long_name = %login_name%

I'm not sure about the exact syntax but this is more or less it. What this does is sets each user's
login name to a environmental variable of your choice, such as "long_name" in this example.

So whoever logs into this machine, his "long_name" is set to his login name.

We then use the VFP GETENV() function to retrieve the information like this.

l_userid = GETENV("long_name")

Another solution is to purchase a third party product like GPLIB that has these functions
build in and don't require anything placed into the Novell login script.

Jerry Tovar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform