From 2aadb6cde1d126a808ed5cdf820fe4c79d10843e Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Thu, 20 Mar 2008 11:57:06 +0800 Subject: [PATCH] 6670362: HTTP/SPNEGO should work across realms Reviewed-by: valeriep --- .../classes/sun/net/www/protocol/http/NegotiatorImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java b/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java index 1ecf6a28c29..3dc7bb6952e 100644 --- a/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java +++ b/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java @@ -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,