Grails with SpringSecurity, Local Users, and LDAP

I use the SpringSecurity-framework for authentication, and it works as long as there is a user with the same name in my local database.

However, I need an administrator account that is stored only in the local database and has no equivalent in LDAP.

So, how to configure SpringSecurity so that it uses LDAP, and if it cannot find the user and password in the local database?

+3
source share
1 answer

After hours of searching for Google search results, source code and documentation, I finally got it!

, , SecurityConfig.groovy


    providerNames = ['daoAuthenticationProvider',
                     'ldapAuthProvider']

, . , , - .

+3

Source: https://habr.com/ru/post/1730364/


All Articles