title: Jenkins connection to LDAP
body: <p>Ok, I am completely stumped here. I am running the Jenkins application (v1.635) for Mac OSX. I am trying to connect to Active Directory through the LDAP Security Realm. No matter what I try (and I have tried a good 30+ variants), the login fails and nothing gets written to the jenkins.log file.</p>
  
  <p>I have ApacheDirectoryStudio installed and it connects flawlessly, so I know it is a Jenkins issue (and not a network or ACL issue). </p>
  
  <p>The LDAP server is using a self-signed SSL certificate, which I installed into the relevant cacerts file.</p>
  
  <p>Here's my LDAP configuration (minus the sensitive corporate stuff)</p>
  
  <pre><code>Server: ldaps://subdomain.domain.com:636
  root DN: DC=domain,DC=com
  User search base: OU=Users and Computers
  User search filter: sAMAccountName={0}
  Group search base: OU=Jenkins Groups,OU=Groups
  Group search filter: (&amp;(objectclass=group)(cn={0}))
  Group membership: Parse user attribute for list of groups
      Group membership attribute: memberOf
  Manager DN: CN=jenkins,OU=Users and Computers,DC=domain,DC=com
  Manager Password: password
  Display Name LDAP attribute: displayname
  Email Address LDAP attribute: mail
  Disable Ldap Email Resolver: unchecked
  </code></pre>
  
  <p>Any help is greatly appreciated. Even getting the log file to spit out some info would be great.</p>
  
  <p>Thanks!</p>
  
  <p>Edit #1: Sometimes an exception does show up in the log file. Hopefully this helps.</p>
  
  <pre><code>    Nov 09, 2015 12:00:49 PM hudson.security.LDAPSecurityRealm$LDAPUserDetailsService loadUserByUsername
  WARNING: Failed to search LDAP for username=myuser
  org.acegisecurity.ldap.LdapDataAccessException: Unable to connect to LDAP server; nested exception is javax.naming.CommunicationException: subdomain.domain.com:636 [Root exception is java.net.SocketTimeoutException: Connect timed out]
  </code></pre>
  
  <p>Edit #2: I have to go to an 1 1/2 hour meeting, so my responses will be delayed. Sorry.</p>