title: a list of all users: Ldap referral error (LDAPReferralException)
body: <p>I am using active directory and want a list of all users, basically in dotnet core. But I am receiving an exception:</p>
  
  <blockquote>
    <p>Search result reference received, and referral following is off</p>
  </blockquote>
  
  <p>Below is my code.</p>
  
  <pre><code> LdapSearchResults lsc = lc.Search("DC = xyz, DC = local",  LdapConnection.SCOPE_ONE , "(|(objectClass = person)(objectClass = user))", null, false);
  </code></pre>