This won't be the approach that you would need to consider, yet it does provide you with another option to enhance the execution of your Spring Security implementation.
In this approach, we set the user authorities with our own custom usage, as opposed to confirming it from LDAP. There are a few good reasons to do this, and the application's execution is one of them.