title: LDAP AUTHENTICATION via vb.net not working
body: <p>I am attempting to authenticate users via LDAP.</p>
  
  <p>I am able to query ldap and fill a listbox with users found in a certain OU.</p>
  
  <p>When i try to authenticate via a user found in the above list, it returns my msgbox of "Failed to Login".</p>
  
  <p>Here is my code:</p>
  
  <p>This is put in a button function</p>
  
  <pre><code>Dim uid As String = txtusername.Text &amp; ",OU=fake,OU=fake,DC=fake,DC=com"
  Dim password As String = txtpassword.Text
  Dim de As New DirectoryEntry("LDAP://fake.com/OU=fake,OU=fake,DC=fake,DC=com", uid, password, AuthenticationTypes.None)
  
  Try
      Dim ds As DirectorySearcher = New DirectorySearcher(de)
      ds.FindOne()
      MsgBox("Login!")
  Catch
      MsgBox("Fail!")
  End Try
  </code></pre>