提交 74451b6b 编写于 作者: W weijun

6670362: HTTP/SPNEGO should work across realms

Reviewed-by: valeriep
上级 fd4ec021
......@@ -91,9 +91,10 @@ public class NegotiatorImpl extends Negotiator {
GSSManagerImpl manager = new GSSManagerImpl(
GSSUtil.CALLER_HTTP_NEGOTIATE);
String peerName = "HTTP/" + hostname;
String peerName = "HTTP@" + hostname;
GSSName serverName = manager.createName(peerName, null);
GSSName serverName = manager.createName(peerName,
GSSName.NT_HOSTBASED_SERVICE);
context = manager.createContext(serverName,
oid,
null,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册