Role Based Security : difference betweenn XP and 2K pro

Discussion in 'ASP .Net Security' started by JACK, Oct 16, 2003.

  1. JACK

    JACK Guest

    Hi,

    I've got a problem with my asp.net (C#) apps.

    Global.asax.cs :

    protected void Application_AuthenticateRequest(Object
    sender, EventArgs e)
    {
    if( Context.User.Identity.IsAuthenticated )
    {
    if( !Context.User.IsInRole(@"SERVER\autorisedGroup") )
    {
    Response.WriteFile("error.htm");
    Response.End();
    }
    }
    }

    With Win 2k Pro (with watches) i can see my user's roles
    (local groups)
    User(System.Security.Principal.WindowsPrincipal)
    property m_rolesLoaded is flagged with "true"

    This property is flagged to false with XP, (same problem
    on Win 2k3 server)

    Any idea ?
     
    JACK, Oct 16, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jesper Stocholm
    Replies:
    2
    Views:
    8,757
    John Saunders
    Aug 23, 2003
  2. Liet Kynes
    Replies:
    0
    Views:
    686
    Liet Kynes
    Nov 26, 2003
  3. =?Utf-8?B?ZGF2aWQ=?=

    role based security and

    =?Utf-8?B?ZGF2aWQ=?=, Apr 15, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    613
    =?Utf-8?B?ZGF2aWQ=?=
    Apr 15, 2005
  4. SpaceMarine

    role-based security and ActiveDirectory

    SpaceMarine, May 28, 2009, in forum: ASP .Net
    Replies:
    18
    Views:
    2,321
    Joe Kaplan
    Jun 2, 2009
  5. Sammy_63

    Role based security and Domains

    Sammy_63, May 19, 2004, in forum: ASP .Net Security
    Replies:
    4
    Views:
    249
    Joe Kaplan \(MVP - ADSI\)
    May 20, 2004
  6. Suneel Jhangiani

    Role based Security and Permissions

    Suneel Jhangiani, Jun 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    198
    Suneel Jhangiani
    Jun 3, 2004
  7. Kursat
    Replies:
    1
    Views:
    523
    Dominick Baier
    May 7, 2007
  8. SpaceMarine

    role-based security and ActiveDirectory

    SpaceMarine, May 28, 2009, in forum: ASP .Net Security
    Replies:
    18
    Views:
    1,419
    Joe Kaplan
    Jun 2, 2009
Loading...