Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2005, 12:01 PM
Registered User
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting the network user name

Hi,
I am working on a campus network. I am trying to retrieve the username of the person using the page, everytime I try getting it I get an empty string. I am using this method:
Response.Write Request.ServerVariables("LOGON_USER")
I only get an empty string while using this method.
However when I try to get the remote address or the IP address I am successful using a similar procedure
Response.Write Request.ServerVariables("REMOTE_ADDR")

I dont know why i get an empty string for the User name in the domain.
can U please help
Thanks





 
Old November 18th, 2005, 03:34 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make sure you have unchecked anonymous access for your virtual directory/webpage in IIS setup.





Similar Threads
Thread Thread Starter Forum Replies Last Post
failed for user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Professional 5 March 26th, 2007 05:16 AM
user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Basics 0 March 25th, 2007 10:58 AM
User permissions on mapped network drive affinity Classic ASP Professional 0 January 12th, 2006 12:22 PM
Login failed for user 'NT INSTANS\NETWORK SERVICE' keysersoze BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 6th, 2005 01:25 PM
Network User Question bwood415 General .NET 3 December 29th, 2004 09:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.