General instructions on how to setup Authentication/Authorization
Authenticate users in Hudson
Enable security on your Hudson site to authenticate users against a CollabNet SourceForge Enterprise or CollabNet Teamforge server.
- In your Hudson installation, go to Manage Hudson> Configure System > Hudson.
- Select Enable Security.# In the Access Control section, select CollabNet Security Realm to authenticate usernames and passwords.
- Enter the URL for your SourceForge or Teamforge site. For example, https://forge.collab.net.
- Click Save.
Authorize users at the site level
At the site level, you can assign administration or read-only permissions to Teamforge users and groups.
- Make sure that the Authentication and Authorization plugin is installed and you've enabled CollabNet security.
- In your Hudson installation, go to Manage Hudson > Configure System > Hudson.
- Select CollabNet Authorization to specify what Teamforge users or groups can do on the site.
- Enter a comma-separated list of users or groups to whom you want to grant administer privileges.
- Note: A Teamforge site administrator is automatically assigned administer privileges in Hudson.
- Specify the Teamforge users or groups to whom you want to grant read-only privileges.
- Note: To grant users permissions within individual projects, see these instructions.
- Click Save.
Authorize users at the project level
Assign Teamforge users default permissions for a Hudson project, or set up user roles for that project in Teamforge.
Note: While configuring project-level access, you associate one Teamforge project to one Hudson project
- In the Hudson project, click Configure.
- In the Authorization from CollabNet section, enter the name of the Teamforge project. This project is used to determine what its members can do in the Hudson project.
- To automatically set up Hudson -related roles in the Teamforge project, select Create Hudson roles on CollabNet server in this project.
- Here's an example of the roles.

-
- Once the roles are available in Teamforge, the project administrator must assign them to project members to specify the things they can do in the Hudson project.
- To give project administrators full permissions in the project, and all members read permission, select Grant default permissions to members of the project.
- Note: To be able to do this, you must be the Teamforge project administrator
- Click Save.
Assign project-level Hudson roles in Teamforge
As a Teamforge project administrator, assign roles to individual users and groups for the associated Hudson job.
Hudson -related roles are automatically created in a Teamforge project when the Create Hudson roles on CollabNet server in this project option is selected in Hudson .
- In the Teamforge project, click Project Admin in the project navigation bar.
- On the Project Admin menu, click Permissions.
- To assign roles to a project member, click the User-Role Matrix tab.
- To assign roles to a group, click the Group-Role Matrix tab.The role matrix lists all project members or groups on the left and all available roles on the top.
- Select the appropriate roles.# Click Save.The roles are now assigned to the project member or group.
- Click Save.
Setup for the Authentication and Authorization components starts on the main Hudson configuration page.