title: Errot while Integrating Sonarqube with LDAP
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>sonar.security.realm=LDAP
  ldap.url=ldap://ldap-company.com
  ldap.bindDn=CN=xxxxx,OU=Restricted,OU=xxxx,DC=company,DC=com
  ldap.bindPassword=none
  
  # User Configuration
  ldap.user.baseDn=ou=Users,dc=mycompany,dc=com
  ldap.user.request=(&amp;(objectClass=inetOrgPerson)(uid={login}))
  ldap.user.realNameAttribute=cn
  ldap.user.emailAttribute=mail
  
  
  # Group Configuration
  ldap.group.baseDn=OU=Groups,OU=companyname,DC=comapany,DC=com
  ldap.group.request=(&amp;(objectClass=posixGroup)(memberUid={uid}))</code></pre>
  </div>
  </div>
  </p>
  
  <p>These are my configurations----sonarqube version-6.2
  Database-Embedded</p>
  
  <p>Do you guys have any idea how to integrate LDAP with Sonarqube. I tried different ways but couldn't get succeeded. this I my configuration for sonar.properties</p>
  
  <p>I got an error <code>2017.03.15 15:57:25 ERROR web[AVrTij8L9uoXNT8qAAAK][o.s.s.a.RealmAuthenticator] Error during authentication
  org.sonar.plugins.ldap.LdapException: Unable to retrieve details for user xxx in &lt;default&gt;</code> and also <code>Caused by: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090752, comment: In order to perform this operation a successful bind must be completed on the connection., dat</code></p>
  
  <p><code>2017.03.15 15:55:05 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
  2017.03.15 15:55:49 ERROR web[AVrTij8L9uoXNT8qAAAJ][o.s.s.a.RealmAuthenticator] Error during authentication
  org.sonar.plugins.ldap.LdapException: Unable to retrieve details for user xxxxx in &lt;default&gt;
          at org.sonar.plugins.ldap.LdapUsersProvider.getUserDetails(LdapUsersProvider.java:84)
          at org.sonar.plugins.ldap.LdapUsersProvider.doGetUserDetails(LdapUsersProvider.java:58)
          at org.sonar.server.authentication.RealmAuthenticator.doAuthenticate(RealmAuthenticator.java:89)
          at org.sonar.server.authentication.RealmAuthenticator.authenticate(RealmAuthenticator.java:83)
          at org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:56)
          at org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:45)
          at org.sonar.server.authentication.ws.LoginAction.authenticate(LoginAction.java:91)</code></p>
  
  <p>This is my web.log</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>2017.03.16 13:10:09 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
  2017.03.16 13:10:09 INFO  web[][org.sonar.INFO] Security realm: LDAP
  2017.03.16 13:10:09 INFO  web[][o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=DC=company,DC=com, request=(&amp;(objectClass=inetOrgPerson)(uid={0})), realNameAttribute=cn, emailAttribut
  e=mail}
  2017.03.16 13:10:09 INFO  web[][o.s.p.l.LdapSettingsManager] Group mapping: LdapGroupMapping{baseDn=OU=Groups,OU=comapny,Dc=company,DC=com, idAttribute=cn, requiredUserAttributes=[uid], request=(&amp;(objectC
  lass=posixGroup)(memberUid={0}))}
  2017.03.16 13:10:09 INFO  web[][o.s.p.l.LdapContextFactory] Test LDAP connection: FAIL
  2017.03.16 13:10:09 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
  2017.03.16 13:10:09 ERROR web[][o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.web.PlatformServletContextListener
  org.sonar.plugins.ldap.LdapException: Unable to open LDAP connection
          at org.sonar.plugins.ldap.LdapContextFactory.testConnection(LdapContextFactory.java:206)
          at org.sonar.plugins.ldap.LdapRealm.init(LdapRealm.java:63)
          at org.sonar.server.user.SecurityRealmFactory.start(SecurityRealmFactory.java:84)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)​</code></pre>
  </div>
  </div>
  </p>