Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 3rd, 2002, 10:03 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 8
Send a message via ICQ to James Yang
Getting logged in Username from IIS in Windows Authentication mode

Hi everyone!

How can i get the logged in username from IIS in Windows Authentication mode (in ASP)?

Would it be one of the server variables?

Any input would be appreciated!

Thanx
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #2  
Old May 5th, 2002, 08:04 AM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hey man..i think its Request.ServerVariables("AUTH_USER") and Request.ServerVariables("AUTH_PASS")

Reply With Quote
  #3  
Old May 5th, 2002, 06:51 PM
» Matt M « » Matt M « is offline
red house painter
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: South east England
Posts: 46 » Matt M « User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to » Matt M « Send a message via AIM to » Matt M «
i used a script about a year ago which had "whatuser" and a little widget which queried windows i presume to find out the exact login username - then you can manipulate around that.

ill see if i can find out where i got it, think it was 4guysfromrolla.com

matt

Reply With Quote
  #4  
Old April 21st, 2004, 02:46 AM
vinni80 vinni80 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 vinni80 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Authentication in IIS

Hi guys!!!

i have tried all service variables like request.ServiceVariables("Auth_User"), but i didnt get any info. of logged user of windows.
i m using windows 2000 prof.

Please let me know , i require its urgently in my software.


Thanks....

Reply With Quote
  #5  
Old June 23rd, 2004, 04:21 PM
violynne violynne is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 violynne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face Must remove Anonymous access authentication

Hi

The variable AUTH_USER or even LOGON_USER will store the info only if the authentication for the website is set to "Integrated Windows authentication" for example otherwise it will be empty because the default is "Anonymous access" which does not require a username or pw.

To set the authentication - use IIS

I hope this helps

Cristina


Quote:
Originally Posted by vinni80
Hi guys!!!

i have tried all service variables like request.ServiceVariables("Auth_User"), but i didnt get any info. of logged user of windows.
i m using windows 2000 prof.

Please let me know , i require its urgently in my software.


Thanks....

Reply With Quote
  #6  
Old November 3rd, 2005, 06:48 PM
mahalie mahalie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 1 mahalie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 47 sec
Reputation Power: 0
Thanks for the tip, helped me line up test servers

Thanks Christina,

I was trying to figure out why
Code:
<%=Request.ServerVariables("AUTH_USER")%>
was returning a value on our intranet server and not on our intranet test server. Having come from an Apache background and thown straight into Windows intranet develpment I've been having to reverse engineer a lot.

This server var is really useful, we're using it as both password and automatic login into a form...the same value will then become the primary key in the employee table of a web app. For now I just set a specific test directory (by right-clicking the directory in IIS and selecting properies), but I suppose one could set this on root. Is this only recommended for an intranet environment?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Getting logged in Username from IIS in Windows Authentication mode


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek