struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Kulkarni <ashish.kulkarn...@gmail.com>
Subject Re: [OT] Authorization and Authentication Question
Date Wed, 11 Mar 2009 19:23:37 GMT
HiI was able to configure LDAP to do authentication, but how do i use
UserDetailsService,
is there any example of how to use this and implement it in my project to
get user and role from DB2 database


On Wed, Mar 11, 2009 at 10:50 AM, Ashish Kulkarni <
ashish.kulkarni13@gmail.com> wrote:

> HiThanks for the help, i will check and get back to this mail with the
> results
>
>
> On Wed, Mar 11, 2009 at 10:11 AM, Security Management <
> list-subscriptions@secmgmt.com> wrote:
>
>> I got it working in less than a day using the docs.  The "petshop"
>> tutorial
>> page got me going.
>>
>> -----Original Message-----
>> From: Ashish Kulkarni [mailto:ashish.kulkarni13@gmail.com]
>> Sent: Wednesday, March 11, 2009 9:53 AM
>> To: Struts Users Mailing List
>> Subject: Re: [OT] Authorization and Authentication Question
>>
>> HiThanks for the suggestion, this application which i need to do this is
>> developed using Struts 1.2.6, can i add Spring Security to this, just as a
>> drop in, is there any how to documents to add spring support to struts web
>> application
>>
>> Ashish
>>
>> On Tue, Mar 10, 2009 at 7:43 PM, Jim Kiley <jhkiley@summa-tech.com>
>> wrote:
>>
>> > 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 <wesw@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-unsubscribe@struts.apache.org
>> > > For additional commands, e-mail: user-help@struts.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > Jim Kiley
>> > Technical Consultant | Summa
>> > [p] 412.258.3346 [m] 412.445.1729
>> > http://www.summa-tech.com
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message