var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Display NT User Name in ASP
Im user II6 & a Windows NT Domain
I'm just looking for a way to display the username on page of the client access the site.
Is this possible, I have had a search but cant find anything that help...
Hope you can.
I believe it's passed as one of the server variables... providing IIS is configured to request it of course... think it is one of these two...
It won't work well over the internet but through an intranet it is generally pretty good.
I've seen this code on various sites, but I never got it to work. I found it on 4guysfromrolla or a site similar to it.
'Store the NT LOGON name minus the doamin name in a session variable
LN = Request.ServerVariables("REMOTE_USER")
Session("NTLogon") = UCase(Right(LN, Len(LN) - InStr(1, LN, "\")))
It all depends on the security settings you have in IIS. I think you need to disable anonymous access,... I can't remember though as I haven't used it in ages.
Yes anonymous access must be unchecked within the IIS manager, as well as yes you guessed it, they must be logged in. Now it will also store the domain in the username if your IIS server manages more then 1 domain.
I do believe also that the remote user is the option your going to want to go with.
ImageMage Access 2003, Dreamweaver MX 2k4, and everything else work piles on me