How to determine if a user (integrated authentication) is part of a domain security group.

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

  1. #1

    Default How to determine if a user (integrated authentication) is part of a domain security group.

    I am trying to determine from an ASP.NET 1.1 page if a user is a member
    of a Global Security group (Windows 2000). When I check
    Page.User.IsInRole(@"DOMAINFOO\GroupBar") I always get false.

    Inspecting the User object right after IsInRole has been called (in the
    VS.NET 2003 debugger) I see that the m_roles string[] contains some
    domain groups (like "Domain Users" and "Domain Admins." m_rolesTable is
    undefined since I only have 11 items in my _roles array. None of the
    security groups that I have defined (vs built in security groups)
    appear in the m_roles array.

    Is IsInRole the correct method to be using to check this sort of group
    membership?

    I have seen a lot of discussion on this topic but there doesn't seem to
    be a consensus on how to solve this issue.
    Any thoughts are greatly apreciated.

    -Paul

    Paul Wolpe Guest

  2. Similar Questions and Discussions

    1. is flash player an integrated part of windows ?
      hi everyone. do anyone know if the flash player is an integrated part of windows (xp ie...) or do every user have to install the flash player...
    2. Determine Global Group vs User in Local?
      This code enumerates all local group members (Win2K web server member server in a Win2K domain). But if a member is a global group, I need to...
    3. Integrated Authentication Issue
      I have a web application using asp.net that uses integrated windows authentication. One of our users changed their windows login information. ...
    4. Integrated Authentication with Novell?
      Does anybody know if there is a way to do integrated authentication using Novell. bill
    5. WEB FORM --> DOMAIN USER AUTHENTICATION
      Microsoft Knowledge Base Article - 306158 http://support.microsoft.com/default.aspx?scid=kb;en- us;306158] shows a method to impersonate a specific...
  3. #2

    Default Re: How to determine if a user (integrated authentication) is part of a domain security group.

    It should work to use IsInRole to get all your domain groups for a
    WindowsPrincipal. Some things that might help:
    - A reboot might be necessary to update your groups in your token
    - Sometimes you need to use impersonation for the groups to get built
    correctly (although that doesn't sound like the problem here)

    Otherwise, I'm not sure what the problem is. Some kind of a trust issue is
    possible, but that doesn't sound like it either.

    Joe K.

    "Paul Wolpe" <pwolpe@gmail.com> wrote in message
    news:cia1vb$9g@odah37.prod.google.com...
    >I am trying to determine from an ASP.NET 1.1 page if a user is a member
    > of a Global Security group (Windows 2000). When I check
    > Page.User.IsInRole(@"DOMAINFOO\GroupBar") I always get false.
    >
    > Inspecting the User object right after IsInRole has been called (in the
    > VS.NET 2003 debugger) I see that the m_roles string[] contains some
    > domain groups (like "Domain Users" and "Domain Admins." m_rolesTable is
    > undefined since I only have 11 items in my _roles array. None of the
    > security groups that I have defined (vs built in security groups)
    > appear in the m_roles array.
    >
    > Is IsInRole the correct method to be using to check this sort of group
    > membership?
    >
    > I have seen a lot of discussion on this topic but there doesn't seem to
    > be a consensus on how to solve this issue.
    > Any thoughts are greatly apreciated.
    >
    > -Paul
    >

    Joe Kaplan \(MVP - ADSI\) 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