stm
Aug 15th, 2005, 10:19 PM
Hi,
I have a web site which will display some pricing information to public.
In DMZ, we've one IIS to host ASP.NET web pages, and another COM+ server, which host the COM+ component written in VB.NET for retrieving such pricing information. It access internal SQL server through odbc with suitable ports opend in the firewall.
ASP.NET make calls to the component through .NET remoting.
I've make a workable setting, but not sure if it is really ok. As I go through more about web.config, I get confused, may I list the config here, and can someone advise if it is okay or not?
Directory security of the application (VD) in IIS:
Checked "Anonymous access", an domain a/c (DAC1) is entered instead of using IUSR_XXX a/c.
Web.config for that application:
<authentication mode="Windows" />
<identity impersonate="true" />
<authorization>
<allow users="*" />
</authorization>
COM+:
roles are created and only DAC1 are added to the user list under this role
=======
What I want to do is that, any user can view this page. When retrieving price information, it will use the DAC1 as identity to call the COM+ component. In this way, my site are protected such that no one can call the component other than DAC1.
What confuese me:
1. Why there are two authentication (one in IIS and other in web.config)? I knew that one is to IIS and one is to ASP.NET application, but what actually it is for? In IIS, I've choose 'Anonymous', but in web.config, I use <authentication mode="Windows">, then I see a comment said "Anonymous access must be disabled in IIS.", I also tried to set mode to "None", but both settings let me access the page.
2. Is ASP.NET process identity (ASPNET / NETWORK SERVICE) a/c equals to the a/c I entered in IIS anonymouse box (i.e. DAC1)?? If so, is that when the ASP.NET application is running, it will use that identity a/c to, say access COM+ component?
3. There is a <identity impersonate="true" /> line in web.config. When I enable anonymouse access, if (2) is correct, then it impersonating as that identity a/c? So, I only need this line when I use Windows Integrated security in IIS and I want the asp.net application to use client's credential instead of asp.net identity a/c? Am I correct?
Thx a lot.
I have a web site which will display some pricing information to public.
In DMZ, we've one IIS to host ASP.NET web pages, and another COM+ server, which host the COM+ component written in VB.NET for retrieving such pricing information. It access internal SQL server through odbc with suitable ports opend in the firewall.
ASP.NET make calls to the component through .NET remoting.
I've make a workable setting, but not sure if it is really ok. As I go through more about web.config, I get confused, may I list the config here, and can someone advise if it is okay or not?
Directory security of the application (VD) in IIS:
Checked "Anonymous access", an domain a/c (DAC1) is entered instead of using IUSR_XXX a/c.
Web.config for that application:
<authentication mode="Windows" />
<identity impersonate="true" />
<authorization>
<allow users="*" />
</authorization>
COM+:
roles are created and only DAC1 are added to the user list under this role
=======
What I want to do is that, any user can view this page. When retrieving price information, it will use the DAC1 as identity to call the COM+ component. In this way, my site are protected such that no one can call the component other than DAC1.
What confuese me:
1. Why there are two authentication (one in IIS and other in web.config)? I knew that one is to IIS and one is to ASP.NET application, but what actually it is for? In IIS, I've choose 'Anonymous', but in web.config, I use <authentication mode="Windows">, then I see a comment said "Anonymous access must be disabled in IIS.", I also tried to set mode to "None", but both settings let me access the page.
2. Is ASP.NET process identity (ASPNET / NETWORK SERVICE) a/c equals to the a/c I entered in IIS anonymouse box (i.e. DAC1)?? If so, is that when the ASP.NET application is running, it will use that identity a/c to, say access COM+ component?
3. There is a <identity impersonate="true" /> line in web.config. When I enable anonymouse access, if (2) is correct, then it impersonating as that identity a/c? So, I only need this line when I use Windows Integrated security in IIS and I want the asp.net application to use client's credential instead of asp.net identity a/c? Am I correct?
Thx a lot.