WindowsPrincipal.IsInRole() problem with non-builtin roles
From: naijacoder naijacoder (naijacoder_at_toughguy.net)
Date: 08/30/04
- Previous message: naijacoder naijacoder: "Windows autentication with WindowsPrinicipal"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: WindowsPrincipal.IsInRole() problem with non-builtin roles"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: WindowsPrincipal.IsInRole() problem with non-builtin roles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 29 Aug 2004 23:53:10 -0700
Can't get WindowsPrincipal.IsInRole() to work for me when using
Windows Authentication. Here's a snippit of code from my C#
codebehind page:
WindowsPrincipal wp = new WindowsPrincipal(
WindowsIdentity.GetCurrent() );
lblUser.Text = wp.Identity.Name;
Label1.Text = wp.IsInRole(@"DOMAIN\group").ToString();
where "DOMAIN\group" is a valid group name. The username shows up
correctly as "DOMAIN\username" but for any non-builtin roles,
IsInRole() returns false. Does anyone have suggestions as to why this
is not working?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Previous message: naijacoder naijacoder: "Windows autentication with WindowsPrinicipal"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: WindowsPrincipal.IsInRole() problem with non-builtin roles"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: WindowsPrincipal.IsInRole() problem with non-builtin roles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|