Jenkins and PAM problem with JNA 4.1

Craig Rodrigues rodrigc at freebsd.org
Sun Sep 7 19:59:47 UTC 2014


On Sun, Sep 7, 2014 at 3:01 AM, Anthony Williams <anthony at ury.york.ac.uk>
wrote:

> Hi Craig,
>
> Looks like you didn't include a link for your jenkins.war file, so I built
> my own using your branch of jenkins at https://github.com/rodrigc/
> jenkins/tree/JENKINS-24521-2 (built on Ubuntu 12.04 with Oracle/Sun Java
> 7). For my own .war, UNIX local account logins are working normally using
> FreeBSD 10.0-RELEASE, with nothing of note in the log file, so I'm not sure
> why we're getting differing results. I did remove my ~.m2 directory
> entirely to be sure that no local packages were being used.
>
> Thanks,
> Anthony



Oh sorry, my war file is at:
https://people.freebsd.org/~rodrigc/jenkins/JENKINS-24251/

Can you try:
"pkg install devel/maven3"

and then build my branch under FreeBSD and see if you
can duplicate the problem?

One a related note, I tried to test just the PAM module in Jenkins.

I did the following:

(1)  git clone https://github.com/kohsuke/libpam4j
(2)  cd libpam4j
(3)  edit pom.xml, change net.java.dev.jna to 4.1.0
(4)  mvn install
(5)  mvn -Dtest=InteractiveTester -Duser.name=rodrigc
-Dpassword=myunixpassword test

At this point, I get:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jvnet.libpam.InteractiveTester
[rodrigc, wheel, operator]
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.326 sec
<<< FAILURE!

Results :

Tests in error:
  testOne(org.jvnet.libpam.InteractiveTester): pam_authenticate failed :
authentication error
  testPositiveCase(org.jvnet.libpam.InteractiveTester): pam_authenticate
failed : authentication error
  testConcurrent(org.jvnet.libpam.InteractiveTester):
org.jvnet.libpam.PAMException: pam_authenticate failed : authentication
error

Tests run: 5, Failures: 0, Errors: 3, Skipped: 0


Any idea what I am doing wrong?

Thanks.
--
Craig


More information about the freebsd-java mailing list