Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 7th, 2004, 12:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default identity impersonate

Has anyone done anything with <identity impersonate="true" />?

My boss removed the aspnet user account from the web server and he won't add it back. He says "security risk" blah, blah, blah. My user account has access. Do I just put username="name" password="pw"? Do I need anything else like authentication mode="Windows"?
 
Old January 7th, 2004, 09:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

First, since your boss deleted the ASPNet account, you are likely going to have problems since this is the account your applications use to run. By default, this account has very few privileges and a very strong password, so your boss may have been a little gung ho in deleting it. Since they did this, you will likely have to create a custom account for this. More information here:

http://msdn.microsoft.com/library/de...SecNetHT01.asp

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

But, to your questions. Yes you will need:

authentication mode="Windows"

You should also add:

<deny users="?" />

under "Authorization". This will deny any unauthorized users. Since you are using Windows authentication, you shouldn't need to add a username and password(but you can if you want to and the link above has examples). Using impersonation will pull it from your logon. Also make sure that you uncheck "Anonymous" access in IIS.

If you are connecting from a computer outside your network and assuming your web server is on the Internet, you will get a logon box pop up when you try to access your application. Simply put in your Windows username, password, and domain. If it is an Intranet application, you will be granted or denied based upon your windows logon(if you don't have access, your will get that same popup box).

Note that your will have to be authorized to access not only the application folder, but any other folder that your boss has locked down. Also, if this is a database application you may have to be granted access to the database (if it is SQL Server, you will have to use Windows authentication).

J





Similar Threads
Thread Thread Starter Forum Replies Last Post
Identity Impersonate Tim Carmichael Classic ASP Basics 0 September 18th, 2008 09:46 AM
Identity impersonate in asp b00gieman Classic ASP Basics 1 September 7th, 2007 07:50 AM
Crys. Report Err - identity impersonate=true rajasarkar ASP.NET 1.0 and 1.1 Professional 0 July 28th, 2006 07:15 AM
HELP Access Denied / identity impersonate Marco.net VS.NET 2002/2003 0 September 17th, 2003 10:11 PM





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