Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing NT Logon Info in Intranet 2

Status
Not open for further replies.

ryandoah

Programmer
Mar 5, 2004
101
US
Hi All,

I have an Intranet that people logon to with their NT Domain user name and password. How can I capture this data for later use in ASP pages in the Intranet? Such as if someone altered a document in the Intranet, and I wanted to be able to append the changed record in the DB to reflect which user changed the doc.

Thank you,
ryandoah
 
if you're using ASP and having users log in via nt challenge response, just use request.servervariables("LOGON_USER")

[thumbsup2]DreX
aKa - Robert
 
request.servervariables("USER_LOGON") -->user name



Bastien

Cat, the other other white meat
 
yeah .. what he said...

dyslexia again goes there my

[thumbsup2]DreX
aKa - Robert
 
That was easy enough, hopefully I can make the "programmer" who initially posed the question feel as dumb as I do now. Server Variables, duh.

Thanks Gents.
ryandoah

 
In addition, I have found that requesting REMOTE_USER will work also, though don't know what the difference is during runtime.
 
remote user on failure to retrieve the name will resolve to an IP whereas logon user will resolve to a blank

[thumbsup2]DreX
aKa - Robert
 
REMOTE_USER sounds like what I want. eg. The ability to identify the user, under any circumstance. That way I can at least tell if the user is in my domain or not. And if so, be able to track it down to a particular machine.

Thanks for the help.
ryandoah
 
OH Yeah, It is LOGON_USER. No dyslexia today. ;{
 
damn dyslexia....any one else wonder about the existance of Dog?

Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top