Note that there are some explanatory texts on larger screens.

plurals
  1. POSitecore authenticate users against external membership database
    primarykey
    data
    text
    <p>I have a Sitecore site where I want to have website visitor accounts stored in an external asp.net membership database but keep Sitecore content editors/admins managed via the Sitecore interface (and hence stored in the 'Core' database).</p> <p>I've read through the following forum post <a href="http://sdn.sitecore.net/SDN5/Forum/ShowPost.aspx?postid=35305">http://sdn.sitecore.net/SDN5/Forum/ShowPost.aspx?postid=35305</a></p> <p>in which the following documents are mentioned <a href="http://sdn.sitecore.net/upload/sitecore6/62/membership_providers_sc62-a4.pdf">http://sdn.sitecore.net/upload/sitecore6/62/membership_providers_sc62-a4.pdf</a> <a href="http://sdn.sitecore.net/upload/sitecore6/62/security_api_cookbook_sc60-62-a4.pdf">http://sdn.sitecore.net/upload/sitecore6/62/security_api_cookbook_sc60-62-a4.pdf</a> <a href="http://sdn.sitecore.net/upload/sdn5/modules/ad/low-level_sitecore_cms_security_and_custom_providers-a4.pdf">http://sdn.sitecore.net/upload/sdn5/modules/ad/low-level_sitecore_cms_security_and_custom_providers-a4.pdf</a></p> <p>but none of these seem to provide a complete picture of what I need to do.</p> <p>I've currently got the the <code>&lt;membership&gt;</code> section set up to use the 'switcher' provider (with a corresponding provider pointing to my membership DB) and the <code>&lt;roleManager&gt;</code> section also set up to use the switcher provider again with a corresponding provider pointing to said membership DB.</p> <p>So far I have only succeeded in breaking the user manager in the Sitecore desktop (it throws either the exception <code>Item has already been added. Key in dictionary: 'extranet\Anonymous' Key being added: 'extranet\Anonymous'</code> if Sitecore has created the extranet\Anonymous account, or <code>Object reference not set to an instance of an object.</code> if I've deleted that user account.</p> <p>As background information I'm using Sitecore 6.5 and the relevant section of my web config is as follows</p> <pre><code>&lt;membership defaultProvider="switcher"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add name="sitecore" type="Sitecore.Security.SitecoreMembershipProvider, Sitecore.Kernel" realProviderName="myProvider" providerWildcard="%" raiseEvents="true"/&gt; &lt;add name="sql" type="System.Web.Security.SqlMembershipProvider" connectionStringName="core" applicationName="sitecore" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="256"/&gt; &lt;add name="switcher" type="Sitecore.Security.SwitchingMembershipProvider, Sitecore.Kernel" applicationName="sitecore" mappings="switchingProviders/membership"/&gt; &lt;add name="myProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="sitecore" connectionStringName="myDatabase" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="10" /&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;roleManager defaultProvider="switcher" enabled="true"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add name="sitecore" type="Sitecore.Security.SitecoreRoleProvider, Sitecore.Kernel" realProviderName="myProvider" raiseEvents="true"/&gt; &lt;add name="sql" type="System.Web.Security.SqlRoleProvider" connectionStringName="core" applicationName="sitecore"/&gt; &lt;add name="switcher" type="Sitecore.Security.SwitchingRoleProvider, Sitecore.Kernel" applicationName="sitecore" mappings="switchingProviders/roleManager"/&gt; &lt;add name="myProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="sitecore" connectionStringName="myDatabase" /&gt; &lt;/providers&gt; &lt;/roleManager&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload