Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Internet & the Web   »   Get the Client login name??

 
Thread Tools Display Modes
Question
 
 
#1  
Old Aug 14, 2005, 11:16 PM
jenagan
New Member
jenagan is offline
 
Join Date: Aug 2005
Posts: 5
jenagan See this member's comment history on his/her Profile page.
Get the Client login name??

Dear all,

i need to get the Cliant system login name to display in each client pages..
I have tried following code it display nothing..

You are <%=Request.ServerVariables("LOGON_USER")%>

Please anybody suggest right idea to solve this problem..

jena.

Reply With Quote
 
     

Answers
 
 
Old Aug 15, 2005, 03:22 AM   #2  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
From 4GuysFromRolla (link):
Quote:
Here is the answer:

Try Request.ServerVariables("LOGON_USER").

And this is exactly what you should do. If you turn on the directory security through the IIS Administration Console, user's will be prompted to enter their username and password (you must have the clear text option selected if you want to make it Netsca pe compatible. You can also select the NT Challenge / Response, which will work with Internet Explorer). Once they enter their name and password, it will check to see if the user has an NT account on the webserver, and if they've entered the correct pas sword. Once they are validated, you can view who they are, exactly, using Request.ServerVariables("LOGON_USER").
Have you turned on the directory security? Are you getting a popup asking for the user's name and password? That line on it's own will not retrieve their login name that they use to access the PC.
  Reply With Quote
 
     
 
 
Old Aug 15, 2005, 09:19 PM   #3  
New Member
jenagan is offline
 
Join Date: Aug 2005
Posts: 5
jenagan See this member's comment history on his/her Profile page.
It works, but problem in validate the U,name a & Password

Thank you V.Much LTheobald,

It worked after did that changes.. but still i have problem,
i'm working with Windows XP, IIS version 5.1.
when i run this in a client mechine it took the login name as what i entered in the popup, and its not checking the password ever.

i actually need to validate with each pc their own login username and password.. is that possibe? or do i need to have any domin login? or Windows server is required?
  Reply With Quote
 
     
 
 
Old Aug 16, 2005, 03:06 AM   #4  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
If you want the password, use Request.ServerVariables("LOGON_PASSWORD")

I'm sure it is possible to validate a user's details against their domain but I've never done it using ASP. Try searching Google for something like "ASP user validate domain". Also check out this link - http://www.aspin.com/home/tutorial/usermanage. Hopefully you will be able to find something in there.

Sorry I can't give you something miore useful.
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
Windows XP login failure/ boot freeze d4d Windows 2 Sep 2, 2008 01:36 AM
Email (via https) Login Problem taurus_del Email 3 May 2, 2006 08:07 AM
Unable to login...winxp bahnzo Windows 8 Mar 10, 2005 07:01 PM
How to setup SMTP with id and pwd login siudave Email 1 Jan 18, 2005 09:56 AM
Login Script needed jubaramm Internet & the Web 1 Feb 3, 2003 10:29 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 02:26 AM.