As a contrast to my previous post regarding securing Subversion, I thought I would go through how to secure a Hudson installation using Active Directory for authentication and authorization.

Steps:

  1. Download the Active Directory plugin for Hudson.
  2. Install the plugin.
    1. Click on Manage Hudson from the sidebar, then Manage Plugins from the admin menu
    2. Upload the plugin you previously downloaded.
    3. Restart Hudson.
  3. Enable the plugin
    1. Click on Manage Hudson from the sidebar, then Configure System from the admin menu.
    2. Check the box that says “Enable Security”.
    3. Then select “Active Directory” under Security Realm.
    4. I recommend selecting “Matrix Based Security” as your authorization scheme.  This enables you to add role names or user id’s to the list, and simply check off what functions they are allowed to perform.

 Enabling matrix-based security using Active Directory

That’s it.  Easy peasy.

3 Responses to “Securing Hudson using Active Directory”
  1. Daniel Adrian says:

    Note that it will only work if hudson is on a windows machine.

  2. Matt says:

    Excellent point, Daniel. More specifically, you must be running Hudson on a windows machine that is part of the same domain that your users are in.

  3. hamst says:

    Well, actually, it works fine on unix too.

Leave a Reply