Skip to content

Commit 03fe510

Browse files
committed
HADOOP-10418. SaslRpcClient should not assume that remote principals are in the default_realm. Contributed by Aaron T. Myers.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1580666 13f79535-47bb-0310-9956-ffa450edef68
1 parent ab130de commit 03fe510

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ Release 2.5.0 - UNRELEASED
318318
HADOOP-10378. Typo in help printed by hdfs dfs -help.
319319
(Mit Desai via suresh)
320320

321+
HADOOP-10418. SaslRpcClient should not assume that remote principals are in
322+
the default_realm. (atm)
323+
321324
Release 2.4.0 - UNRELEASED
322325

323326
INCOMPATIBLE CHANGES

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SaslRpcClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ String getServerPrincipal(SaslAuth authType) throws IOException {
300300
}
301301
// construct server advertised principal for comparision
302302
String serverPrincipal = new KerberosPrincipal(
303-
authType.getProtocol() + "/" + authType.getServerId()).getName();
303+
authType.getProtocol() + "/" + authType.getServerId(),
304+
KerberosPrincipal.KRB_NT_SRV_HST).getName();
305+
304306
boolean isPrincipalValid = false;
305307

306308
// use the pattern if defined

0 commit comments

Comments
 (0)