title: Spring security using LDAP authentication without using manager-dn and manager-password
body: <p>I am using Spring Security for ldap authentication and have this configuration on my spring-security.xml</p>
  
  <pre><code>        &lt;security:authentication-manager&gt;
          &lt;security:ldap-authentication-provider  
                  user-search-filter="xxxxx" 
                  user-search-base=""
                  group-search-filter="xxxxx"
                  group-search-base=""
                  group-role-attribute="cn"
                  role-prefix="ROLE_"&gt;
          &lt;/security:ldap-authentication-provider&gt;
      &lt;/security:authentication-manager&gt;
  
      &lt;security:ldap-server url="ldap://servername54389/dc=..." manager-dn="xxxx" manager-password="xxxx" /&gt;
  </code></pre>
  
  <p>This works well for me. However, we cannot put manager-dn and manager-password like this in the xml. Is there a way to avoid putting manager-password in the code and still have it work? If I simply remove manager-dn and manager-password in the xml, it does not work and gives Access denied error. </p>
  
  <p>Any details/help on this would be greatly appreciated</p>