Asp.Net Role-based authentication using Security groups in Active Directory

后端 未结 1 841
耶瑟儿~
耶瑟儿~ 2020-12-24 10:26

I am attempting to do something simple (I thought) - securing my application using roles-based security using Active Directory groups in our Domain.

Specifically, I

相关标签:
1条回答
  • 2020-12-24 10:54

    You probably just need to add a RoleProvider to your web.config to tell the app how to do searches against AD.

    Sample code from here.

    <roleManager defaultProvider="WindowsProvider" 
      enabled="true"
      cacheRolesInCookie="false">
      <providers>
        <add
          name="WindowsProvider"
          type="System.Web.Security.WindowsTokenRoleProvider" />
      </providers>
    </roleManager>
    
    0 讨论(0)
提交回复
热议问题