Re: create the username/password authentication dialog problem

From: Tom Kaminski [MVP] ((A_at_T))
Date: 03/04/04


Date: Thu, 4 Mar 2004 08:36:58 -0500


"Matt" <mattloude@hotmail.com> wrote in message
news:%23ojEe9ZAEHA.688@tk2msftngp13.phx.gbl...
> I want to add security in ASP application.
> When the user go to http://localhost/myproject/index.asp, I want it will
pop
> up an username/password authentication dialog box.
>
> Here's the steps I did, but still not working.
> 1. In computer management, add an user "admin" that should have permission
> to the page
> 2. In IIS console, right click the file index.asp, and click properties >
> File Security > Edit, and click Edit button under Anonymous access, and
add
> user "admin" in Anonymous User Account window.
> 3. Uncheck Anonymous access check box
> 4. Click OK button
>
> Then it should provide security access to index.asp only, but not other
> files. But still not working either way. Please advise!

See the relevant article(s) for you OS/IIS:
IIS 5 Documentation
http://www.microsoft.com/windows2000/en/server/iis/
Microsoft Internet Information Server
     Administration
         Server Administration
             Security
                 Authentication
                 Access Control

IIS 6 Documentation
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/proddocs/standard/gs_authentication.asp

HOW TO: Configure IIS 5.0 Web Site Authentication in Windows 2000
http://support.microsoft.com/?id=310344
HOW TO: Configure User and Group Access on an Intranet in Windows 2000 or
Windows NT 4.0
http://support.microsoft.com/?id=325358
HOW TO: Configure IIS Web Site Authentication in Windows Server 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;324274

Make sure you disable simple file sharing in XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;304040

-- 
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/

Loading