title: How to use ASP.NET authentication with active directory?
body: <p>I have my config setup like below:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="ADConnectionString" connectionString="LDAP://myldap/CN=Users,DC=nevco,DC=local"/&gt;
    &lt;/connectionStrings&gt;
  &lt;system.web&gt;
  &lt;authentication mode="Forms"&gt;
    &lt;forms name=".ADAuthCookie" timeout="10" loginUrl="Login.aspx" defaultUrl="Default.aspx" /&gt;
  &lt;/authentication&gt;
      &lt;membership defaultProvider="DomainLoginMembershipProvider"&gt;
        &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name="DomainLoginMembershipProvider"
               type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
               connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" /&gt;
        &lt;/providers&gt;
       &lt;/membership&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I can attempt to log on but every time it says I am using the incorrect username/password.  Does it look like I am doing anything wrong above?  Is there any way for me to find more information on why it's not finding my username/pass?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Do I need to provide a Username and Password in my membership/providers section?</p>