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

GSS login fails with PREAUTH_FAILED

    Details

    • Subcomponent:
    • Introduced In Build:
      b25
    • Introduced In Version:
      13
    • Resolved In Build:
      b29

      Backports

        Description

        KRBError received: PREAUTH_FAILED
        [Krb5LoginModule] authentication failed
        Pre-authentication information was invalid (24) - PREAUTH_FAILED
        java.lang.RuntimeException: javax.security.auth.login.LoginException: Pre-authentication information was invalid (24) - PREAUTH_FAILED
        at GSSHelper.login(GSSHelper.java:770)
        at GSSHelper$Client.execute(GSSHelper.java:178)
        at GSSHelper.runImpersonateTest(GSSHelper.java:118)
        at GSSHelper.runImpersonateTest(GSSHelper.java:84)
        at GssSeamToSeamTest.main(GssSeamToSeamTest.java:26)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:830)
        Caused by: javax.security.auth.login.LoginException: Pre-authentication information was invalid (24) - PREAUTH_FAILED
        at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:781)
        at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:592)
        at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:726)
        at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:665)
        at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:663)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:690)
        at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:663)
        at java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:574)
        at GSSHelper.login(GSSHelper.java:763)
        ... 10 more
        Caused by: KrbException: Pre-authentication information was invalid (24) - PREAUTH_FAILED
        at java.security.jgss/sun.security.krb5.KrbAsRep.<init>(KrbAsRep.java:82)
        at java.security.jgss/sun.security.krb5.KrbAsReqBuilder.send(KrbAsReqBuilder.java:341)
        at java.security.jgss/sun.security.krb5.KrbAsReqBuilder.action(KrbAsReqBuilder.java:443)
        at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:743)
        ... 18 more
        Caused by: KrbException: Identifier doesn't match expected value (906)
        at java.security.jgss/sun.security.krb5.internal.KDCRep.init(KDCRep.java:140)
        at java.security.jgss/sun.security.krb5.internal.ASRep.init(ASRep.java:64)
        at java.security.jgss/sun.security.krb5.internal.ASRep.<init>(ASRep.java:59)
        at java.security.jgss/sun.security.krb5.KrbAsRep.<init>(KrbAsRep.java:60)
        ... 21 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  weijun Weijun Wang
                  Reporter:
                  jjiang John Jiang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: