When I tried this module against and Exchange server using username password and SSL, it still requires a valid kerberos certificate. Without one an error appears and no nodes are imported. IMAP error in close_mailbox: Kerberos error: Credentials cache file '/tmp/krb5cc_48' not found (try running kinit).....

I don't want to recompile PHP without Kerberos support or keep having to generate tickets for the apache user on my server.

I was able to fix it by changing line 132 of mailhandler/modules/mailhandler_php_imap/plugins/mailhandler/retrieve/MailHandlerPhpImapRetrieve.class.php to
$result = imap_open($box, $name, $pass, NULL, 1, array("DISABLE_AUTHENTICATOR" => "GSSAPI"));

Adding array("DISABLE_AUTHENTICATOR" => "GSSAPI") when /ssl is included in the Extra commands section of the Mailhandler mailbox connection settings would appear to be required.

CommentFileSizeAuthor
#1 2335557-kerberos-patch.patch810 bytespejer

Comments

pejer’s picture

StatusFileSize
new810 bytes

If someone has this particular problem, here is a patch. Patch against 7.x-2.10...

misc’s picture

Version: 7.x-2.x-dev » 7.x-2.10
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: 2335557-kerberos-patch.patch, failed testing.

misc’s picture

Simpletest is needed to get this patch through tests.

Anonymous’s picture

Status: Needs work » Needs review

#1 works for me.
I have no idea why this little addition leeds to alle the simpletest fails.