Search code examples
jdbcldapshiromixed

Apache shiro: Use ldap for user authentication and database for roles/permissions?


we just started with apache shiro and it works fine in a simple jdbc or ldap based environment.

Be our requirements are the following:

  • Authentication of the users agains a ldap server
  • Roles+Permissions should be stored inside a database

Has anyone some pointers on how this can be done?


Solution

  • There is a different question but the example is exactly what you looking for.

    How do concepts of User (UserAccount) and Realm relate in Apache Shiro?