title: sonarqube 5.6 & LDAP 2.0 failing to authenticate
body: <p>I am testing an upgrade to sonarqube 5.6 and have installed the ldap 2.0 plugin &amp; copied the relevant configuration forward to my test 5.6 setup. </p>
  
  <p>The relevant config is</p>
  
  <pre><code>sonar.security.realm=LDAP
  ldap.url=ldaps://xxxx:636
  ldap.bindDn=uid=xxxx,ou=xxxx,dc=xxxx,dc=xxxx
  ldap.bindPassword=xxxx
  ldap.user.baseDn=dc=xxxx,dc=com
  ldap.user.request=(&amp;(objectClass=person)(mail={login}))
  ldap.user.realNameAttribute=cn
  ldap.user.emailAttribute=mail
  </code></pre>
  
  <p>I have the following set in conf/sonar.properties</p>
  
  <pre><code>sonar.log.level=DEBUG
  </code></pre>
  
  <p>On startup I see</p>
  
  <pre><code>2016.07.26 23:57:29 INFO  web[o.s.p.l.LdapContextFactory] Test LDAP connection on ldaps://xxxx:636: OK
  2016.07.26 23:57:29 INFO  web[org.sonar.INFO] Security realm started
  </code></pre>
  
  <p>If I attempt to login, I get "Authentication failed" on the login screen.
  The log file says nothing other than</p>
  
  <pre><code>2016.07.26 23:57:47 DEBUG web[http] GET / | time=67ms
  2016.07.26 23:57:47 DEBUG web[http] GET / | time=187ms
  2016.07.26 23:57:47 DEBUG web[http] GET /sessions/new | time=89ms
  2016.07.26 23:57:53 DEBUG web[http] POST /sessions/login | time=71ms
  </code></pre>
  
  <p>The same configuration works fine with sonarqube 4.5.7 and ldap 1.4</p>
  
  <p>Ideas welcome on how to investigate further.</p>