|
 |
asp_web_howto thread: Windows 2000/NT Security
Message #1 by "Chris R. Thompson" <cthompson@n...> on Thu, 14 Mar 2002 10:17:43 -0700
|
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1CB7C.272F3292
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Is there any way to see who is logged into a machine? Basically I want
a logon screen, but I want to check to see the user who is logged in and
if they are on a list of allowed logins, then it auto logs them in. So
if I log on and my user name On the Win2K machine is "chris" then I want
the ASP page to be able to read in "chris" from windows. I do not need
the password or anything, just the username.
Thanks in advance.
Chris
Message #2 by jstmehr4u3@a... on Thu, 14 Mar 2002 18:00:30 +0000
|
|
Request.servervariables look them up. There are a few of
them.
Request.servervariables("Logon_User") might work.
> Is there any way to see who is logged into a machine? Basically I want
> a logon screen, but I want to check to see the user who is logged in and
> if they are on a list of allowed logins, then it auto logs them in. So
> if I log on and my user name On the Win2K machine is "chris" then I want
> the ASP page to be able to read in "chris" from windows. I do not need
> the password or anything, just the username.
>
>
>
> Thanks in advance.
>
>
>
> Chris
>
>
>
>
Message #3 by "Chris R. Thompson" <cthompson@n...> on Thu, 14 Mar 2002 11:55:22 -0700
|
|
I tried This and I am not getting any user name back from it
Thanks,
Chris Thompson
-----Original Message-----
From: jstmehr4u3@a... [mailto:jstmehr4u3@a...]
Sent: Thursday, March 14, 2002 11:01 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Windows 2000/NT Security
Request.servervariables look them up. There are a few of
them.
Request.servervariables("Logon_User") might work.
> Is there any way to see who is logged into a machine? Basically I
want
> a logon screen, but I want to check to see the user who is logged in
and
> if they are on a list of allowed logins, then it auto logs them in.
So
> if I log on and my user name On the Win2K machine is "chris" then I
want
> the ASP page to be able to read in "chris" from windows. I do not
need
> the password or anything, just the username.
>
>
>
> Thanks in advance.
>
>
>
> Chris
>
>
>
>
Message #4 by "Ken Schaefer" <ken@a...> on Fri, 15 Mar 2002 09:58:59 +1100
|
|
The browser will, by default, not send any credentials (you don't want to
send your username to every website you visit do you?)
Only if the server then denies access, but offers alternate authentication
mechanisms (eg Basic, NTLM) will the browser pop-up a username/password box
for the user to fill in.
In your IIS MMC, you need to disable "Allow anonymous Access", so that you
force the browser to authenticate.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Chris R. Thompson" <cthompson@n...>
Subject: [asp_web_howto] Re: Windows 2000/NT Security
I tried This and I am not getting any user name back from it
Thanks,
Chris Thompson
-----Original Message-----
From: jstmehr4u3@a... [mailto:jstmehr4u3@a...]
Sent: Thursday, March 14, 2002 11:01 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Windows 2000/NT Security
Request.servervariables look them up. There are a few of
them.
Request.servervariables("Logon_User") might work.
> Is there any way to see who is logged into a machine? Basically I
want
> a logon screen, but I want to check to see the user who is logged in
and
> if they are on a list of allowed logins, then it auto logs them in.
So
> if I log on and my user name On the Win2K machine is "chris" then I
want
> the ASP page to be able to read in "chris" from windows. I do not
need
> the password or anything, just the username.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #5 by "Hema R." <hema.r@s...> on Fri, 15 Mar 2002 09:45:19 +0530
|
|
hi,
try this code..
<%
set wsh = Server.CreateObject("WScript.Network")
Response.Write wsh.UserName
%>
regards
Hema
> -----Original Message-----
> From: Chris R. Thompson [SMTP:cthompson@n...]
> Sent: Thursday, March 14, 2002 10:48 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Windows 2000/NT Security
>
> Is there any way to see who is logged into a machine? Basically I want a
> logon screen, but I want to check to see the user who is logged in and if
> they are on a list of allowed logins, then it auto logs them in. So if I
> log on and my user name On the Win2K machine is "chris" then I want the
> ASP page to be able to read in "chris" from windows. I do not need the
> password or anything, just the username.
>
>
>
> Thanks in advance.
>
>
>
> Chris
>
> ---
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************
Message #6 by "Chris R. Thompson" <cthompson@n...> on Fri, 15 Mar 2002 12:25:52 -0700
|
|
I get something like "IUSR_VBPROG" where VBPROG is the name of the PC.
I still am not getting the name of the user logged in. It is on an
intranet site and all users have IE5.5 or 6.0 and will all have 6.0
soon.
Thanks,
Chris Thompson
-----Original Message-----
From: Hema R. [mailto:hema.r@s...]
Sent: Thursday, March 14, 2002 9:15 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Windows 2000/NT Security
hi,
try this code..
<%
set wsh =3D Server.CreateObject("WScript.Network")
Response.Write wsh.UserName
%>
regards
Hema
> -----Original Message-----
> From: Chris R. Thompson [SMTP:cthompson@n...]
> Sent: Thursday, March 14, 2002 10:48 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Windows 2000/NT Security
>
> Is there any way to see who is logged into a machine? Basically I
want a
> logon screen, but I want to check to see the user who is logged in and
if
> they are on a list of allowed logins, then it auto logs them in. So
if I
> log on and my user name On the Win2K machine is "chris" then I want
the
> ASP page to be able to read in "chris" from windows. I do not need
the
> password or anything, just the username.
>
>
>
> Thanks in advance.
>
>
>
> Chris
>
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you
may
not copy or deliver this message to anyone. In such case, you should
destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email
for
messages of this kind.
*********************************************************************
Message #7 by "Pham, Khanh" <Khanh.Pham@d...> on Fri, 15 Mar 2002 15:16:26 -0500
|
|
This will definitely work: Make sure IIS has anonymous access unchecked and
"Integrated Windows Authentication" checked for win2000 or
"Challege/Reponse" on win4.0
Response.Write Request.ServerVariables("LOGON_USER")
Khanh
-----Original Message-----
From: Chris R. Thompson [mailto:cthompson@n...]
Sent: Friday, March 15, 2002 2:26 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Windows 2000/NT Security
I get something like "IUSR_VBPROG" where VBPROG is the name of the PC.
I still am not getting the name of the user logged in. It is on an
intranet site and all users have IE5.5 or 6.0 and will all have 6.0
soon.
Thanks,
Chris Thompson
-----Original Message-----
From: Hema R. [mailto:hema.r@s...]
Sent: Thursday, March 14, 2002 9:15 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Windows 2000/NT Security
hi,
try this code..
<%
set wsh = Server.CreateObject("WScript.Network")
Response.Write wsh.UserName
%>
regards
Hema
> -----Original Message-----
> From: Chris R. Thompson [SMTP:cthompson@n...]
> Sent: Thursday, March 14, 2002 10:48 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Windows 2000/NT Security
>
> Is there any way to see who is logged into a machine? Basically I
want a
> logon screen, but I want to check to see the user who is logged in and
if
> they are on a list of allowed logins, then it auto logs them in. So
if I
> log on and my user name On the Win2K machine is "chris" then I want
the
> ASP page to be able to read in "chris" from windows. I do not need
the
> password or anything, just the username.
>
>
>
> Thanks in advance.
>
>
>
> Chris
>
> ---
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you
may
not copy or deliver this message to anyone. In such case, you should
destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email
for
messages of this kind.
*********************************************************************
|
|
 |