Re: Custom principles and DnsPermission.Demand()
From: andrew lowe (andrew.lowe###a-t###geac.com)
Date: 03/30/05
- Next message: serge calderara: "HELP Security in .Net framework"
- Previous message: Michel Gallant: "Re: IIS "secure communications"and "certificate" sections disabled"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Custom principles and DnsPermission.Demand()"
- Next in thread: Nicole Calinoiu: "Re: Custom principles and DnsPermission.Demand()"
- Reply: Nicole Calinoiu: "Re: Custom principles and DnsPermission.Demand()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Mar 2005 14:37:33 +1000
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:uqvnuRINFHA.1392@TK2MSFTNGP10.phx.gbl...
>I think there is some confusion here regarding how CAS works. CAS does not
>make security decisions based on who the current user is. CAS makes
>security decisions based on the permissions granted to the actual code.
>This is done at the assembly level and is based on evidence provided by the
>assembly about what it is and where it came from.
>
> Thus, changing the current IPrincipal on the thread won't affect what CAS
> is doing.
>
> So, it seems to me that you need to figure out why the code you are
> executing doesn't have DNS permissions and then figure out how to ensure
> that it has the permissions it needs.
Joe,
Thanks for your reply. The problem is that if i put a call to
Dns.GetHostByName() in the constructor of my main form it works, however in
another class which resides in another assembly the same call fails. All
assemblies have the attribute
[assembly: DnsPermission(SecurityAction.RequestMinimum, Unrestricted=true)]
I've tried stripping the project down but can't seem to find a way to
replicate what i am experiencing.
bugger.....
- Next message: serge calderara: "HELP Security in .Net framework"
- Previous message: Michel Gallant: "Re: IIS "secure communications"and "certificate" sections disabled"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Custom principles and DnsPermission.Demand()"
- Next in thread: Nicole Calinoiu: "Re: Custom principles and DnsPermission.Demand()"
- Reply: Nicole Calinoiu: "Re: Custom principles and DnsPermission.Demand()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|