title: SonarQube LDAP Authentication seems to load but won't allow login via domain user
body: <p>I've been trying to setup SonarQube (v4.1) with the LDAP authentication plugin (v1.4) and I just can't get it to authenticate against my domain user. My config is setup as follows:</p>
  
  <pre><code>#########################
  # LDAP configuration
  #########################
  # General Configuration
  sonar.security.realm=LDAP
  sonar.security.savePassword=true
  sonar.security.updateUserAttributes=true
  sonar.authenticator.downcase=true
  sonar.authenticator.createUsers=true
  
  ldap.authentication=simple
  ldap.realm=mydomain.co.uk
  ldap.bindDn=CN=USERNAME,OU=developers,DC=mydomain,DC=co,DC=uk
  ldap.bindPassword=PASSWORD
  
  # User Configuration
  #ldap.user.baseDn=OU=developers,DC=mydomain,DC=co,DC=uk
  ldap.user.request=(&amp;(objectClass=user)(sAMAccountName={login}))
  ldap.user.realNameAttribute=cn
  ldap.user.emailAttribute=mail
  
  # Group Configuration
  ldap.group.baseDn=CN=Domain Users,CN=Users,DC=adastra,DC=co,DC=uk
  ldap.group.request=(&amp;(objectClass=group)(member={dn}))
  </code></pre>
  
  <p>and the log outputs the following messges that seem to say that the LDAP connection is working fine:</p>
  
  <pre><code>2014.01.20 16:12:32 INFO  [org.sonar.INFO]  Security realm: LDAP
  2014.01.20 16:12:32 INFO  [o.s.p.l.LdapSettingsManager]  Auto discovery mode
  2014.01.20 16:12:32 INFO  [o.s.p.l.LdapSettingsManager]  Detected server: ldap://dc02.mydomain.co.uk:389
  2014.01.20 16:12:32 INFO  [o.s.p.l.LdapSettingsManager]  User mapping: LdapUserMapping{baseDn=dc=mydomain,dc=co,dc=uk, request=(&amp;(objectClass=user)(sAMAccountName={0})), realNameAttribute=cn, emailAttribute=mail}
  2014.01.20 16:12:32 INFO  [o.s.p.l.LdapSettingsManager]  Group mapping: LdapGroupMapping{baseDn=CN=Domain Users,CN=Users,DC=mydomain,DC=co,DC=uk, idAttribute=cn, requiredUserAttributes=[dn], request=(&amp;(objectClass=group)(member={0}))}
  2014.01.20 16:12:32 INFO  [o.s.p.l.LdapContextFactory]  Test LDAP connection on ldap://dc02.mydomain.co.uk:389: OK
  2014.01.20 16:12:32 INFO  [org.sonar.INFO]  Security realm started
  </code></pre>
  
  <p>But it just doesn't seem to work for my user unless I use a local user. When enabling logging on the wrapper by setting:</p>
  
  <pre><code>wrapper.console.loglevel=DEBUG
  </code></pre>
  
  <p>I get the following error in the logs which doesn't really help that much! :)</p>
  
  <pre><code>2014.01.20 17:07:10 ERROR [rails]  Error from external users provider: 
  </code></pre>