Problem using Allow Roles

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Problem using Allow Roles

    Dear All,

    I have an application secured using the following in the web.config file...

    <authorization>
    <deny users = "?" />
    <allow roles = "role1, role2, role3 etc. " /> (up to 8 different roles)
    <deny users = "*" />
    </authorization>

    This works fine for new users I create and assign to these roles (AD
    security groups) but not for any existing users who I have added the roles
    to. The existing users have 20 or more pre-existing roles each whereas the
    new users work fine until I get to 8 or 9 roles when they too start to fail
    authentication! (Error 401.2 is generated in all cases).

    I have looked into the possibility of this being a problem with the size of
    the Kerebos token and applied a number of fixes that would correct that,
    though these seemed to be targetted at users with 200+ roles. None of these
    fixes has worked. W2K is now at SP4 on .NET 1.1.

    Has anyone seen this type of behaviour or got any thoughts on how to resolve
    this issue.

    Many thanks,

    Brian Doyle
    Wellington, New Zealand


    Brian Doyle Guest

  2. Similar Questions and Discussions

    1. problem with checking domain roles
      Hello! I have a problem with web.config's <allow roles>. Everything works fine on my development machine, but when I deploy my application into...
    2. Roles in encrypted cookie, security problem?
      Hi, I was just looking over a few samples of role based security in combination with forms based authentication. The samples I find seem to store...
    3. FormsAuthentication Roles Problem
      I want to use FormsAuthentication and allow access based on role. I have a /Admin directory on the web app, and want to allow role "admin", but...
    4. WindowsPrincipal.IsInRole() problem with non-builtin roles
      Can't get WindowsPrincipal.IsInRole() to work for me when using Windows Authentication. Here's a snippit of code from my C# codebehind page: ...
    5. Roles Based Security and Server.Transfer Problem
      Hi All, I'm looking into a Security solution using ASP.NET and C# for an Enterprise level application. I would like to implement Role based...
  3. #2

    Default Re: Problem using Allow Roles

    I SUSPECT that one of the existing groups has a DISALLOW property for some
    part of the application. That will block you even if you give ALLOW
    permission in another group. Add the existing groups one at a time to a user
    and watch for the failure. Then look at the security of that group and the
    problem should show it's ugly head ;)

    Tom
    --
    ==========================================
    = Tom Vande Stouwe MCSD.net, MCAD.net, MCP
    = 45Wallstreet.com ([url]www.45wallstreet.com[/url])
    = (803)-345-5001
    ==========================================
    = If you are not making any mistakes
    ..= ..you are not trying hard enough.
    ==========================================
    This is the spam catching address: [email]gotcha@conpro.net[/email] do not use this address
    or you will be blocked at the server ;)

    "Brian Doyle" <brian.doyle@xacta.co.nz> wrote in message
    news:uKBQ3KadDHA.3448@TK2MSFTNGP11.phx.gbl...
    > Dear All,
    >
    > I have an application secured using the following in the web.config
    file...
    >
    > <authorization>
    > <deny users = "?" />
    > <allow roles = "role1, role2, role3 etc. " /> (up to 8 different roles)
    > <deny users = "*" />
    > </authorization>
    >
    > This works fine for new users I create and assign to these roles (AD
    > security groups) but not for any existing users who I have added the roles
    > to. The existing users have 20 or more pre-existing roles each whereas the
    > new users work fine until I get to 8 or 9 roles when they too start to
    fail
    > authentication! (Error 401.2 is generated in all cases).
    >
    > I have looked into the possibility of this being a problem with the size
    of
    > the Kerebos token and applied a number of fixes that would correct that,
    > though these seemed to be targetted at users with 200+ roles. None of
    these
    > fixes has worked. W2K is now at SP4 on .NET 1.1.
    >
    > Has anyone seen this type of behaviour or got any thoughts on how to
    resolve
    > this issue.
    >
    > Many thanks,
    >
    > Brian Doyle
    > Wellington, New Zealand
    >
    >

    Tom Vande Stouwe MCSD.net Guest

  4. #3

    Default Re: Problem using Allow Roles RESOLUTION

    An interesting resolution to the issues described below.

    The application in was actually .NET 1.0 and not 1.1 as I mistakenly put in
    my original post.

    To correct the problem I had to install .NET 1.1 on the same server.
    Apparantley the two versions are not as independent as the documentation
    would lead you to believe! The root cause has yet to be identified but that
    task is now relegated to the "to be done sometime" pile.

    Thanks

    Brian Doyle


    "Brian Doyle" <brian.doyle@xacta.co.nz> wrote in message
    news:uKBQ3KadDHA.3448@TK2MSFTNGP11.phx.gbl...
    > Dear All,
    >
    > I have an application secured using the following in the web.config
    file...
    >
    > <authorization>
    > <deny users = "?" />
    > <allow roles = "role1, role2, role3 etc. " /> (up to 8 different roles)
    > <deny users = "*" />
    > </authorization>
    >
    > This works fine for new users I create and assign to these roles (AD
    > security groups) but not for any existing users who I have added the roles
    > to. The existing users have 20 or more pre-existing roles each whereas the
    > new users work fine until I get to 8 or 9 roles when they too start to
    fail
    > authentication! (Error 401.2 is generated in all cases).
    >
    > I have looked into the possibility of this being a problem with the size
    of
    > the Kerebos token and applied a number of fixes that would correct that,
    > though these seemed to be targetted at users with 200+ roles. None of
    these
    > fixes has worked. W2K is now at SP4 on .NET 1.1.
    >
    > Has anyone seen this type of behaviour or got any thoughts on how to
    resolve
    > this issue.
    >
    > Many thanks,
    >
    > Brian Doyle
    > Wellington, New Zealand
    >
    >

    Brian Doyle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139