Re: Sending HTTP 401 Unauthorized header response

Arjen de Korte <[email protected]>
Newsgroups gmane.comp.horde.user
Message-ID <[email protected]>
Citeren Arjen de Korte <[email protected]>:

> Possibly more log spam:
>
> 2019-01-04T13:23:44+01:00 ERR: horde Sending HTTP 401 Unauthorized  
> header response. [pid 1949 on line 126 of  
> "/usr/share/php7/PEAR/Horde/Rpc/ActiveSync.php"]
>
> Dumping $serverVars just a few lines before this line, it looks like  
> the client attempts to authenticate with type "Bearer" but there is  
> no token. I also see requests where the same client is using Basic  
> authentication with a base64 encoded username and password, which  
> works fine. The client in question is the built-in Windows 10 Mail  
> and synchronizes as usual.
>
> I've removed the account and recreated it, but the problem remains.

It occurs with multiple accounts, all using the Windows 10 Mail  
client. When logging the $serverVars['HTTP_AUTHORIZATION'] variable,  
they seem to come in pairs:

     2019-01-04T19:24:10+01:00 DEBUG: Variable information:
     string(50) "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=="

     Backtrace:
     1. Horde_Rpc_ActiveSync->getResponse() /srv/www/htdocs/horde/rpc.php:160
     2. Horde::debug() /usr/share/php7/PEAR/Horde/Rpc/ActiveSync.php:120

     2019-01-04T19:24:26+01:00 DEBUG: Variable information:
     string(6) "Bearer"

     Backtrace:
     1. Horde_Rpc_ActiveSync->getResponse() /srv/www/htdocs/horde/rpc.php:160
     2. Horde::debug() /usr/share/php7/PEAR/Horde/Rpc/ActiveSync.php:120

Could it somehow be that no token is sent from the server to the  
client? Can I somehow log the token?

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.