Re: User.IsInRole() fails if user in too many groups?
From: Yuri Lausberg (yuril_lausberg@Hotmail.com)
Date: 01/09/03
- Next message: Mike Moore [Microsoft]: "RE: ASP.NET on SAN - not working"
- Previous message: Dan Kahler: "User.IsInRole() fails if user in too many groups?"
- In reply to: Dan Kahler: "User.IsInRole() fails if user in too many groups?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Yuri Lausberg" <yuril_lausberg@Hotmail.com> Date: Wed, 8 Jan 2003 16:01:25 -0800
This is a known issue, see BUG: Q321562
(http://support.microsoft.com/default.aspx?scid=kb;en-us;321562) .
Cheers,
- Yuri Lausberg
"Dan Kahler" <dan.kahler@digex.com> wrote in message
news:eoETpz2tCHA.2628@TK2MSFTNGP09...
> (I've seen references to this previously, but I haven't been able to find
> any definitive documentaton of this problem.)
>
> My IsInRole() checks return false for ALL membership checks if a given
> Windows account is in too many groups. I know it's related to the number
of
> groups - I've used debug code to echo IsInRole() membership checks, and
> watched results change after I incrementally added a domain user to
> additional local groups. All the IsInRole() checks begin to fail once the
> user is in XX local groups. (The user is also in numerous AD groups, so I
> haven't been able to find the specific number that's acting as a ceiling,
> and don't know if the problem is specific to local groups).
>
> It's bizarre - IsInRole() correctly identifies membership in both local
and
> domain accounts, and then if I add the user one additional local group
> (arbitrary grouop name), it returns False for checks on any specified
group.
>
> Context.User.IsInRole("DOMAIN\MyGroup") returns True, and then once I add
> the user to one more local group, Context.User.IsInRole("DOMAIN\MyGroup")
> suddenly returns False. I spent forever trying to pin this on a code or
> capitalization problem before I tracked it to the number of group
> memberships.
>
> I've been using the WindowsPrincipal.IsInRole() function since the early
> betas (2001), and this is the first time I've been bitten by this. I'm
> using v1.0 of the runtime - anyone know if there's a planned fix for v1.1?
>
> Thanks for any corraboration!
> Dan Kahler
>
>
- Next message: Mike Moore [Microsoft]: "RE: ASP.NET on SAN - not working"
- Previous message: Dan Kahler: "User.IsInRole() fails if user in too many groups?"
- In reply to: Dan Kahler: "User.IsInRole() fails if user in too many groups?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|