Announcement Announcement Module
Collapse
No announcement yet.
Ldap + Dao Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ldap + Dao

    Is it possible to use LDAP to check against account/password and to use RDBMS to check against authorized permission or role, under the framework of ACEGI? Thanks.

  • #2
    I don't see why not, you'd just have to take a look at the code for the relevent points to override for your custom behaviour.

    Comment


    • #3
      Get Roles for Database

      LdapAuthenticationProvider uses LdapAuthoritiesPopulator to retrieve Roles/Authorities. The defualt implementation comes with Acegi Security is DefaultLdapAuthoritiesPopulator that interacts with Directory to retrieve user's roles.

      If you want to get roles/authorities information from database. You just need to implement LdapAuthoritiesPopulator interface.

      You will write your JDBC logic in LdapAuthoritiesPopulator's method "GrantedAuthority[] getGrantedAuthorities(LdapUserDetails userDetails)".

      If you still have problem, do a post again.
      Asif Shahzad

      Comment


      • #4
        Originally posted by asifsh7 View Post
        If you want to get roles/authorities information from database. You just need to implement LdapAuthoritiesPopulator interface.

        You will write your JDBC logic in LdapAuthoritiesPopulator's method "GrantedAuthority[] getGrantedAuthorities(LdapUserDetails userDetails)".
        Thanks a lot for your information. This means that I have to code a new class to implement LdapAuthoritiesPopulator.

        Comment

        Working...
        X