title: Why does LDAP authentication fail after upgrading from Artifactory Pro 6.23.7 to 7.12.6?
body: <p>We are currently running Artifactory Pro 6.23.7 in production using the Docker setup and would like to upgrade to Artifactory Pro 7.12.6.
  To test this I created a clone of the production VM and followed the upgrade instructions <a href="https://www.jfrog.com/confluence/display/JFROG/Upgrading+Artifactory#UpgradingArtifactory-DockerUpgradedockerupgr6" rel="nofollow noreferrer">here</a>. Artifactory starts successfully, but when trying to login with my LDAP user I get several errors in the logs such as</p>
  <pre><code>2021-01-20T10:34:25.910Z [jfac ] [INFO ] [25da744de0923216] [j.a.s.s.t.TokenServiceImpl:438] [27.0.0.1-8040-exec-3] - Deleted 1 tokens with user: 'sebastian.gerau' and scope 'authentication:remember-me'.
  2021-01-20T10:34:26.311Z [jfrt ] [WARN ] [4fdb3eea5a082893] [o.a.s.l.LdapServiceImpl:232   ] [http-nio-8081-exec-9] - No search filter defined.
  2021-01-20T10:34:26.312Z [jfrt ] [WARN ] [4fdb3eea5a082893] [o.a.s.l.LdapServiceImpl:138   ] [http-nio-8081-exec-9] - Cannot find user: 'sebastian.gerau', LDAP settings not valid
  2021-01-20T10:34:26.306Z [jfrt ] [WARN ] [7853637b73ed5693] [o.a.s.l.LdapServiceImpl:232   ] [http-nio-8081-exec-8] - No search filter defined.
  2021-01-20T10:34:26.317Z [jfrt ] [WARN ] [7853637b73ed5693] [o.a.s.l.LdapServiceImpl:138   ] [http-nio-8081-exec-8] - Cannot find user: 'sebastian.gerau', LDAP settings not valid
  2021-01-20T10:34:26.319Z [jfrt ] [WARN ] [7853637b73ed5693] [o.a.s.l.LdapServiceImpl:232   ] [ttp-nio-8081-exec-10] - No search filter defined.
  2021-01-20T10:34:26.322Z [jfrt ] [WARN ] [7853637b73ed5693] [o.a.s.l.LdapServiceImpl:138   ] [ttp-nio-8081-exec-10] - Cannot find user: 'sebastian.gerau', LDAP settings not valid
  2021-01-20T10:34:26.337Z [jfrt ] [WARN ] [4fdb3eea5a082893] [o.a.s.l.LdapUtils:116         ] [http-nio-8081-exec-9] - Updating user: 'sebastian.gerau' after LDAP login authentication failure
  </code></pre>
  <p>I also see a popup with the message &quot;This request is blocked due to recurrent login failures, please try again in # seconds.&quot;</p>
  <p>It's possible to login using the local admin user. Doing so I was able to confirm that the LDAP configuration does indeed match that of the production system and that a LDAP connection test succeeds with the exact same user that failed during login.</p>
  <p>The questions are:</p>
  <ul>
  <li>Has anyone encountered the same or a similar issue when upgrading from 6.x to 7.x?</li>
  <li>What could cause this behavior, i.e. the connection
  test succeeds but login fails - all with the same user?</li>
  <li>What would cause these recurrent login failures?</li>
  </ul>
  <p>I tried adding the search filter (mentioned in the log output), checked the LDAP logs (all looks good there), and even deleted and recreated the LDAP config from scratch. Nothing seems to change the behavior. Also, there is nothing in the service logs that would indicate a problem.</p>