# HG changeset patch # User weijun # Date 1205985426 -28800 # Node ID ea538d348fe8f256134059ecd5c301b6079a421e # Parent 2ccefd4e038f19210fb3019a2840c7faa3378545 6670362: HTTP/SPNEGO should work across realms Reviewed-by: valeriep diff -r 2ccefd4e038f -r ea538d348fe8 jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java --- a/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java Mon Mar 17 12:27:58 2008 -0700 +++ b/jdk/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java Thu Mar 20 11:57:06 2008 +0800 @@ -91,9 +91,10 @@ 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,