Re: Different results between declarative and imperative security



or simply use

whoami /groups

(included in w2k3 / download for xp)

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

Sometimes there is a simple spelling error. I suggest you read the
Groups property on the WindowsIdentity and convert the
IdentityReferenceCollection into an IdentityReferenceCollection based
on NTAccount. Then, you can read the actual friendly names and see
what's going on.

Joe K.



.



Relevant Pages

  • Re: Have half working
    ... post all in a second post. ... "true" for all of the IsInRole calls. ... WindowsIdentity wi = Context.User.Identity; ... IdentityReferenceCollection sids = wi.Groups; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Have half working
    ... in a second post. ... WindowsIdentity wi = Context.User.Identity; ... IdentityReferenceCollection sids = wi.Groups; ... IsInRole() is still failing inside my ASP.NET app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Have half working
    ... all in a second post. ... WindowsIdentity wi = Context.User.Identity; ... IdentityReferenceCollection sids = wi.Groups; ... IsInRole() is still failing inside my ASP.NET app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Active Directory Groups
    ... WindowsIdentity id = WindowsIdentity.GetCurrent; ... IdentityReferenceCollection ntNames = irc.Translate); ... you just cast the IdentityReference objects in the collection to ... You can also call Translate on individual objects, ...
    (microsoft.public.dotnet.framework.aspnet.security)