Results 1 to 4 of 4

Thread: Ldap + Dao

  1. #1
    Join Date
    Feb 2007
    Posts
    102

    Arrow 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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.

  3. #3
    Join Date
    Mar 2007
    Location
    Lahore, Pakistan
    Posts
    2

    Default 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

  4. #4
    Join Date
    Feb 2007
    Posts
    102

    Default

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •