Home > ci, continuum, ldap, software architecture > Continuum 1.1 with LDAP and the Roles hack

Continuum 1.1 with LDAP and the Roles hack

No Gravatar

We use Continuum 1.1 as our Continuous Integration server. We also have an LDAP directory that we like to use whenever it comes to user management. So we tried to integrate Continuum with LDAP. As described by the documentation, and here we configured the Continuum to use LDAP authentication.

Everything looked fine. Users could log in, as expected.

But there was one nasty problem. When we tried to change user roles, the users were not in the users list. Even if they logged in, the list showed only the admin and the guest user (and one user created before the LDAP configuration). We tried to google for an answer, but no luck. We tried to tweak the configuration, but it did not worked…

Actually we had one user already created before the LDAP configuration: user1. We could see this person in the list of users. We could even change roles for that user. I noticed that when you click on a user the URL is something like this: http://myci/continuum/security/useredit.action?username=user1

I get curious. What if we just change that user1 to an LDAP username? And guess what?! It worked! For example if you want to changed roles for user Agent Smith with username asmith and your Continuum is on http://ci.test.com/continumm it would be:

http://ci.test.com/continumm/security/useredit.action?username=asmith

Now we can change the roles for LDAP users… It’s a hack, but it works.

Do you have a better solution?

Cheers!

Share
  1. Emmanuel Venisse
    June 5th, 2008 at 17:54 | #1

    I fixed it in trunk and now all connections parameters can be defined in security.properties.

  2. June 5th, 2008 at 21:35 | #2

    I’m really glad to hear that. Any ideas on when are we going to see a new release?

  1. No trackbacks yet.