Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / February 2005

Tip: Looking for answers? Try searching our database.

COM+ Role Based Security - calling secure method 1 from secure method 2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
oliverson - 25 Jan 2005 14:35 GMT
Hello and thanks for reading.
I have implemented role-based security on some serviced componts at
method level and it works fine.  However, method level isn't granular
enough.  I made the decision for my clients to call Method_1 and if
they are in an appropriate COM+ role, the method call succeeds.  Now,
within Method_1, I want to inspect the parameters that are passed in
and in certain circumstances delegate the resultant actions to a
further method within the same class; Method_2.  This method has a
more restrictive set of COM+ roles applied to it.  (both methods are
methods in the same interface that my serviced component implements,
but I don't want all my clients calling Method_2 directly).
Currently, Method_1 denies access to users who aren't in the roles
applicable for that method.  Should a user be in an applicable role,
then when Method_1 needs to call Method_2, that has the more
restrictive roles, the call succeeds when I expected it to fail.  The
call doesn't go through the COM+ security plumbing.  Compounding my
misery is the fact that the user making the call proves to be the
Identity of my COM+ application (running as a server application).
I really need to make the call to Method_2 via COM+ security and as
the user that called Method_1.  Any ideas please?
Thanks.
Ed - 17 Feb 2005 12:51 GMT
Security checks occur only when calls cross COM+ Application boundaries.
Since both methods are the members of one class, they definitely belong to
one COM+ application. You may extract these methods in different application
but it will result in additional perfomance hit (additional remoting between
application). Or you may review your design :-)

> Hello and thanks for reading.
> I have implemented role-based security on some serviced componts at
[quoted text clipped - 17 lines]
> the user that called Method_1.  Any ideas please?
> Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.