473,372 Members | 1,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Problem using 'Post' with Integrated Windows Authentication

I am trying to 'POST' values from a form in a ASP file that
has anonymous access permissions. I can retrieve the form
values when I redirect to this page from another page which
has also has anonymous access permissions.

However, if I change the page from which I'm redirecting to
use NT authentication, then I cannot retrieve the values of
the form fields using POST method.

Specifically, if the following file (MyStart.asp) has anonymous
access permissions in IIS, then I get redirected to TestPost.asp
page, and I can see the values that I submit in the fields.
However, if I change it to use NT authentication under IIS, then
there are no values in Request.Form("fname"), and
Request.Form("lname")

Now I had used 'GET' to start with, and that works fine until you get
too much text inside of one form. I really need to use NT
authentication in order to get the remote user so I can see if they
have permision to use the website. Any help on how to solve this
problem would be great. What I need is a way to pass large amounts of
data to a database, and also use NT authentication.

-----------------------------------------------------------------

<%@ Language=VBScript %>
<%
Response.Redirect( "TestPost.asp" )
%>
<HTML>
<HEAD>
<META content="Microsoft Visual Studio 6.0" name=GENERATOR>
</HEAD>
<BODY>

<P> </P>

</BODY>
</HTML>

-----------------------------------------------------------------
The following file (TestPost.asp) is based on Form_JScript.asp
sample that is included with IIS. It is set to have anonymous
access permissions under IIS.
-----------------------------------------------------------------

<%@ Language=VBScript %>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title>Test Post</title>
</head>

<body>

<!-- Display header. -->

<FONT face="ARIAL, HELVETICA" size=4>
<B>Form Posting Welcome <%= strUserID%>
</B></FONT><BR>

<HR>
<P>This page will take the information entered in
the form fields, and use the POST method to
send the data to an ASP page.

<FORM name=Form1 action=TestPost.asp method=post>

First Name: <INPUT name=fname><P>
Last Name: <INPUT name=lname><P>

<INPUT id=Submit1 type=submit value=Submit name=Submit1>

</FORM>

<HR>

<% Response.Write(Request.Form.Count) %> <BR>
<% Response.Write(Request.Form("fname")) %> <BR>
<% Response.Write(Request.Form("lname")) %>

</body>
</html>

-----------------------------------------------------------------
Jul 19 '05 #1
6 5848
This is a known issue. I know that I was ready to jump off my building when
I was trying to figure this one out.
http://support.microsoft.com/?id=308074

Ray at work

"Pete Mahoney" <la***********@students.uwlax.edu> wrote in message
news:18**************************@posting.google.c om...
I am trying to 'POST' values from a form in a ASP file that
has anonymous access permissions. I can retrieve the form
values when I redirect to this page from another page which
has also has anonymous access permissions.

However, if I change the page from which I'm redirecting to
use NT authentication, then I cannot retrieve the values of
the form fields using POST method.

Jul 19 '05 #2
Ok this sounds like it will disable Integrated Windows authentication,
but I still want to use the following:

Request.ServerVariables("REMOTE_USER")

I use this to get the user name and then make sure the user has
permision to view this site. If I disable Integrated Windows
authentication with that registry change cab I still use
Request.ServerVariables("REMOTE_USER") to get the username?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
I don't know. When I ran across this, I found some other way of doing what
I wanted to do, but I don't remember what. But, you'd want to use
LOGON_USER for basic authentication, IIRC. So would Peter Mahoney.

Ray at home

"Peter Landerud" <la***********@students.uwlax.edu> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...
Ok this sounds like it will disable Integrated Windows authentication,
but I still want to use the following:

Request.ServerVariables("REMOTE_USER")

I use this to get the user name and then make sure the user has
permision to view this site. If I disable Integrated Windows
authentication with that registry change cab I still use
Request.ServerVariables("REMOTE_USER") to get the username?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4
"Pete Mahoney" <la***********@students.uwlax.edu> schrieb im Newsbeitrag
news:18**************************@posting.google.c om...
I am trying to 'POST' values from a form in a ASP file that
has anonymous access permissions. I can retrieve the form
values when I redirect to this page from another page which
has also has anonymous access permissions.


In case Ray's answer did not yet solve your problem...

Your problem sounds very much like a problem I had myself. I first saw it
some years ago, but it has continued to exist until today. It is a
client-side issue, which is described in

http://support.microsoft.com/support.../Q231/4/53.asp

Michael G. Schneider
Jul 19 '05 #5
Michael, you say this is a client-side issue. Does that mean the
registry change I have to do is to the clinent-side computer or the
web-server my site resides on? If I need to do the registry change to
the client-side this will only fix the problem for me but not the 200
other users that use this page that I am really worried about.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #6
"Peter Landerud" <la***********@students.uwlax.edu> schrieb im Newsbeitrag
news:e3**************@TK2MSFTNGP10.phx.gbl...
Michael, you say this is a client-side issue. Does that mean the
registry change I have to do is to the clinent-side computer or the
web-server my site resides on? If I need to do the registry change
to the client-side this will only fix the problem for me but not the
200 other users that use this page that I am really worried about.


It is a pure client side issue. So the registry update has to be done on the
client. It modifies the browser's behaviour.

Michael G. Schneider
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: epaetz | last post by:
I'm getting Not associated with a trusted SQL Server connection errors on a .Net windows service I wrote, when it's running on my application server. It's not a problem with mixed mode...
4
by: Grind Boy | last post by:
Hi, I'm writing this off the top of my head as I don't have the exact information to hand. We are attempting to set up a secure internet site using ASP.NET on IIS5. We are having some...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
4
by: Chris Gatto | last post by:
Hi, I'm having what should be a minor problem but has turned into a 2 day slug fest with ASP.Net. I am simply attempting to authenticate my asp.net application users against users in an AD...
2
by: xenophon | last post by:
I am trying to permit directory access for one single user only and local Administrators. Right now the current web.config code blocks everyone. User TESTDOM2\testusr1 is a member of...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
12
by: =?Utf-8?B?QW5kcmV3?= | last post by:
I am simple tryint to learn how to use the ADO.NET code. Can anybody tell me if I am using it right or not? Imports System.Data.sqlclient Imports System.Data Public Class Form1 Inherits...
9
by: =?Utf-8?B?QWxleA==?= | last post by:
Hi, I have a cutom HttpHandler to handle large file upload and it is having some strange result. It is working fine if I just load the upload page in Internet Explorer and upload files. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.