Trying to get SASL to work with Heimdal 0.6 on FreeBSD 5.2.1. When doing the sample-server test, it finds my ticket OK and presents a response that the sample-client accepts and gives its response. The problem is when sending that client response back to the server, this is what happens:
esmtp# ./sample-server -s imap -p ../plugins/.libs Generating client mechanism list... Sending list of 8 mechanism(s) S: <server response> Waiting for client mechanism... C: <client response from below> got 'GSSAPI' lt-sample-server: SASL Other: GSSAPI Error: Miscellaneous failure (see text) (Decrypt integrity check failed) lt-sample-server: Starting SASL negotiation: authentication failure (authentication failure) esmtp# ./sample-client -s imap -n esmtp.webtent.net -u spam -p ../plugins/.libs service=imap Waiting for mechanism list from server... S: <server response from above> recieved 57 byte message Choosing best mechanism from: NTLM LOGIN ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 CRAM-MD5 returning OK: spam Using mechanism GSSAPI Preparing initial. Sending initial response... C: <client response> Both the SASL and saslauthd ports are version 2.1.19 on the system. Anyone know what 'Decrypt integrity check failed' means? I found references to the password being wrong when Googling it, but the password has been reset and I get this same error with any user. I am starting the sample-server and sample-client as follows, seems to find the service keytab OK, I am using what I think is setup correctly. I extracted the Kerberos keytab for imap/esmtp.webtent.net and have it placed correctly in /etc/krb5.keytab with 600 owned by the 'cyrus' user. The realm is WEBTENT.NET. ./sample-server -s imap -p ../plugins/.libs ./sample-client -s imap -n esmtp.webtent.net -u spam -p ../plugins/.libs kadmin> list spam [EMAIL PROTECTED] esmtp# klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: [EMAIL PROTECTED] Issued Expires Principal Jul 27 10:18:04 Jul 27 20:18:04 krbtgt/[EMAIL PROTECTED] Jul 27 10:18:09 Jul 27 20:18:04 imap/[EMAIL PROTECTED] esmtp# ls -la /etc/krb5.keytab -rw------- 1 cyrus mail 586 Jul 26 19:49 /etc/krb5.keytab Decrypt integrity check failed -- Robert --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html