I would like to ask if anyone can provide an example of web.config for the following situation:
I have a website (ASP.NET) with form authentication (login controls) that I would like to link to our corporate Active Directory. In AD, we defined users as well as groups. Authentication for users (allow users ...) works like a charm, however, when I want to add role authentication (allow roles ...), it does not work. I tried to enable the role manager, but I donβt know exactly how to configure the provider to communicate with AD.
In addition, I would like to have all the settings only in web.config, so as not to authenticate the group in code (I know that this is possible, but I would prefer only a configuration solution).
Although I went through several tutorials on the Internet, most of the role authentication was focused on using a local sql server or Windows authorization, but not AD.
source share