Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

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 01:45 PM 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 11: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 05:59 PM 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 07: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 09:38 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed