Re: COM INterop Security Problem
From: Stefu (stefanroth@hotmail.com)
Date: 11/25/02
- Next message: Kevin Yu: "Re: How to logoff?"
- Previous message: Ricardo Martins: "COM INterop Security Problem"
- In reply to: Ricardo Martins: "COM INterop Security Problem"
- Next in thread: Pierre Bisaillon: "Re: COM INterop Security Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Stefu" <stefanroth@hotmail.com> Date: Mon, 25 Nov 2002 15:34:43 +0100
Hi Ricardo
If you use ASP.NET to call DCOM components you have to consider several
security issues. Use the links below to get a better understanding of
ASP.NET Security.
I can give you some hints:
1) check the authentication mode of your web site! Do the users connect
anonymous? If yes, what standrad account does IIS use to make the calls?
(Directory Security -> configure a domain account, instead of a local
account). Uncheck all other authentication types, if the users connect
anonymous.
2) impersonate worker thread calls. In the web.config file of your web app
insert the <identity impersonate="true" /> tag.
This leads to impersonation of the worker threads. In case of anonymous
authentication, the configured IIS standard account is used to call the COM
components.
Hope this helps
Steve
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
authaspdotnet.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/secnetlpmsdn.asp?frame=true
"Ricardo Martins" <ricarddo@terra.com.br> wrote in message
news:151d401c2947a$98c03710$89f82ecf@TK2MSFTNGXA01...
All,
In my company we are using a main application running
over MTS (Windows NT 4) enviroment. This main application
has some COM components (DLLīs) that you can use to access
the main application features.
The MTS used in main application for a security issue,
request user must be in a DOMAIN to use the system and
itīs true using our COM components too.
I deploy a little .NET (VB.NET) component using a COM
Interop Version of these DLLīs.
When I run my dot.net application using Windows Forms
the application works fine, but when I try to use the
component in ASP.NET page I allways receive an exception
from COM component.
The exception details said that a security error
occurred.
I think that the problem happen 'cause when I use the
component over ASP.NET enviroment the ASPNET is sent to
MTS enviroment but this user doesnīt exists.
What I need to do to send a valid user from a
specific domain over ASP.NET page to MTS COM component
enviroment?
Regards
Ricardo Martins
ricarddo@terra.com.br
- Next message: Kevin Yu: "Re: How to logoff?"
- Previous message: Ricardo Martins: "COM INterop Security Problem"
- In reply to: Ricardo Martins: "COM INterop Security Problem"
- Next in thread: Pierre Bisaillon: "Re: COM INterop Security Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|