[Tickets #10679] IMAP Authentication Backend does not work for e.g. kornolith auth
bugs at horde.org
bugs at horde.org
Mon Oct 24 18:28:55 UTC 2011
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/10679
------------------------------------------------------------------------------
Ticket | 10679
Erstellt Von | tkrah at fachschaft.imn.htwk-leipzig.de
Zusammenfassung | IMAP Authentication Backend does not work for e.g.
| kornolith auth
Warteschlange | Horde Framework Packages
Version | Git master
Typ | Bug
Status | Unconfirmed
Priorität | 2. Medium
Milestone |
Patch | 1
Zuständige |
------------------------------------------------------------------------------
tkrah at fachschaft.imn.htwk-leipzig.de (2011-10-24 18:28) hat geschrieben:
I am using imap authentication (because of a bug in imp) to
authenticate. Works find for horde so far. But accessing calendars via
rpc fails with:
Horde_Imap_Client requires a username and password.
Made a small fix to the code like this:
--- /tmp/Imap.php 2011-05-09 15:32:35.000000000 +0000
+++ /usr/share/php/Horde/Auth/Imap.php 2011-05-09 15:29:28.000000000 +0000
@@ -82,6 +82,9 @@
*/
protected function _authenticate($userId, $credentials)
{
+ if(empty($userId) || empty($credentials)) {
+ throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
+ }
try {
$ob = $this->_getOb($userId, $credentials['password']);
$ob->login();
After this kornolith access via RPC does work - i am asked like
expected via 401 code for authentication and get the ical file after
passing the correct credentials.
More information about the bugs
mailing list