Valley
Valley

Reputation: 71

windows authentication for multiple user in same domain

I want all the users from same domain name: XYZ to access my application below is my code.

<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Windows"  />
    <authorization>
        <allow users="XYZ\HOW TO GRANT ACCESS TO ALL THE USERS HERE?" />
        <deny users="*" />
    </authorization>
    <identity impersonate="true" />
</system.web>

Upvotes: 1

Views: 636

Answers (2)

Mike
Mike

Reputation: 71

Try this one and also disable Anonymous Authentication and only enable Integrated Windows Auth.

`<authentication mode="Windows" />
   <authorization>
   <allow roles="XYZ\Domain Users" />
   <deny users="*" />
 </authorization>`

Upvotes: 1

atrljoe
atrljoe

Reputation: 8151

You can use the Domain Users

<authorization>
  <allow roles="XYZ\Domain Users"/>
</authorization>

Upvotes: 2

Related Questions