title: Custom authorities with LDAP authentication
body: <p>I’ve found few Spring XML Configuration examples for logging in with LDAP and configuring the authorities of the logged in user with the help of a custom method and not through LDAP.
  Unfortunately, I could not find any Spring Boot example with annotations. </p>
  
  <p>In our case, there is a central LDAP repository in which the usernames and passwords of the users are stored, but the groups of the users are not stored there.</p>
  
  <p>I appreciate any example or reference.
  Thank you in advance.</p>