Note that there are some explanatory texts on larger screens.

plurals
  1. POAnonymous users with sitecore domains
    text
    copied!<p>I'm checking if this is a sitecore bug, or if I'm missing something obvious.</p> <p><strong>EDIT FOR CLARIFICATION</strong>: The problem I'm having is that I'm trying to set up the configuration settings in the Domains.config file so that Sitecore shouldn't be creating (and/or returning) an anonymous user for a domain set up this way. However, if I use the Domain.GetUsers() function on the domain, I still get the anonymous user returned.</p> <p>The membership provider is a custom built and connects to LDAP in read only mode.</p> <h1>Details</h1> <p>Using Sitecore 6.4.1 and given the following domain configuration in App_Config/Security/domains.config</p> <pre><code>&lt;domain name="DOMAINNAME" ensureAnonymousUser="false" anonymousUserName="" everyoneRoleName="" /&gt; </code></pre> <p>and these comments in that domain.config file</p> <pre><code>anonymousUserName: &lt;snip&gt; Set to blank to disable the anonymous user for the domain. Optional ensureAnonymousUser: Indicates if the domain should ensure that an anonymous user for the domain exists in the Membership database. Optional - default value: false everyoneRoleName: &lt;snip&gt; Set to blank to disable the everyone role for the domain. Optional - default value: Everyone </code></pre> <p>If I use the following code,</p> <pre><code>List&lt;Sitecore.Security.Accounts.User&gt; users = new List&lt;Sitecore.Security.Accounts.User&gt;(); var domain = Sitecore.Security.Domains.Domain.GetDomain(DOMAINNAME); users.AddRange(domain.GetUsers().ToArray&lt;Sitecore.Security.Accounts.User&gt;()); </code></pre> <p>I get the anonymous user included in users list. I assumed from the comments in the domain.config file that I shouldn't get the anonymous user if I set up my domain as above. </p> <p>Is there something obvious that I'm missing?</p>
 

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