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

  1. #1

    Default determining roles

    Hi all,

    I'm creating a web application that attempts to restrict access by
    checking the IsInRole function for the desired roles. This works for
    accounts that are local to the machine, but for some reason when I use
    a domain account that is not local, there are no roles available.
    When I inspect the principalPermissions object, it will say that the
    roles are loaded but the roles itself are null. How to I check for
    roles on a domain account?

    thanks,
    Sean
    Sean Guest

  2. Similar Questions and Discussions

    1. Determining a Date
      Any thoughts on an easy way to determine another date in time based on today's date? I want to query a web service using yesterday's date and I'm...
    2. Determining OS in director
      Does anyone know how to determine whether os is Mac OSX + or below or windows?
    3. determining if a variable is set?
      I've created a class for a movieclip. In the constructor I set the default for the class properties. However, I sometimes want to set them in the...
    4. Determining the referring URL
      I have a page with frames. The left frame is a list of urls. The main frame is loaded based on the url that was clicked in the left frame. Is...
    5. Determining Coverage
      A co-worker was finally able to dig it up in some notes from a class. The equation is 255 - (histogram mean value) / 255 = % coverage. Hopefully...
  3. #2

    Default Re: determining roles

    Found out what the problem was, few things, make sure your roles are
    formatted like "DomainName\\Role" (role is the same as group), make
    sure your spelling is correct, and finally, the reason the roles don't
    show up in the memory tree is that for network roles, I don't believe
    they are cached in memory but rather retrieved dynamically for each
    call to IsInRole.

    Sean
    Sean 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