Role based authorisation with .Net remoting
From: Dan Kelley (DanKelley_at_discussions.microsoft.com)
Date: 01/18/05
- Next message: Ken Kolda: "Re: FileNotFound exception."
- Previous message: M.Posseth : "Re: remoting cross platform compatibility"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 07:41:06 -0800
I am currently working on a 2 tier Winform application, that is due to be
moved to an n-tier remoted application, using IIS as the remoting host, and
the binary formatter. The application is run on a Win 2k platform, and all
users are internal.
Currently in the UI we check users role membership to allow access to
various parts of the system, using the WindowsPrincipal.IsInRole method.
Once the business logic components are distributed, I want to place security
checks at the entry point to all publicly accesible remoted logic. Company
policy dictates this should be be done in the same method as we do on the
client side. This implies I need to flow the users credentials to the server
side, which I know how to do.
My problem is, 99% of all user submitted actions will involve database
communication, and all DB connections are created using integrated security.
Kerberos delegation is not enabled (and I would not want it to be), so this
is where the system design currently fails. The users credentials could not
then perform the second "hop" to the DB server in an NTLM authenticated
environment. The reason I would not want to use Kerberos delegation is this
would severely impact the benefits we would get from connection pooling by
having all db communication happening through a single user account.
The alternative would be to use LogonUser to impersonate a newly defined
system account, whose sole purpose is to run the code to communicate with the
database, after the user has been successfullly authorised. However, I
believe LogonUser requires fairly high privileges to run. And (beginning to
get a little confused), assume the call would be under the users security
context on the server.
I am hoping this is a fairly typical design. If anyone could give any advice
how to implement role based authorisation in this scenario I would be very
grateful.
Dan
- Next message: Ken Kolda: "Re: FileNotFound exception."
- Previous message: M.Posseth : "Re: remoting cross platform compatibility"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|