Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max Mumford 266 posts 293 karma points
    Jul 02, 2012 @ 17:39
    Max Mumford
    0

    Custom members membership provider - edit roles in IIS7

    Hi all,

    I need to use the out of the box asp.net membership provider for the members section of Umbraco. To do this I ran the .exe mentioned in this post http://msdn.microsoft.com/en-us/library/ms229862%28v=vs.80%29.aspx to create all the required membership tables.

    I then editted the web.config to tell Umbraco to use this new provider for members. It now looks like this:

    <!-- Membership Provider -->
        <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" passwordAttemptWindow="10" />
          </providers>
        </membership>
    
        <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
          <providers>
            <clear />
                  <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </roleManager>

    When I create a new role and open it to edit it, it says "... (not editable from umbraco)". I was hoping I could use the IIS roles interface to edit the roles, however in the features list for the site there are no buttons for .NET Users or .NET Roles. There is a "Providers" button.

    How do I either edit the roles in a gui, or make IIS 7 pick up the roles provider?

    Thanks,
    /Max

Please Sign in or register to post replies

Write your reply to:

Draft