Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 January 16th, 2007, 12:29 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos99
Default Use Windows Authentication - ASP

Hi, I have this free calendar I downloaded off the net, that I am trying to tweak to meet company standards. A username/password is required, however I wanted to use Windows authentication... is there a way to retrieve the username/password used to sign on the computer, for form validation??? If this is possible, could someone please advise me on how i would need to go about doing this??

All i have found so far were the servervariables...
request.ServerVariable("AUTH_PASSWORD") / ("AUTH_USER")

but that is not working. Please advise.

Thanks in advance for all of your time and assistance!

Have a blessed day!

TB
Jacksonville, NC

 
Old January 16th, 2007, 01:09 PM
Authorized User
 
Join Date: Sep 2006
Location: Jax, NC, USA.
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default

or is there a way to retrieve at least the NT usernames?

T.B.
misskaos99@yahoo.com
 
Old January 16th, 2007, 02:34 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I thought you were dead! =P

Anyway Request.ServerVariable("REMOTE_USER") should do the trick for you. Now I do not know about your Network infastructure but we run a Win2K domain here with a Primary and Secondary Domain Controller and when I request this variable from my user's i get a string similar to this:

cssbh\parsodou

where CSSBH is our domain and parsodou would be a username.

HTH.

-----------------------------------------------------------
I will only tell you how to do it, not do it for you.------------
Unless, of course, you want to hire me to do work for you.---
^^Thats my signature--------------------------------------
-----------------------------------------------------------
http://www.catb.org/~esr/faqs/smart-questions.html -------
^^Took that from planoie's profile--------------------------
-----------------------------------------------------------
 
Old January 17th, 2007, 01:18 AM
Authorized User
 
Join Date: Jan 2007
Location: , , India.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

Try the Following code:

useridonly = MID(request.servervariables("LOGON_USER"), INSTR(USername,"\")+1, LEN(request.servervariables("LOGON_USER")))

Let me know if it is okay...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Authentication OrbitalThread .NET Framework 2.0 0 December 5th, 2006 01:57 PM
How windows NET authentication done in ASP pages lakshmy_raj Classic ASP Basics 1 October 20th, 2004 02:28 AM
Windows authentication eresina General .NET 5 June 2nd, 2004 09:16 AM





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