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