Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-02-2003, 08:54 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
getting windows logged in user info

i want to make asp print the username of the user logged in to the network viewing the web page.

any tutorials anyone can direct me to? i've searched, but the examples i've found don't work for me.

i wish php could read windows user info.
__________________
Mike
sde is offline   Reply With Quote
Old 07-02-2003, 07:34 PM   #2 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
request.servervariables("REMOTE_USER")
request.servervariables("LOGON_USER")
request.servervariables("AUTH_USER")

These only work if you have an authentication filter installed on your Web server that maps incoming users to accounts.
__________________
~Ryan

rdove is offline   Reply With Quote
Old 07-02-2003, 07:42 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
thanks.. it's an intranet server, and only people within the domain can get to it. there are settings in IIS that enable windows authentication.

i had to remove the anon web user and it worked. even better, i got php to recognize the loged in user too =)

a very productive day for sure.
__________________
Mike
sde is offline   Reply With Quote
Old 07-13-2003, 03:07 PM   #4 (permalink)
npa
Code Monkey
 
Join Date: Jul 2003
Location: canada
Posts: 82
npa is on a distinguished road
Quote:
Originally posted by rdove
These only work if you have an authentication filter installed on your Web server that maps incoming users to accounts.
Don't need that - just enable windows authentication in the server and use AUTHORIZATION header then look at: http://www.innovation.ch/java/ntlm.html for how to
decode it, it is in base64 so look: http://www.ietf.org/rfc/rfc1521.txt?number=1521 for how to decode base64 messages.
__________________
direct entry file specification.
npa is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing the Windows desktop remotely bdl Windows 7 11-10-2004 07:39 AM
Access denied for user: '@192.168.0.71' (Using password: NO) infinite_root PHP 11 04-28-2004 05:30 PM
Microsoft probes Windows code leak redhead Code Newbie News 0 02-13-2004 12:41 AM
Bloody Windows IE rendering sarah31 PHP 6 06-05-2002 07:31 PM
Windows 2000 Pro MiLady Mirlyn Windows 9 05-14-2002 02:58 PM


All times are GMT -8. The time now is 08:47 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting