-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61163/
-----------------------------------------------------------
Review request for Ambari, Alejandro Fernandez, Attila Magyar, Balázs Bence
Sári, Eugene Chekanskiy, Jonathan Hurley, Laszlo Puskas, and Sebastian Toader.
Bugs: AMBARI-21578
https://issues.apache.org/jira/browse/AMBARI-21578
Repository: ambari
Description
-------
testBadCredential UT Fails with below error.
```
Error Message
Unexpected exception,
expected<org.springframework.security.core.AuthenticationException> but
was<java.lang.UnsatisfiedLinkError>
Stacktrace
java.lang.Exception: Unexpected exception,
expected<org.springframework.security.core.AuthenticationException> but
was<java.lang.UnsatisfiedLinkError>
at
org.apache.ambari.server.security.authorization.AmbariPamAuthenticationProviderTest.testBadCredential(AmbariPamAuthenticationProviderTest.java:87)
```
This is mainly due to a GLIC lib mismatch on CenOS6. The
net.java.dev.jna:jna:4.3.0 library requires GLIBC_2.14 and CentOS 6 only has
GLIBC_2.12. net.java.dev.jna:jna:4.2.2 seems to work fine with GLIBC_2.12
Diffs
-----
ambari-server/pom.xml 70907da844
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/pam/PamAuthenticationFactory.java
PRE-CREATION
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariPamAuthenticationProvider.java
373552e6e1
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/AmbariPamAuthenticationProviderTest.java
8faa6ce316
Diff: https://reviews.apache.org/r/61163/diff/1/
Testing
-------
Manually tested on CentOS6 and CentOS7.
# Local test results: PENDING
# Jenkins test resilts: PENDING
Thanks,
Robert Levas