20071023 Tuesday October 23, 2007

Apache Roller, Acegi Security, LDAP and JA-SIG CAS Earlier today, I delivered my talk on Apache Roller, Acegi Security and Single Sign-on. As part of this talk, I put together a couple of tutorials you might find useful:

NOTE: These tutorials are using Roller's trunk as we found some things to simplify LDAP integration tonight.

You can download a PDF version of my presentation from my publications page.

During the presentation I did a number of demos:

  • Installing Roller on Tomcat
  • Integrating Roller with Apache Directory Server
  • Integration Roller with CAS
  • Integrating CAS with LDAP

Rather than saving the demo for the end, I did it as the first part of my presentation. This worked extremely well - especially since I didn't have to worry about running out of time.

If you're using Roller, have you integrated it with LDAP or another SSO solution? If so, is it working well for you? Posted in Roller at Oct 23 2007, 01:38:40 AM MDT 5 Comments

Comments:

Nice! Glad to see CAS worked ;-) In the future, if you're giving any more talks involving CAS, please let us know and we'll be sure to list them on our Upcoming Events or give a little news blurb. -Scott

Posted by Scott Battaglia on October 23, 2007 at 07:45 AM MDT #

I'm trying to integrate Roller 4.0 with CAS at the moment (but not LDAP). This is in order to provide SSO between Roller and JForum (and other apps in future).

I've followed the tutorial but omitted the LDAP specific sections.

I have set the password for my user profile to a clear text value as it says in the "Integrate CAS with Roller's Database" section.

When I try and log in to roller, it redirects me to the CAS login page. I log in to CAS with the password and that seems to go through Ok. However it doesn't successfully log me in to Roller. I get redirected back to the page "roller/roller-ui/login.rol?error=true" with the message 'Wrong username and password combination' and a login box... I can't use this login box to log in at all (even if I set the password back to the hashed value before I do so).

I'm guessing that this is something to do with the RollerCasPopulator class. I've tried both the one in the jar attached to the tutorial, and the org.apache.roller.weblogger.ui.core.security.RollerCasPopulator class in the sample config that came with Roller. Neither has worked...

Do you have any suggestions or pointers as to what may be wrong?

Posted by Stu on March 13, 2008 at 05:54 AM MDT #

I have had the same problem as Stu, Roller re-directs me back to the same login page with error=true. I have only made changes to the security.xml file though and have not used the RollerCasPopulator mentioned. I have played extensivly with the ssl certificate in Tomcat to try and see if that was the problem but no dice. My log file suggests that CAS authenticated correctly.

Posted by Gavin on May 14, 2008 at 11:59 AM MDT #

With the help from people on this mailing list I found the solution to being redirected to the roller login page. This is in Roller version 4.0.

In Rollers sercurity.xml is a line:

<property name="trustStore" value="/Library/Java/Home/lib/security/cacerts"/>

This needs to be commented out as it is telling acegi to use a non-default truststore. This non-default truststore will not contain your servers SSL certificate and so Roller can not authenticate.

I am now seeing another error but that is a different matter.

Posted by Gavin on May 15, 2008 at 01:36 PM MDT #

I am also facing same problem, I integrated Roller with CAS and LDAP as login provider, if i give correct LDAP username password it will redirect to error page. if any one have solution please help me

Posted by sathyamoorthy on May 26, 2009 at 03:38 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud