title: Spring Boot Security/LDAP direct bind with user credentials
body: <p>Is there a way to authenticate a user with Spring Boot Security/LDAP using the credentials instead of first binding with some functional credentials and then trying to bind the user?</p>
  <p>I want to not need to use <code>managerDn</code> and <code>managerPassword</code> like in:</p>
  <pre class="lang-java prettyprint-override"><code>auth.ldapAuthentication()
      .userSearchBase(&quot;&quot;)
      .userSearchFilter(&quot;(samAccountName={0})&quot;)
      .contextSource()
          .url(&quot;ldap://&lt;url&gt;/&lt;root&gt;&quot;)
          .managerDn(&quot;functionUser&quot;)
          .managerPassword(&quot;password&quot;)
  </code></pre>