Link to home
Start Free TrialLog in
Avatar of ndr-itsolutions
ndr-itsolutions

asked on

Retrieving username

I have workstations with a variable that gives the logged on user id, how can I retrieve this value through a dot.net asp web application, that I am developing ?

The web server resides in a different domain from the users and there is also no trust between the domains, I have the anonymous IIS account setup for the web app, however using other methods, this is the value that is returned for the logged on user.

I would also be looking to take the user id and do a lookup on it in AD, so I can use the First name, second name values within AD.

I'm using VB.net with Visual Web Developer.

Any ideas ?
TextBox6_AddDataControl1.Text = Request.ServerVariables("LOGON_USER")
Avatar of ndr-itsolutions
ndr-itsolutions

ASKER

Still get the same result, that is, the code returns the anonymous user account of the IIS server and not the username of the logged on user's workstation.
ASKER CERTIFIED SOLUTION
Avatar of EddyvanOpdorp
EddyvanOpdorp
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial