title: Configure spring security ldap-server attribute to use different url based on deployed environment
body: <p>We are using spring security and have it working well. I am trying to figure out one thing that has not being obvious - how do I configure ldap-server attribute to use different url based on deployed environment?</p>
  
  <p>This is what I have that is working:</p>
  
  <pre><code>&lt;ldap-server url="ldap://testserver:port/o=blah" manager-dn="cn=bind,ou=Users,o=blah" manager-password="password"/&gt;
  
  &lt;authentication-manager id="authenticationManager" alias="authenticationManager"&gt;
  &lt;ldap-authentication-provider            
      user-search-filter="(cn={0})"           
      user-search-base="ou=Users"           
      group-search-filter="(uniqueMember={0})"           
      group-search-base="ou=groups"           
      group-role-attribute="cn"           
      role-prefix="none"&gt;         
  &lt;/ldap-authentication-provider&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now, how do I configure it to use a different url based on deployed environment?</p>
  
  <p>thanks in advance,
  Sharath</p>