bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ofle...@apache.org
Subject bigtop git commit: BIGTOP-2673: Need to back port HADOOP-11628 for JDK8
Date Sun, 19 Mar 2017 20:12:11 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master bab2d48cd -> 0c42012bb


BIGTOP-2673: Need to back port HADOOP-11628 for JDK8


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/0c42012b
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/0c42012b
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/0c42012b

Branch: refs/heads/master
Commit: 0c42012bbe23dd902a2cbcf35a80630b250e21f2
Parents: bab2d48
Author: Olaf Flebbe <of@oflebbe.de>
Authored: Sun Mar 19 15:09:58 2017 +0100
Committer: Olaf Flebbe <of@oflebbe.de>
Committed: Sun Mar 19 15:09:58 2017 +0100

----------------------------------------------------------------------
 .../src/common/hadoop/patch1-HADOOP-11628.diff  | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/0c42012b/bigtop-packages/src/common/hadoop/patch1-HADOOP-11628.diff
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hadoop/patch1-HADOOP-11628.diff b/bigtop-packages/src/common/hadoop/patch1-HADOOP-11628.diff
new file mode 100644
index 0000000..1c2de37
--- /dev/null
+++ b/bigtop-packages/src/common/hadoop/patch1-HADOOP-11628.diff
@@ -0,0 +1,22 @@
+diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java
b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java
+index 9852460..8cd39c7 100644
+--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java
++++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java
+@@ -37,6 +37,7 @@
+ 
+ import java.io.File;
+ import java.io.IOException;
++import java.net.InetAddress;
+ import java.security.PrivilegedActionException;
+ import java.security.PrivilegedExceptionAction;
+ import java.util.ArrayList;
+@@ -343,7 +344,8 @@ public AuthenticationToken authenticate(HttpServletRequest request, final
HttpSe
+       authorization = authorization.substring(KerberosAuthenticator.NEGOTIATE.length()).trim();
+       final Base64 base64 = new Base64(0);
+       final byte[] clientToken = base64.decode(authorization);
+-      final String serverName = request.getServerName();
++      final String serverName = InetAddress.getByName(request.getServerName())
++                                           .getCanonicalHostName();
+       try {
+         token = Subject.doAs(serverSubject, new PrivilegedExceptionAction<AuthenticationToken>()
{
+ 


Mime
View raw message