0 Replies Latest reply: Nov 9, 2011 9:31 PM by 868446 RSS

    Defective Token Error


      I have java code talking to WCF based service. We are using SPNEGO for authentication. If the service runs under Local System account, the java code connects successfully. If I run the service under other domain account, I get this error:

      GSSException: Defective token detected (Mechanism level: AP_REP token id does not match!)
      at sun.security.jgss.krb5.AcceptSecContextToken.<init>(AcceptSecContextToken.java:65)
      at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:649)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:230)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:162)

      Whats going wrong?