Forum Stats

  • 3,836,785 Users
  • 2,262,188 Discussions
  • 7,900,109 Comments

Discussions

Defective Token Error

hi

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?
This discussion has been closed.