473,498 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Window authentication

Dear Expert,

I want to use window authentication in my asp page. This code allow me to do that but i just need a few user in the server can access this page. Isn't I need to configure at IIS?.
<%
If Request("REMOTE_USER") = "" Then
Response.Status = "401 Unauthorized"
elseif request("REMOTE_USER") <> "" then
response.write Request.Servervariables("REMOTE_USER")
username = Request.Servervariables("REMOTE_USER")
%><HTML><HEAD><title>Attachments</title></HEAD><BODY bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" vspace="5" border="0"><h2><strong><font COLOR="blue">Weekly Forecast and Production Plan Report</font></strong></h2><center><table width="400" border="0" cellspacing="0" cellpadding="1"><tr align = "left"><td bgcolor="#CEE7FF" class="header"><b>Attachment</b></td></tr><tr align = "left"><td bgcolor="#f0f8ff" class="bodytext2_nojustify">Kindly please browse the file that you want to attach. You are allowed to attach <b>ONE file at one time only<b>. </td></tr><tr align = "center"><td bgcolor="#f0f8ff" class="bodytext_12black">&nbsp; </td></tr><form enctype="multipart/form-data" action="uploadfile_process.asp" method="POST" name="frmUpload2"><tr align = "center"><td bgcolor="#f0f8ff" class="bodytext_12black"><input TYPE="File" SIZE="30" MAXLENGTH="100" NAME="docFile"></td></tr><tr align = "center"><td bgcolor="#f0f8ff" class="bodytext_12black">&nbsp; </td></tr><tr align = "center"><td bgcolor="#f0f8ff" class="bodytext_12black"><a href="#" onclick="attach();" ><input name="button" TYPE="button" Value="Attach"></a>&nbsp;
<input name="button" TYPE="button" onclick="location.href ='javascript:history.go(-1)'"; Value="Cancel"></td></tr></form></table><%
end if
%>
Jul 19 '05 #1
1 1270
Change the NTFS permissions on your files. Give the users that you want to
allow access RX permissions on the web files. Remove other users.

Cheers
Ken

"Wzaq" <an*******@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
: Dear Expert,
:
: I want to use window authentication in my asp page. This code allow me to
do that but i just need a few user in the server can access this page. Isn't
I need to configure at IIS?.
: <%
: If Request("REMOTE_USER") = "" Then
: Response.Status = "401 Unauthorized"
: elseif request("REMOTE_USER") <> "" then
: response.write Request.Servervariables("REMOTE_USER")
: username = Request.Servervariables("REMOTE_USER")
: %><HTML><HEAD><title>Attachments</title></HEAD><BODY bgcolor="#ffffff"
text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
vspace="5" border="0"><h2><strong><font COLOR="blue">Weekly Forecast and
Production Plan Report</font></strong></h2><center><table width="400"
border="0" cellspacing="0" cellpadding="1"><tr align = "left"><td
bgcolor="#CEE7FF" class="header"><b>Attachment</b></td></tr><tr align =
"left"><td bgcolor="#f0f8ff" class="bodytext2_nojustify">Kindly please
browse the file that you want to attach. You are allowed to attach <b>ONE
file at one time only<b>. </td></tr><tr align = "center"><td
bgcolor="#f0f8ff" class="bodytext_12black">&nbsp; </td></tr><form
enctype="multipart/form-data" action="uploadfile_process.asp" method="POST"
name="frmUpload2"><tr align = "center"><td bgcolor="#f0f8ff"
class="bodytext_12black"><input TYPE="File" SIZE="30" MAXLENGTH="100"
NAME="docFile"></td></tr><tr align = "center"><td bgcolor="#f0f8ff"
class="bodytext_12black">&nbsp; </td></tr><tr align = "center"><td
bgcolor="#f0f8ff" class="bodytext_12black"><a href="#" onclick="attach();"
<input name="button" TYPE="button" Value="Attach"></a>&nbsp;

: <input name="button" TYPE="button" onclick="location.href
='javascript:history.go(-1)'"; Value="Cancel"></td></tr></form></table><%
: end if
: %>
Jul 19 '05 #2

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

Similar topics

1
1423
by: Twitch | last post by:
Turns out I can only use Windows Authentication for the website. So I ask again. Is there a way or method of knowing when a "Window Authentication" logon fails? Maybe a system exception I can...
0
1032
by: Steve - DND | last post by:
I have the following information set in my web.config file: <authentication mode="Forms"> <forms loginUrl="Login.aspx" name="formAuthCookie" timeout="60" path="/"/> </authentication> ...
5
1590
by: Brett Porter | last post by:
Hi, A very large portion of my site uses forms authentication which seems to work reasonably well. However many of my authenticated pages display a basic authentication dialogue box prior to...
1
1017
by: Reza | last post by:
Trying this again Here is the situation, I am using the <authentication mode="Windows" / for webforms not windows, but I don't want to specify the list of users in the web.config, but have the...
2
1512
by: Kevin Frey | last post by:
We have a web application that, for the purposes of reporting, launches a new window to display the contents of the report in (PDF format). This is implemented using a custom IHttpHandler...
1
1183
by: Moss | last post by:
Hi, Sorry if this really is a newbie question, but hey, I'm a newbie, porting from a coldfusion background. I have been using the built in login feature however notice that it does appear to...
6
2022
by: Howard Rifkin | last post by:
Hi, I my Javascript I popup an authentication window using the command; unamePasswdWindow = open("auth.html","","width=500,height=100"); This works fine in IE, and in Firefox 2.x on...
0
1034
by: =?Utf-8?B?Tmc=?= | last post by:
HI, i face some problem when i doing a webpage. when i develop the page, my IIS is use Integrated Window Authentication and my page can display correctly but when i change the IIS to...
2
1303
by: todashah | last post by:
Dear Programmer, I have a developed simple asp.net application to learn how window authentication is work ? To perform window authentication i have make following changes. 1) First i create...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.