Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237535

Active Directory SSO does not work out of the box

XMLWordPrintable

    • x86_64
    • windows_10

      A DESCRIPTION OF THE PROBLEM :
      Basic applications that use java.net.URL to open http connection to servers that require SPNEGO (AD) do not work.
      Every non-java tool works fine.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Simply try to open connection

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Works
      ACTUAL -
      407 Authentication required

      ---------- BEGIN SOURCE ----------
      URL oracle = new URL("https://internal.iis.server/");
              URLConnection yc = oracle.openConnection();
              BufferedReader in = new BufferedReader(new InputStreamReader(
                                          yc.getInputStream()));
              String inputLine;
              while ((inputLine = in.readLine()) != null)
                  System.out.println(inputLine);
              in.close();
      ---------- END SOURCE ----------

      FREQUENCY : always


        1. Main.java
          1 kB
          Andrew Wang
        2. sign-in.html
          7 kB
          Andrew Wang

            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: