title: DirectorySearcher User search filter is invalid
body: <blockquote>
    <p>The (&amp;(objectClass=user)(|(&amp;(SAMAccountName=jdoe*))) search filter is
    invalid.</p>
  </blockquote>
  
  <p>I'm trying to locate John Doe's user account by his username, jdoe. I've used a number of variants of this search string, and they all return this error. What am I doing wrong? I'm building it out like this:</p>
  
  <pre><code>var deSearch = new DirectorySearcher(de);
  deSearch.Filter = string.Format("(&amp;(objectClass=user)(|(&amp;(SAMAccountName={0}*)))", uname);
  SearchResult result = deSearch.FindOne();
  </code></pre>