title: spring data mongo db ldap authentication
body: <p>Our company recently changed from Basic auth to LDAP authentication and regular apps are now using <code>authSource=$external&amp;authMechanism=PLAIN</code> on the URL. </p>
  
  <p>This works fine on a normal app but I can't figure out how to set these using Spring Data. Surely there is a way to do this, right?</p>