Re: Have <authentication mode="Windows"> half working



One other thing to try: WindowsPrincipal also has an IsInRole overload that
takes a SecurityIdentifier. Can you try testing with that using my previous
sample? You can just cast the IdentityReference objects in the Groups
property to SecurityIdentifier objects.

If that doesn't work, then there is something even more bizarre wrong than
with the name translation routine.

Another thing to try would be to take the converted NTAccount objects in the
second collection and try using the Translate method to see if you can
convert back into SecurityIdentifier objects. Maybe that part is broken?

Thanks,

Joe K.

"David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message
news:16B053B3-6B19-441A-A981-CB26C012F09B@xxxxxxxxxxxxxxxx
What environment setting? I don't see how an environment setting can allow
me
to be authenticated, will return the groups I am in, but will fail
IsInRole -
that makes no sense.

Please ask the dev team how IsInRole could fail in this situation.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Luke Zhang [MSFT]" wrote:

Also works for me.

It is more like environment settings (like AD problem), than a
programming
issue.

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




.