Re: windows login info
From: Ray Costanzo [MVP] (my)
Date: 10/25/04
- Next message: Egbert Nierop \(MVP for IIS\): "Re: CDONTS to send order form to emails."
- Previous message: CK: "CDONTS to send order form to emails."
- In reply to: dave: "windows login info"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 24 Oct 2004 22:44:24 -0400
That script is running under the context of the IUSR account, so what you
describe is expected. What you want to do is change your settings for the
page, directory, application, or site to use authentication so that visitors
to your site are authenticated.
http://www.aspfaq.com/show.asp?id=2046
I'd also post a link to a page on iisfaq.com, but I'm unable to load that
site at the moment. Search for "authentication methods" there though too
for more info.
Ray at home
"dave" <anonymus@yahoo.com> wrote in message
news:OcBS2AjuEHA.2624@TK2MSFTNGP11.phx.gbl...
Hi
I'm writing one asp page and developing application for intranet...
I just need to know when if anyone executes this scripts, i need to find out
his windows login information (only username on which they are currently
logged in)..
I tried below code but its giving me machine name instead of username..
<%
Dim X
set X = createobject("WSCRIPT.Network")
dim U
U=x.UserName
Response.write "Logged In User is: " & U
%>
Any help would be appreciated..
Thanx in advance...
- Next message: Egbert Nierop \(MVP for IIS\): "Re: CDONTS to send order form to emails."
- Previous message: CK: "CDONTS to send order form to emails."
- In reply to: dave: "windows login info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|