title: LDAP authentification with Devise, Rails 3.2.12
body: <p>I am trying to login using LDAP and Devise, but it does not work for some reason.</p>
  
  <p>In my LDAP file I only have:</p>
  
  <pre><code>host: xxxxxxxx
  port: 389
  attribute: uid
  base: ou=Students, dc=xxx, dc=xx, dc=xx
  ssl: false
  </code></pre>
  
  <p>My model is called User though.</p>
  
  <p>Is it normal for the query that Devise makes on its own to be ... ?</p>
  
  <pre><code>SELECT "users".* FROM "users" WHERE "users"."username" = 'xxxx' LIMIT 1
  </code></pre>
  
  <p>I really couldn't find documentation on this. Could you please help?</p>