How to capture user's NT login? 
Author Message
 How to capture user's NT login?

Hello All,

I am working on an intranet application using ASP 3.0 and
VBScript, and I don't know how to capture the user's NT
login for authentication.

Since ASP runs on the server, I probably need something to
run on the client side for this task.  It is probably
JavaScript.  But I don't know how to do that.  I did
several searches on the internet and came up with nothing.

I will appreciate very much if someone can give me the
code snippet on this.  Thank you very much.

simon.



Sat, 03 Dec 2005 02:07:52 GMT  
 How to capture user's NT login?

Quote:

> Hello All,

> I am working on an intranet application using ASP 3.0 and
> VBScript, and I don't know how to capture the user's NT
> login for authentication.

> Since ASP runs on the server, I probably need something to
> run on the client side for this task.

Nope - server-side code:
<%
response.write request.servervariables("LOGON_USER")
%>

HTH,
Bob Barrows



Sat, 03 Dec 2005 02:27:10 GMT  
 How to capture user's NT login?
Thanks for the reply.  I forgot to tell you that I tried
the:
Response.Write Request.ServerVariables("LOGON_USER")
and the display as blank.  Do you know why?

Thanks.

simon.

Quote:
>-----Original Message-----

>> Hello All,

>> I am working on an intranet application using ASP 3.0
and
>> VBScript, and I don't know how to capture the user's NT
>> login for authentication.

>> Since ASP runs on the server, I probably need something
to
>> run on the client side for this task.

>Nope - server-side code:
><%
>response.write request.servervariables("LOGON_USER")
>%>

>HTH,
>Bob Barrows

>.



Sat, 03 Dec 2005 02:38:17 GMT  
 How to capture user's NT login?
You have to disable anonymous access in your directory in IIS and enable
integrated authentication.

http://www.google.com/search?q=how+enable+integrated+authentication+iis

Ray at home


Quote:
> Thanks for the reply.  I forgot to tell you that I tried
> the:
> Response.Write Request.ServerVariables("LOGON_USER")
> and the display as blank.  Do you know why?

> Thanks.

> simon.

> >-----Original Message-----

> >> Hello All,

> >> I am working on an intranet application using ASP 3.0
> and
> >> VBScript, and I don't know how to capture the user's NT
> >> login for authentication.

> >> Since ASP runs on the server, I probably need something
> to
> >> run on the client side for this task.

> >Nope - server-side code:
> ><%
> >response.write request.servervariables("LOGON_USER")
> >%>

> >HTH,
> >Bob Barrows

> >.



Sat, 03 Dec 2005 03:05:07 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Capturing logged-on user's Group Membership on NT 4 Network

2. Need Help Getting User's Group From Login Account on NT

3. Getting User's NT Login programatically

4. NH: Need to have user login with their NT login

5. How to capture NT login in ASP

6. capture NT login ID

7. Login failed for user 'XYZ1492\IUSR_XYZ1492'

8. VB can't run non-Microsoft OCX when user don't login as Adminsitrator

9. login failed for user '(null)'

10. how to get NT login user name

11. LDB Viewer -- Need to get NT user login name in addition to computer name

12. Obtaining more NT user login info

 

 
Powered by phpBB® Forum Software