Skip to Main Content

Java Security

Defective Token Error

868446Nov 9 2011
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?
Post Details
Locked on Dec 7 2011
Added on Nov 9 2011
0 comments
1,094 views