changeset 148:a8d6215fa863

6670362: HTTP/SPNEGO should work across realms Reviewed-by: valeriep
author weijun
date Thu, 20 Mar 2008 11:57:06 +0800
parents 0f030deba7df
children 05afbed1dc4f
files src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/protocol/http/NegotiatorImpl.java	Mon Mar 17 12:27:58 2008 -0700
+++ b/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,