Try our conversational search powered by Generative AI!

Setting up authorization for intranet


We're building an intranet in CMS 7 and having some issues when it comes to getting the config in place for authorization.

Anonymous Auth and Forms Auth have been disabled, Windows Auth has been enabled in IIS. We're trying to understand whether WindowsRoleProvider will do it for us or if we need to go with the ActiveDirectoryRoleProvider. No local groups exists.

We've tried to replace all ocurrences of WebAdmins with the corresponding AD group name (in web.config and episerverframework.config) but without luck. It won't authorize.

Do we need to create local WebAdmin group on the server and nest the AD group in that? Or is there a better way?

I have read Fredrik's article (that is commonly refered to) and pretty much all other articles on the subject but I fail to find a good documentation on how to set up Episerver for an intranet, using integrated Windows/AD authentication.

Any help is appreciated!

May 21, 2013 14:05

I should say that authentication is working fine - if I'm on a domain machine I will be automatically logged in, and if I come from outside I will be prompted. Any user that's in the AD can login. So my question is about authorization - how to map the AD groups to permissions in Episerver.

May 21, 2013 14:38

WOOOHOOO! Managed to get it working now. The little thing that I was missing was the deletePrefix attribute on the WindowsMembershipProvider. So with only two changes to web.config and episerverframework.config we managed to get AD authorization going - using Windows*Provider.

Here's what we did:


<membership ...>
    <add name="WindowsMembershipProvider" type="EPiServer.Security.WindowsMembershipProvider, EPiServer" deletePrefix="BUILTIN\,DOMAINNAME\" searchByEmail="true" />


    <add name="WebAdmins" roles="ADMINGROUP_IN_AD" mode="Any" type="EPiServer.Security.MappedRole, EPiServer.Framework" />

The nice thing about this is that we don't need to make any changes to the location elements in web.config. We simply create a virtual WebAdmins group which points to our AD Admin group. And thanks to deletePrefix this group can be resolved correctly. Nice and clean approach!

We've also tried to nest groups in AD and that works just fine so I don't really know why people say that there is a limitation with nesting when using the Windows*Provider?


May 21, 2013 15:44
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.