Re: WindowsPrinciple.IsInRole not working with cached info
From: John (john_at_nospam.com)
Date: 01/29/05
- Previous message: Crissy: "System.Security.SecurityException: Exception from HRESULT: 0x800A0046"
- In reply to: Gecko: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Next in thread: William Stacey [MVP]: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Reply: William Stacey [MVP]: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 28 Jan 2005 21:23:43 -0500
Thanks Gecko, you got it right. The one thing I did not mention is that
this software will be deployed to many domains, so the custom group SID will
be different in each case.
John
"Gecko" <nada@nada.com> wrote in message
news:e4N6hyZBFHA.4072@TK2MSFTNGP10.phx.gbl...
> Assumptions:
>
> 1) I am not sure if I a missed something here but from what I read it
> looks like when the user logs on (disconnected) it uses the SIDs that were
> cached from the server the last time the user logged on (I think).
>
> 2) If you are using the windows built-in groups, they have a hardcode
> SID (I think).
>
> 3) If you have to create custom groups or users then you will have
> access to their SIDs, which will never change unless you recreate the
group
> (I think).
>
> 4) I am assuming that you currently hardcode the name of the groups
in
> you code to enforce your security (I think).
>
> Based on those assumptions, why don't you use the SID numbers to enforce
> security in the first place? Instead of searching for the Administrator
> group, search for its SID? this way you don't have to save anithing.
>
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q243330
>
> I am probably missing something but just trying to help.
- Previous message: Crissy: "System.Security.SecurityException: Exception from HRESULT: 0x800A0046"
- In reply to: Gecko: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Next in thread: William Stacey [MVP]: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Reply: William Stacey [MVP]: "Re: WindowsPrinciple.IsInRole not working with cached info"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|