My first approach is to make use of the existing infrastructure.

The existing webapp is configured to authenticate via JAAS. So I
reconfigured the tomcat server to use this realm not only in the context of
the 'old' application, but to the whole verver. I added the following to
the server.xml:
<Host appBase="webapps" autoDeploy="true" name="localhost"
unpackWARs="true">
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />

<Realm appName="MyServiceLogin"
className="org.apache.catalina.realm.JAASRealm"
userClassNames="nl.example.security.User"
roleClassNames="nl.example.security.Role" />
</Host>

Rave is installed alongside this webapp and after a succesfull login the
serverwide cookie JSESSIONIDSSO is set.

I followed the instructions in:
http://rave.apache.org/documentation/sso-login.html

Still when logged in I am redirected at the login.jsp listed
in applicationContext-security-extension-sso.xml

Am I missing something when I do things like this? Is this a probable path
to success?

Grz.
Wouter

On Thu, Sep 20, 2012 at 4:38 PM, Raminderjeet Singh <
[email protected]> wrote:

> Hi Wouter,
>
> File you need to look into is
> rave-portal-resources/src/main/webapp/WEB-INF/applicationContext-security.xml.
> You will see example of LDAP in this file for external login. [1] have more
> details about the configuration.
>
> 1.
> http://static.springsource.org/spring-security/site/docs/3.1.x/reference/jaas.html
>
> Please share your experience with the community.
>
> Thanks
> Raminder
>
>
> On Sep 20, 2012, at 3:08 AM, Wouter Roosendaal wrote:
>
> > Hi,
> >
> > For sometime I have been trying to get Rave to work with an existing
> JAAS login mechanism. We have a LoginModule that is used by our webapps
> that run on Tomcat and authenticate against our JBoss application.
> >
> > I am really not experienced with Spring and especially not with
> Spring-security. Simply following the tutorials did not get me anything
> working yet. Can anyone point me into the right direction regarding JAAS
> and Rave? Or is there an example somewhere that lists the (custom)
> components that have to be configured in order to make it work?
> >
> > Grz,
> > Wouter
>
>


-- 
Grz,
Wouter Roosendaal

-- All you need to create a good programming language is a beard. The more
epic the beard, the better your language will be.

by Anonymous Coward on Wednesday March 07, @05:26AM
(#39272965<http://developers.slashdot.org/comments.pl?sid=2711225&cid=39272965>)

Reply via email to