Windows-based Authentication problem.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • george d lake

    #1

    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.

    <authenticati on mode="Windows" />

    <identity impersonate="tr ue" />



    <authorizatio n>

    <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\Doma in Hum_Resources" />

    </authorization>






  • Ken Cox [Microsoft MVP]

    #2
    Re: Windows-based Authentication problem.

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

    http://msdn.microsoft.com/library/de...roletopic2.asp

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

    <allow roles="Admins"/>

    http://msdn.microsoft.com/library/de...gngrfallow.asp

    "george d lake" <georgel@valley yellowpages.com > wrote in message
    news:u4EJOzlRDH A.2432@TK2MSFTN GP10.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.

    <authenticati on mode="Windows" />

    <identity impersonate="tr ue" />



    <authorizatio n>

    <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\Doma in Hum_Resources" />

    </authorization>







    Comment

    Working...