473,320 Members | 2,052 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,320 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 5846
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. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.