authentication issues

From: Kalidas Lanka (klanka@inter-tax.com)
Date: 05/30/02


From: "Kalidas Lanka" <klanka@inter-tax.com>
Date: Wed, 29 May 2002 17:13:15 -0500


Hi

This is my story. We are developing an internet site. And for the
site(currently the site is getting developed under 'Default Web Site' on
Windows XP), I have both 'Basic authentication' and 'Integrated Windows
authentication' checked.

I have restricted, access to the directory, where my ASP pages are present.
Q1. If a user do not have access to the directory, and the Redirection to a
page in that directory fails(in code), can I capture the failure in a
variable. How can we do that?

In global.asa file, On Session_OnStart, I am directing every user, to
login.asp. In the login.asp file, I am force logging the user by setting the
Response.status = "401 access denied" .

Here is the problem area. If I try to capture the userid by using
Request.ServerVariables("AUTH_USER" or "LOGON_USER") immediately after
Response.Status, the Challenge/Response logon box does not show up.
If I do not use the Request.ServerVariables after Response.Status the logon
box shows up three times.

I want your help to be able to do the following if possible.
a. Get the logon box show up.
b. Capture the userid after the user enters his userid in the appeared logon
box and store it in a Session variable.

Can somebody suggest some alternatives or some code modifications. I would
highly appreciate your help.

Thanks in advance for all your help.

Regards,

Kalidas



Relevant Pages

  • Re: dsmod utility
    ... >automatically remove users from certain groups on logon. ... How can I capture ... Windows: General MVP ...
    (microsoft.public.windows.server.scripting)
  • Re: How to force a logoff in a logon script?
    ... Windows has a registry key that governs which UI will be presented ... the unauthorized user cancels the logon dialog and goes away ... system, but complains that there was no cancel button, only an OK ...
    (microsoft.public.windows.server.scripting)
  • Re: When utilizing "Switch User" the music "NEVER" Stops!
    ... 2004 Windows MVP "Winny" Award ... Switch User, changing logons and checking the top of Zone ... >logging onto the 2nd logon and then logging off and back ... >>NEVER stopped thru any of the screens ?? ...
    (microsoft.public.windowsxp.general)
  • Re: Huh? "Login failure: the user has not been granted the requested logon type at this compute
    ... I'm a pretty experienced Windows user and programmer, ... the user has not been granted the requested logon type ... on the appropriate OU to see the Group Policy for that OU]. ... > administrators' group to the domain controller. ...
    (microsoft.public.security)
  • Re: Server 2K3 Remote Desktop Access - is this right place?
    ... All roads for that particular error of 'You do not have access to logon to ... On Windows Server 2003, launch GPEDIT.MSC from Start -> Run. ... Drill down and expand the following for Local Computer Policy: ... > Strange - when I activate the Remote Desktop Terminal from the server, ...
    (microsoft.public.win2000.advanced_server)