GSS Exception while authentication

Hi

I am using a GSS Java client on windows 2000 to connect to a server (C++)running on windows 2000, and using the windows kdc.

Everything runs fine, and I am able to send the token obtained from initSecContext() to the server, which is interpreted correctly by the server.

However, when the server returns the token it gets on calling the acceptSecurityContext() to my client, the client fails with the following exception:

GSSException: Defective token detected (Mechanism level : AP_REP token id does not match!)

Whats going wrong? Any help would be appreciated.

Thanks

Sachin

[628 byte] By [sachinvaidyaa] at [2007-9-27 11:23:02]
# 1
HiI got the same problem. I'm using Windows SSPI Server. The communication between SSPI client and SSPI Server are fine. But when I switch to Java client, this token id error appears.What could be the problem. Another Windows incompatibility or JGSS
ganpinga at 2007-7-9 6:01:36 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
A year after these postings, I'm getting this same error as well.Have you guys figured out what's wrong?Your response will be greatly appreciated!Thanks,Yuri
yurif2a at 2007-7-9 6:01:36 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3
More years later I get the same error while trying to use type 4 integrated security using datadirect jdbc driver from a Solaris client using kdc from a win2003 ad-server.Defective token detected (Mechanism level: AP_REP token id does not match)Any ideas from
bjojona at 2007-7-9 6:01:36 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 4

Such an error indicates that Kerberos message KRB_AP_REQ does not have the expected token ID. Please check your Kerberos configuration and Kerberos principals set-up for client and server. In addition, make sure the generated keys in the keytab are correct.

If you still have problems, send me further details on your configuration and JDK used.

Seema

Seema-1a at 2007-7-9 6:01:36 > top of Java-index,Security,Other Security APIs, Tools, and Issues...