ActiveDirectory group membership in offline profile
- From: tbb@xxxxxx
- Date: 9 Oct 2006 00:49:39 -0700
Hi
I have written an application in which I am using AD groups to set the
program permissions.
sample code:
System.Security.Principal.WindowsIdentity ident =
System.Security.Principal.WindowsIdentity.GetCurrent();
System.Security.Principal.WindowsPrincipal prin = new
System.Security.Principal.WindowsPrincipal(ident);
System.Threading.Thread.CurrentPrincipal = prin;
if (prin.IsInRole(@"domain\group"))
{
btnUpdate.Visible = true;
}
when the user is not connected to the network, it is possible to log on
because of the user offline profile.
but than the code doesn't work. because the user has no memberships.
I thougth the group membership will be stored in the offline user
profile too.
what can i do to solve that problem?
thx for help.
Tim
.
- Prev by Date: Re: How to create a DLL that can be called from another Win32 appl.
- Next by Date: Re: How to do this?
- Previous by thread: How to create a DLL that can be called from another Win32 appl.
- Next by thread: Wait for External Message Queue to Process?
- Index(es):
Relevant Pages
|