Re: WindowsPrinciple.IsInRole not working with cached info

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 01/26/05


Date: Wed, 26 Jan 2005 11:12:58 -0600

On Wed, 26 Jan 2005 11:11:14 -0500, "John" <john@nospam.com> wrote:

¤ I'm using IsInRole to determine a user's authority to use various features
¤ of a winforms application. Everything works fine while the client machine
¤ is connected to the network. However, when the application is disconnected,
¤ the authentication works with the cached credentials, but any attempt (using
¤ both IsInRole, and other methods) to access the groups that the user is a
¤ member of fails. The custom groups I have created do not show up.
¤
¤ The client OS is Windows XP Pro with version v1.1.4322 of the framework.
¤ The principle is a WinNT 4 domain user.
¤
¤ Any thoughts?

Are you caching role credentials in a Principal object or are you querying network role credentials?
If you're checking network credentials or roles I don't see how this is going to work when
disconnected.

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)



Relevant Pages

  • Re: WindowsPrinciple.IsInRole not working with cached info
    ... LogonUser is using the *local SAM to get the ... Then your call to IsInRole will be looking at local SAM and group ... >> Are you caching role credentials in a Principal object or are you ...
    (microsoft.public.dotnet.security)
  • Re: WindowsPrinciple.IsInRole not working with cached info
    ... > Are you caching role credentials in a Principal object or are you querying ... > If you're checking network credentials or roles I don't see how this is ... apparently using some sort of credentials cached by Windows. ... I was hoping that this caching mechanism would also hold the list of groups ...
    (microsoft.public.dotnet.security)