Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. window authentication correction

window authentication correction

Scheduled Pinned Locked Moved ASP.NET
securitycsharpasp-netquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Allah Kaa Bandaa
    wrote on last edited by
    #1

    Hi all, i am using window authentication in my asp.net page. In web.config file i am using following authentication mode="Windows" authentication authorization allow roles="Administrators" deny users="*" authorization identity impersonate="true" here tag sign are not written here(because in that case data is not shown here in the forum) but are in present in the web.config, so ignore them here. i want that only the users in 'Administrators' group have access to the application and all other users are denied. But when i run the application then the access of all users are denied including the users in Administrators group. Can u tell me what is wrong in above settings. What should i do to allow access to users of administartors group while deny all others.

    C 1 Reply Last reply
    0
    • A Allah Kaa Bandaa

      Hi all, i am using window authentication in my asp.net page. In web.config file i am using following authentication mode="Windows" authentication authorization allow roles="Administrators" deny users="*" authorization identity impersonate="true" here tag sign are not written here(because in that case data is not shown here in the forum) but are in present in the web.config, so ignore them here. i want that only the users in 'Administrators' group have access to the application and all other users are denied. But when i run the application then the access of all users are denied including the users in Administrators group. Can u tell me what is wrong in above settings. What should i do to allow access to users of administartors group while deny all others.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      The allow roles should look something like this:

      <allow roles="MACHINE_OR_DOMAIN_NAME\Administrators"/>

      The bit before the slash in the attribute is the name of the machine or the domain (which ever is relevant) Does this help?


      Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums

      A 1 Reply Last reply
      0
      • C Colin Angus Mackay

        The allow roles should look something like this:

        <allow roles="MACHINE_OR_DOMAIN_NAME\Administrators"/>

        The bit before the slash in the attribute is the name of the machine or the domain (which ever is relevant) Does this help?


        Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums

        A Offline
        A Offline
        Allah Kaa Bandaa
        wrote on last edited by
        #3

        yeah , it worked.... thankx

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups