Question

I am trying to set up Sonar to use PAM authentication. I have followed the installation instructions fron the docs, but I can't get it to work. From the sonar.log file I get

ERROR o.s.p.p.PamConfiguration Unable to determine PAM service name. Please check that 'pam.serviceName' property is set in 'sonar.properties' in

ERROR rails Error from external authenticator: java.lang.NullPointerException: null

It seems that it can't locate the JPam library or something. I tried setting sonar.properties to JPam in sonar.properties, but it does not seem like the right name as I get the error:

ERROR rails Error from external authenticator: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

in the log. If anyone has any pointers as to where to go from here I would be most grateful.

Was it helpful?

Solution

You must set the property pam.serviceName in sonar.properties as stated in the log.

pam.serviceName=system-auth

You could replace system-auth with any PAM service, i.e. those listed in /etc/pam.d/.

Unfortunately this row went lost somehow in the docs for the version 0.2 I am gonna update the wiki. Thanks for the feedback.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top