I guess you have something like this in web.config:
<membership defaultProvider="MultiplexingMembershipProvider" userIsOnlineTimeWindow="10" hashAlgorithmType="HMACSHA512"> ... </membership> <roleManager enabled="true" defaultProvider="MultiplexingRoleProvider" cacheRolesInCookie="true"> ... </roleManager>
Just replace
<membership defaultProvider="MultiplexingMembershipProvider" userIsOnlineTimeWindow="10" hashAlgorithmType="HMACSHA512">
with
<membership defaultProvider="SqlServerMembershipProvider" userIsOnlineTimeWindow="10" hashAlgorithmType="HMACSHA512">
and
<roleManager enabled="true" defaultProvider="MultiplexingRoleProvider" cacheRolesInCookie="true">
with
<roleManager enabled="true" defaultProvider="SqlServerRoleProvider" cacheRolesInCookie="true">
Multiplexing providers are enabled by default in Alloy, and they allow you to use both Windows and custom (SQL Server) login.
It's still not possible to add sql user to an AD group. I want to create a new admin user (using SqlServerMembershipProvider) and add that user to the Administrators group.
If you already have Administrators AD group, then you should create a new group in SQL Server, for example WebAdmins, and give it admin permissions.
You can check this article: http://dcaric.com/blog/episerver-how-to-log-in-to-admin-edit-mode
I used ASP.NET Configuration tool to create users / groups, but since you have access to admin mode, you can do it from EPiServer.
As administrators are coming from Windows role provider - you will not be able to add users directly to that group - as that provider becomes read-only inside EPiServer.
How I'm doing it with fresh EPiServer installation:
a) in Alloy windows is configured as 1st providers (membership and role).
b) if you know any local user with Administrators permissions - use that, otherwise create new user in Administrators group.
c) login in EPiServer with that user
d) create new roles in "Group management" under Admin in EPiServer UI, called: WebAdmins, CmsAdmins (these are built-in roles).
e) create new user (this will be stored in SqlMembershipProvider) and add it to both roles
Now you should be able to login in EPiServer using new user. If you succeed - you can remove user created in step b)
Thanks Dejan, 3 years later still your post is very helpful.
Just a top up to Dejan Caric's answer, as now ASP.NET configuration option has been removed from Visual Studio newer versions. In order to create users locally please follow video here to access the page or summarised as below: https://www.youtube.com/watch?v=-t_bJW80NQQ
It works for me. Hope it helps you as well reach the ASP.NET Configuration page and then follow D.Caric's post to create user.
Hi.
How do I reconfigure epi server to be able to login to admin area with an epi account? (default is windows/ad only in alloy)
Guess I have to put configuration in web.config somehow.