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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2335557-kerberos-patch.patch | 810 bytes | pejer |
Comments
Comment #1
pejer commentedIf someone has this particular problem, here is a patch. Patch against 7.x-2.10...
Comment #2
misc commentedComment #4
misc commentedSimpletest is needed to get this patch through tests.
Comment #5
Anonymous (not verified) commented#1 works for me.
I have no idea why this little addition leeds to alle the simpletest fails.