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

PIT 5.0u7:Key bytes can't be null Exception while logging to SEAM KDC w/o default enctype specified.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 5.0u7
    • 5.0
    • security-libs
    • None

      WS_1.5.0_UR JGSS tests: SEAM, SEAM-SEAM, SEAM-W2K, W2K-SEAM, 4745056 and SEAM_S10 failed in PIT test 5.0u7 b01, on all platform, with following exception:
      Exception in thread "main" javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
              at sun.security.krb5.EncryptionKey.<init>(EncryptionKey.java:189)
              at sun.security.krb5.EncryptionKey.acquireSecretKeys(EncryptionKey.java:167)
              at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:626)
              at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:512)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
              at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
              at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
              at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
              at BackendServer.main(BackendServer.java:199)
              at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
              at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
              at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
              at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
              at BackendServer.main(BackendServer.java:199)
      These tests use dimmer(SFBAY.SUN.COM) as test server, and their krb5.conf are configured with no default encryption types specified. After adding default encryption types, they all passed.
      The bug does not happen on KDC on other platform except SEAM, including Solaris 9 and Solaris 10.
      It neither happens when using other builds including mustang builds.

            smalkanisunw Seema Malkani (Inactive)
            wchensunw William Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: