[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

HOW TO: .NET Remoting Impersonation

Luis Fajardo

6/13/2004 2:09:00 PM

I need to know the best way to implement impersonation for the following .NET Remoting implementation:

I'm using CAO and the remotable objects are hosted by IIS. Right now I don't have a single line of code in the way that the remoting instantiation is ocurring, everything is defined in the .config file. Is there a way to implement Impersonation using the .config file? or at least a minimum set of code, I don't want to go to all my application an change the way I'm doing the instantiation (new).

Suggestions?


Thanks
2 Answers

Sunny

6/14/2004 2:43:00 PM

0

Impersonetion is defined in web.config file for asp.net processes.

Sunny

In article <BFBB42EF-BD08-4B28-8DCD-5465D94559D6@microsoft.com>,
LuisFajardo@discussions.microsoft.com says...
> I need to know the best way to implement impersonation for the following .NET Remoting implementation:
>
> I''m using CAO and the remotable objects are hosted by IIS. Right now I don''t have a single line of code in the way that the remoting instantiation is ocurring, everything is defined in the .config file. Is there a way to implement Impersonation using the .config file? or at least a minimum set of code, I don''t want to go to all my application an change the way I''m doing the instantiation (new).
>
> Suggestions?
>
>
> Thanks
>

Sunny

6/14/2004 3:48:00 PM

0

Hi,

I was thinking about impersonation at the IIS side, then you should use
web.config. But that way you just change the user under which the
remoting server is running. You can not make client by client
impersonation that way.

There are a lot of articles for doing this, just look in MSDN or google
for it.

If you want to impersonate every CAO object, according to the client,
then you should use some custom solution to send the credentials, but I
have never done that. If I remember, there were some discussions about
that in this and in csharp newsgroup.

Sunny

In article <7FCAB4EB-C173-4648-8B89-FFA430D16260@microsoft.com>,
LuisFajardo@discussions.microsoft.com says...
> Could you please give a sample of a web.config configured like that?
>
> I''m assumming you are mentioning a web.config on the client side (web client) or the app.config (win client) and not the web.config of the IIS hosting the remotable objects (server).
>
>
> Please clarify, samples will be really appreciated!
>
> Thanks in advance
>
>
>
> "Sunny" wrote:
>
> > Impersonetion is defined in web.config file for asp.net processes.
> >
> > Sunny
> >
> > In article <BFBB42EF-BD08-4B28-8DCD-5465D94559D6@microsoft.com>,
> > LuisFajardo@discussions.microsoft.com says...
> > > I need to know the best way to implement impersonation for the following .NET Remoting implementation:
> > >
> > > I''m using CAO and the remotable objects are hosted by IIS. Right now I don''t have a single line of code in the way that the remoting instantiation is ocurring, everything is defined in the .config file. Is there a way to implement Impersonation using the .config file? or at least a minimum set of code, I don''t want to go to all my application an change the way I''m doing the instantiation (new).
> > >
> > > Suggestions?
> > >
> > >
> > > Thanks
> > >
> >
>