[horde] Horde sabre caldav authentication

Jan Schneider jan at horde.org
Sun Apr 27 11:07:14 UTC 2014


Zitat von Will Holland <will at sandiegosunset.com>:

> I have found making the changes below to DAV/Auth/Backend/AbstractBasic.php
>
> Anyone have any ideas why the authentication isn't working for me,  
> I'm guessing it is some setting somewhere I am missing?
>
>  public function authenticate(DAV\Server $server, $realm) {
>
>         $auth = new HTTP\BasicAuth();
>         $auth->setHTTPRequest($server->httpRequest);
>         $auth->setHTTPResponse($server->httpResponse);
>         $auth->setRealm($realm);
>         $userpass = $auth->getUserPass();
>         if (!$userpass) {
>             $auth->requireLogin();
>             //throw new DAV\Exception\NotAuthenticated('No basic  
> authentication headers were found!');
>
>         }
>     $userpass[0]="user at domain.com";
>     $userpass[1]="password";
>         // Authenticates the user
>         if (!$this->validateUserPass($userpass[0],$userpass[1])) {
>             $auth->requireLogin();
>             throw new DAV\Exception\NotAuthenticated('Username or  
> password does not match');
>         }
>         $this->currentUser = $userpass[0];
>         return true;
>     }
>
>
>
>
>
> On 4/22/2014 6:21 PM, Will Holland wrote:
>> Hi,
>>
>> I have been using horde for many years for webmail, but with the  
>> addition of active sync and other great features I am working on  
>> trying to phase out outlook and use the thunderbird with lightning  
>> to sync calendars and contacts with horde. I have successfully  
>> configured activesync and am able to logon to horde directly.
>>
>> The problem arises when I try to use the subscription links,  
>> provided by horde, for the calendars or contacts. I get a dialog  
>> box to enter the user/pass. Each time I enter the user/pass it  
>> fails to authenticate and on the third fail I get:
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> - <#> <d:errorxmlns:d="*DAV:*"xmlns:s="*http://sabredav.org/ns*">
>> <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
>> <s:message>No basic authentication headers were found!</s:message>
>> <s:sabredav-version>1.8.7</s:sabredav-version>
>> </d:error>
>>
>> I have tried changing authentication horde to IMAP, which has no  
>> effect. I can still login in to horde but the calendar and contact  
>> subscription links wont authenticate.
>>
>>
>> I have tracked the exception to this file
>>
>> */usr/share/psa-pear/pear/php/Sabre/DAV/Auth/Backend/AbstractBasic.php
>>
>> *which I believe calls this file to get the username/pass
>>
>> /usr/share/psa-pear/pear/php/Sabre/HTTP/BasicAuth.php
>>
>>
>> I have submitted this issue to parallels for support, but they say  
>> they don't support it since it a third party product, even though  
>> it is very integrated into plesk.
>>
>> I am running:
>> horde 5.15
>> plesk 11.5.30
>> centos 6.5
>> PHP 5.3.3
>>
>> Any help is appreciated.
>>
>> Thanks,
>> Will

You may want to ask at SabreDAV, because even for us, this is a third  
party library.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list