How to manually query LDAP through Acegi's beans?

Posted by Veggen Skrikk on Stack Overflow See other posts from Stack Overflow or by Veggen Skrikk
Published on 2010-03-10T19:23:12Z Indexed on 2010/03/15 15:59 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I have an application using Acegi (earlier version of Spring Security) and LDAP for logins. Now, a specific scenario requires me to discover user's LDAP groups at arbitrary time (not at login time).

Is it possible to use already set up Acegi to handle this situation?

I'm thinking of using the configured LdapAuthProvider (or LdapAuthPopulator or whatever's appropriate) to get all the groups associated with a given username. Is this possible?
If yes, please, please, give some hints how it should be done...

© Stack Overflow or respective owner

Related posts about ldap

Related posts about spring-security