ActiveDirectory authenticator plugin for Sonar

Last Updated on Vendredi, 30 avril 2010 01:13 Written by Henri Gomez Jeudi, 17 décembre 2009 07:56

Many parts of our Software Factory allready use our ActiveDirectory system to authenticate users, so they could use their regular windows domain login/password.

We use Sonar for many month now but still with its default authentication system, too bad.

Some plugins allready exist, one commercial, plugin-identity and LGPL one, LDAP Plugin

If you’re fine with LDAP settings you could use one of these.

The Zero configuration alternative

But if you want Zero Configuration and are on an ActiveDirectory infrastructure, there is a solution.
I grabbed some old code from my co-worker Thibault and created an ActiveDirectory authenticator for Sonar.

Here are the sources.

Configuration

For the configuration it’s really simple :

  • Build the project from source or get the binary
  • copy the sonar-ad-authenticator-0.1-SNAPSHOT.jar to your plugins extensions directory
  • Then add the following lines to your sonar.properties file.

    sonar.authenticator.class: org.sonar.plugins.ad.Authenticator
    sonar.authenticator.ignoreStartupFailure: false
    

    That’s all

    Project

    The project is hosted at google-code

    Last minute update

    This code has merged with the sonar-ldap plugin.

    Learn More
    Designed by RocketTheme
    WordPress is Free Software released under the GNU/GPL License.