[Tickets #11801] ActiveSync with Horde-Auth = HTTP Basic Auth fails
bugs at horde.org
bugs at horde.org
Sun Dec 2 18:55:29 UTC 2012
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/11801
------------------------------------------------------------------------------
Ticket | 11801
Erstellt Von | jonathan at tietznet.de
Zusammenfassung | ActiveSync with Horde-Auth = HTTP Basic Auth fails
Warteschlange | Synchronization
Version | Git master
Typ | Bug
Status | Unconfirmed
Priorität | 2. Medium
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
jonathan at tietznet.de (2012-12-02 18:55) hat geschrieben:
Hi,
if i try to sync, i get "401 Unauthorized". Looking deeper in the code
i found the cause (but i don't understand ;-)
in file Horde/Auth/Http.php
function _authenticate
$this->_users is empty, so i get an exception:
if (empty($credentials['password']) ||
empty($this->_users[$userId])) {
throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
}
$credentials['password'] has my correct passwd and $userId has my
email-address.
Backtrace:
1. Horde_Rpc_ActiveSync->getResponse()
/srv/www/mygretchen.de/htdocs/member/horde/rpc.php:156
2. Horde_ActiveSync->handleRequest()
/usr/share/php/Horde/Rpc/ActiveSync.php:150
3. Horde_ActiveSync->authenticate() /usr/share/php/Horde/ActiveSync.php:562
4. Horde_Core_ActiveSync_Driver->authenticate()
/usr/share/php/Horde/ActiveSync.php:406
5. Horde_Core_Auth_Application->authenticate()
/usr/share/php/Horde/Core/ActiveSync/Driver.php:148
6. Horde_Auth_Base->authenticate()
/usr/share/php/Horde/Core/Auth/Application.php:126
7. Horde_Auth_Http->_authenticate() /usr/share/php/Horde/Auth/Base.php:151
8. Horde::debug() /usr/share/php/Horde/Auth/Http.php:86
for Basic Auth i'm using apache with mod_auth_imap, no htpasswd file.
But if i switch horde-Auth to 'Application: imp' everythings works fine.
if i make _authenticate() return true, it seems to work for me with
http-auth.
More information about the bugs
mailing list