This discussion is archived
0 Replies Latest reply: Nov 9, 2011 7:31 PM by 868446 RSS

Defective Token Error

868446 Newbie
Currently Being Moderated
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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points