I'd agree.  Have your UserDetailsService implementation hit LDAP for
authentication, and pass GrantedAuthorities[] on to the returned object by
asking DB2 about that info if the user is authenticated.
jk

On Tue, Mar 10, 2009 at 6:44 PM, Wes Wannemacher <w...@wantii.com> wrote:

> On Tuesday 10 March 2009 17:56:30 Ashish Kulkarni wrote:
> > HiIs it possible to Authenticate user using LDAP, but authorize using a
> DB2
> > database,
> > I have situation where i need to authenticate and authorize some web
> pages.
> >
> > I want to authenticate users against LDAP, but have to maintain
> > authorization list, roles etc in DB2 database
> >
> > Has anyone done anything like this before, i am using Weblogic and tomcat
> > application servers
> >
>
> I would suggest using Spring Security. I think what you'll need to do is
> create a bean that implements the
> org.springframework.security.userdetails.UserDetailsService interface, then
> wire it into your configuration.
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Reply via email to