Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2008, 08:52 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default Code Access Security & Role Based Security

Hi Guys,

I feel like I am sooo close to being ready to sit this exam (70-316), this is an area that Ijust can't seem to get stuck into my thick skull. I have

looked at many different sites and text's but I have found they all just seem to say the same thing.

I know there are several really smart guys here, so I was hoping you guys would be kind enough to just post your own answers to the following questions,

I'd really appreciate it.

1. Define/Describe "Code Access Security".
2. Define/Describe "Role-Based Security".
3. Can you give an example of when you have used both/either of them in your projects (a brief summary of how and why would be fine!)

So you know I am not just looking to freeload the question, here is my understanding so far (which I am of course writing from memory, so there is bound

to be mistakes!) plus any points I am struggling with:

1. Code-Access security is about ensuring code has the appropriate access level to run. This is defined by Permission objects, of which there are

many specialised classes that represent different resources (such as FileIO & DialogBoxes). This can either be Declarative (declared at compile

time in the code) or Imperative requested at runtime.

How does this [roughly] work? How do Permission Sets and Intersectioning work?

2. Role-Based security ensures that the specified user is authorised to perform an action. This revolves a lot around the Principle class,

which represents a user. RB security enables you to check that the current user is authenticated within Windows and part of a group within a domain.

Kinda the same question here really? Any better, more complete descriptions around?

3. Never :)

Very many thanks guys, I know these questions are kind of wooly, but I am looking more for chit-chat than code! :)

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
__________________
Rob
http://cantgrokwontgrok.blogspot.com
 
Old April 10th, 2008, 02:40 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

3) Never.

Sorry Rob, I can't help much here.

-Peter
peterlanoie.blog
 
Old April 10th, 2008, 03:12 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

No problem Peter, thanks for checking it out. Its driving me up the wall. I don't just wanna memorise the text, I want to understand whats actually going on, you know? :)

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
 
Old April 10th, 2008, 04:29 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You've got it pretty much sorted, I thinkn you just need a couple of examples. I'm going for the same exam at the moment too and I've got one of the self-paced books so I'll try and type up some of the examples when I get a chance.

I've not really done much in real life with them either though.

/- Sam Judson : Wrox Technical Editor -/
 
Old April 11th, 2008, 12:24 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Sam,

Wow, that's great news! What self-paced books do you have?

I am currently studying from:
Microsoft Press Book (although I found it wayyyy to shallow),
Exam Cram 2: 70-316 and
I have the blue book from Kalani on my Safari Bookshelf also :)

Looks like it may be one of those things that you kinda have to learn for the exam, then probably end up forgetting about it since you never use it right? ;)

If your doing the same course, did you want to become like "study buddys"? It be great to chat to someone else going for the same exam as me, and hopefully we could help each other out? I wont be offended if you say no! :)

Many thanks,

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
 
Old April 11th, 2008, 01:50 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

OK, I'm actually doing 70-536, and its that book that has the stuff I'm thinking of in.

/- Sam Judson : Wrox Technical Editor -/
 
Old April 11th, 2008, 02:31 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

No problem, every little helps right? COS KNOWLEDGE IS POWER! ;)

Thanks again, I appreciate it! :)

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Role based security tsimsha ASP.NET 2.0 Basics 4 May 6th, 2008 11:41 AM
Tag library for field level role based security mmalik_altaf Pro JSP 0 June 7th, 2006 05:02 AM
Authentication and Role-Based Security swandown ASP.NET 1.0 and 1.1 Basics 0 October 11th, 2004 04:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.