File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
hadoop-common-project/hadoop-common
src/main/java/org/apache/hadoop/security Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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+
321324Release 2.4.0 - UNRELEASED
322325
323326 INCOMPATIBLE CHANGES
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments