Get current username on a Novell Netware network - forms app

How do you get the current logged in user on a pc that is in a Novell Netware network?

For Active Directory  I would just use:

= WindowsIdentity.GetCurrent().Name;

Does this work with Novell Netware?


LVL 1
craigdevAsked:
Who is Participating?
 
PaulHewsCommented:
Try retrieving the NWUSERNAME environment variable :
string UserName = System.Environment.GetEnvironmentVariable("NWUSERNAME");

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.