| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/pam.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
Features
The Sonar PAM Plugin enables the delegation of Sonar authentication to underlying PAM subsystem. The plugin works on *nix box with Pluggable Authentication Module (PAM).
...
Works, tested
Should work, not tested
Does not work
Usage & Installation
- Install jpam
- Download jpam for your system from here
- Alternatively:
- Copy the jpam's native library following these directions
- Copy the jpam's native libray in
sonar/bin/<your arch>/lib
- Install Sonar PAM plugin
- Place the jar plugin into the
/extensions/pluginsdirectory - Make sure that at least one user with global administration role exists in Sonar as well as in the external system
Configure
conf/sonar.propertiesby adding and editing the following:Code Block borderStyle dashed title sonar.properties #---------------------- # Sonar PAM Auth Plugin #---------------------- sonar.security.realm: PAM # Automatically create users (available since Sonar 2.0). # When set to true, user will be created after successful authentication, if doesn't exists. # The default group affected to new users can be defined online, in Sonar general settings. The default value is "sonar-users". # Default is false. # sonar.authenticator.createUsers: true
- Place the jar plugin into the
Restart Sonar and check logs for:
Code Block borderStyle dashed 2012.11.24 20:32:34 INFO org.sonar.INFO Security realm: PAM 2012.11.24 20:32:34 INFO org.sonar.INFO Security realm started
- Log in to Sonar
Known
...
Issues
Crash using PAM winbind authentication (pam_winbind.so)
...
- Edit /etc/security/pam_winbind.conf:
Set Kerberos authentication:
Code Block borderStyle dashed title /etc/security/pam_winbind.conf # # pam_winbind configuration file # # /etc/security/pam_winbind.conf # [global] # turn on debugging #debug = yes # request a cached login if possible # (needs "winbind offline logon = yes" in smb.conf) cached_login = yes # authenticate using kerberos krb5_auth = yes # when using kerberos, request a "FILE" krb5 credential cache type # (leave empty to just do krb5 authentication but not have a ticket # afterwards) ;krb5_ccache_type = FILE # make successful authentication dependend on membership of one SID # (can also take a name) ;require_membership_of =
...
Change Log
...
| JIRA Issues |
|---|
ChangeLog
|
| JIRA Issues | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|

