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?
After hours of searching for Google search results, source code and documentation, I finally got it!
, , SecurityConfig.groovy
providerNames = ['daoAuthenticationProvider', 'ldapAuthProvider']
, . , , - .
Source: https://habr.com/ru/post/1730364/More articles:Why is my LocationListener getting null? - androidCustom error pages shown using IIS6, not web.config settings - web-configMix lines in a file in .NET. - c #Как получить пользовательскую временную шкалу twitter в С# с помощью Twitterizer - c#What happens between a method call and a method input (C #)? - c #What topic in discrete mathematics is considered a prerequisite for a course of data structures? - algorithmPassing constructor parameters when resolving types in Unity: best practice - c #Войдите на сайт и выберите параметры с помощью Python - pythonurllib2: submitting the form and then redirecting - pythonКак сделать python urllib2 следовать за перенастройкой и сохранить метод post - pythonAll Articles