--- a/jdk/test/sun/security/krb5/auto/HttpNegotiateServer.java Thu Jun 19 13:12:08 2014 -0700
+++ b/jdk/test/sun/security/krb5/auto/HttpNegotiateServer.java Fri Jun 20 10:27:10 2014 +0800
@@ -55,6 +55,8 @@
import org.ietf.jgss.GSSManager;
import sun.security.jgss.GSSUtil;
import sun.security.krb5.Config;
+import sun.util.logging.PlatformLogger;
+
import java.util.Base64;
/**
@@ -148,6 +150,10 @@
public static void main(String[] args)
throws Exception {
+ String HTTPLOG = "sun.net.www.protocol.http.HttpURLConnection";
+ System.setProperty("sun.security.krb5.debug", "true");
+ PlatformLogger.getLogger(HTTPLOG).setLevel(PlatformLogger.Level.ALL);
+
KDC kdcw = KDC.create(REALM_WEB);
kdcw.addPrincipal(WEB_USER, WEB_PASS);
kdcw.addPrincipalRandKey("krbtgt/" + REALM_WEB);