Re: WindowsPrinciple.IsInRole not working with cached info

From: John (john_at_nospam.com)
Date: 01/26/05


Date: Wed, 26 Jan 2005 12:40:17 -0500


> 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.

I'm not doing anything that I know about to cache role credentials. I'm
simply making the a call to IsInRole( "MyGroup" ). When I'm connected to
the network, this works properly. However, when the computer is
disconnected, it does not. My call to LogonUser does succeed when
disconnected, apparently using some sort of credentials cached by Windows.
I was hoping that this caching mechanism would also hold the list of groups
the user is a member of, but apparently it does not. I need to have this
work if the user starts the application after the machine has been
disconnected, so I won't be able to cache anything myself. I'm really
looking to understand what Windows is caching.

Thanks,

John