Windows-based Authentication problem.

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

  1. #1

    Default Windows-based Authentication problem.

    Hi,
    I need to grant access to a NT usergroup and to 3 other users that are
    not in that group.
    here is my web.config.

    <authentication mode="Windows" />

    <identity impersonate="true" />



    <authorization>

    <deny users="*" /> <!-- Allow all users -->

    <allow users="user1" /> <!-- Allow all users -->

    <allow users="user2" /> <!-- Allow all users -->

    <allow users="user3" /> <!-- Allow all users -->

    <allow roles="VYP\Domain Hum_Resources" />

    </authorization>






    george d lake Guest

  2. Similar Questions and Discussions

    1. [REPOST] Problem in Windows based Authentication
      Hello All, I use windows based authentication for my ASP.NET web app. I have disabled anonymous access of my web application too from the IIS...
    2. How do you set Role-Based authorization for Windows Authentication?
      I am working on a company ASP.NET Intranet web application. I am using IBuySpy protal as my "go-by". It uses Forms authentication. I changed it...
    3. ASP.NET (IIS 6.0) Windows authentication/SQL Server problem
      Hi, On Windows 2000, I use the following connection string in my ASP.NET applications: <add key="ConnectionString"...
    4. ASP.Net Windows Authentication problem = Login dialog keeps popping up
      I'm using Windows Authentication in my C# ASP.Net intranet application. I have a "Delete" column in a DataGrid which I only want displayed if the...
    5. Problem with authentication when using Windows XP in IIS5
      I have a page that authenticates users by reading Request.ServerVariables("AUTH_USER") and Request.ServerVariables("AUTH_TYPE"). When users try to...
  3. #2

    Default Re: Windows-based Authentication problem.

    You'll want to look up the WindowsPrincipal.IsInRole Method to get at NT
    groups.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipalwindowsprincipalclassi sinroletopic2.asp[/url]

    You can also look at the roles attribute in the web.config:

    <allow roles="Admins"/>

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfallow.asp[/url]

    "george d lake" <georgel@valleyyellowpages.com> wrote in message
    news:u4EJOzlRDHA.2432@TK2MSFTNGP10.phx.gbl...
    Hi,
    I need to grant access to a NT usergroup and to 3 other users that are
    not in that group.
    here is my web.config.

    <authentication mode="Windows" />

    <identity impersonate="true" />



    <authorization>

    <deny users="*" /> <!-- Allow all users -->

    <allow users="user1" /> <!-- Allow all users -->

    <allow users="user2" /> <!-- Allow all users -->

    <allow users="user3" /> <!-- Allow all users -->

    <allow roles="VYP\Domain Hum_Resources" />

    </authorization>







    Ken Cox [Microsoft MVP] 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