I would like to configure both LDAP and Mysql database for user and role management.
Recently I have integrated the users and role management with LDAP and Spring security, But the user and role management can also be fetched from the database.
For example, while creating a user account there will be one option to choose whether the user should be stored in LDAP or in database. If the user is stored in databse then it fetches from the database or else from LDAP.
But how can I configure the spring security to search for the user in database and LDAP?.
Please, Can anyone provide me with the spring configuration code snippet? I am new to spring security and LDAP. Thanks in advance.