[horde] "Error: User is not authorized for imp" with PHP 5.6
Andy Dorman
adorman at ironicdesign.com
Fri Jun 6 14:20:08 UTC 2014
On 05/29/2014 03:08 PM, Michael M Slusarz wrote:
> Quoting Ernie Dunbar <maillist at lightspeed.ca>:
>
>> After yesterday's difficulty in getting Horde set up (I moved the
>> directory back to its original installation value and changed back what
>> configuration I had changed), I'm now up against something totally new.
>>
>> I'm able to log in to Horde with a regular user as well as the
>> administrator, authenticate against our IMAP server (I can see the
>> successful authentication in the IMAP server's logs), but nobody can use
>> IMP. I just see that panel filled with the message:
>>
>> "ERROR
>>
>> User is not authorized for imp"
>>
>> If I try to click on the "Mail" menu at the top, I apparently get logged
>> out, which seems strange.
>
> No... you are being kicked out to the IMP authentication screen. I've
> been meaning to make this more clear on the login screen, so I should
> probably do it before we release 5.2.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
I just ran into the same problem, imp login failure, but I believe it is
because php 5.6 has apparently changed something that is causing imp
authentication to fail. So far I have not found a good indication of
what that might be.
We run a development server where we test the latest debian release of
Horde Groupware Webmail (currently Horde 5.1.6/IMP 6.1.7-1).
It has been working well with only a couple of minor issues (apparent
cookie timeouts and such). Last night it was working fine and I read my
email with no problems.
This morning I updated the development server to PHP 5.6.0-beta3 and was
very surprised when I tried to log in and got the Horde fatal error page
at the end of this email.
I mainly want to alert the community that there may be a coming issue
with PHP 5.6 that needs to be addressed. And if anyone knows of a
suggested patch to test, I will be happy to try it.
We are using Apache2 with php-fpm and there is nothing in the php-fpm
log that indicates a problem.
I checked the cyrus IMAP log and it indicated a successful login:
==== cyrus log ====
> 2014-06-06T08:24:16.559279-05:00 yorick cyrus/lmtp[29949]: accepted connection
> 2014-06-06T08:24:16.559389-05:00 yorick cyrus/lmtp[29949]: connection from yorick.ironicdesign.com [192.168.0.23]
> 2014-06-06T08:24:16.560739-05:00 yorick cyrus/lmtp[29949]: login: yorick.ironicdesign.com [192.168.0.23] cyrus PLAIN User logged in
...
The horde logs are currently set to NOTICE and we see our local "last
login" update followed by login success to horde and then ingo and horde
reporting "User is not authorized for imp".
==== Horde logs ====
> 2014-06-06T08:56:14.411195-05:00 yorick HORDE: [imp] Setting hostname "yorick.ironicdesign.com" from client [76.29.224.98] [pid 28978 on line 31 of "/etc/horde/imp/backends.local.php"]
> 2014-06-06T08:56:14.684240-05:00 yorick HORDE: [imp] modified fmLastLogin for uid=andydorman at comehome.net,ou=addresses,o=antespam.com to be Fri Jun 6 13:56:14 2014 [pid 28978 on line 84 of "/etc/horde/imp/backends.local.php"]
> 2014-06-06T08:56:14.734835-05:00 yorick HORDE: [horde] Login success for andydorman at comehome.net [76.29.224.98] to horde. [pid 28978 on line 150 of "/usr/share/horde/login.php"]
> 2014-06-06T08:56:15.461147-05:00 yorick HORDE: [ingo] Finding sieve hostname "yorick.ironicdesign.com" from client [76.29.224.98] [pid 28979 on line 102 of "/etc/horde/ingo/backends.local.php"]
> 2014-06-06T08:56:15.562690-05:00 yorick HORDE: [ingo] User is not authorized for imp [pid 28979 on line 1552 of "/usr/share/php/Horde/Registry.php"]
> 2014-06-06T08:56:15.563162-05:00 yorick HORDE: [horde] User is not authorized for imp [pid 28979 on line 1645 of "/usr/share/php/Horde/Registry.php"]
I can expand the Horde log level and try another login and report back
if that would help.
I can also post my config & registry.local files if it will help, but
there is nothing in the registry.local.php that sets anything related to
imp.
Here is the fatal error web page that displays after login. When I
reload the page I get the Horde portal with the imp block showing "User
is not authorized for imp"
==== fatal error web display ====
> A fatal error has occurred
> User is not authorized for imp
>
> 1. Horde_Core_Factory_BlockCollection->create() /usr/share/horde/services/portal/index.php:31
> 2. Horde_Core_Block_Collection->__construct() /usr/share/php/Horde/Core/Factory/BlockCollection.php:61
> 3. Horde_Registry->getAppDrivers() /usr/share/php/Horde/Core/Block/Collection.php:43
> 4. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:1961
> 5. Horde_Registry->_pushAppError() /usr/share/php/Horde/Registry.php:1606
> 6. Horde_Core_Factory_BlockCollection->create() /usr/share/horde/services/portal/index.php:31
> 7. Horde_Core_Block_Collection->__construct() /usr/share/php/Horde/Core/Factory/BlockCollection.php:61
> 8. Horde_Registry->getAppDrivers() /usr/share/php/Horde/Core/Block/Collection.php:43
> 9. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:1961
> 10. Horde_Registry->callAppMethod() /usr/share/php/Horde/Registry.php:1601
> 11. call_user_func_array() /usr/share/php/Horde/Registry.php:1213
> 12. Horde_Registry_Application->init()
> 13. Ingo_Application->_init() /usr/share/php/Horde/Registry/Application.php:105
> 14. Ingo_Application->_createSession() /usr/share/horde/ingo/lib/Application.php:64
> 15. Ingo_Factory_Transport->create() /usr/share/horde/ingo/lib/Application.php:145
> 16. Horde::callHook() /usr/share/horde/ingo/lib/Factory/Transport.php:42
> 17. Horde_Core_Hooks->callHook() /usr/share/php/Horde.php:1490
> 18. call_user_func_array() /usr/share/php/Horde/Core/Hooks.php:62
> 19. Ingo_Hooks->transport_auth()
> 20. Horde_Registry->call() /etc/horde/ingo/hooks.php:34
> 21. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:1105
> 22. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:1145
>
> Details
> The full error message is logged in Horde's log file, and is shown below only to administrators. Non-administrative users will not see error details.
>
> Horde_Exception_PushApp Object
> (
> [application] => ingo
> [details] =>
> [logged] => 1
> [_logLevel:protected] => 0
> [message:protected] => User is not authorized for imp
> [string:Exception:private] =>
> [code:protected] => 5
> [file:protected] => /usr/share/php/Horde/Registry.php
> [line:protected] => 1645
> [trace:Exception:private] => Array
> (
> [0] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1606
> [function] => _pushAppError
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => Horde_Exception_PushApp Object
> (
> [application] => imp
> [details] =>
> [logged] => 1
> [_logLevel:protected] => 0
> [message:protected] => User is not authorized for imp
> [string:Exception:private] =>
> [code:protected] => 1
> [file:protected] => /usr/share/php/Horde/Registry.php
> [line:protected] => 1552
> [trace:Exception:private] => Array
> (
> [0] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1145
> [function] => pushApp
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => imp
> [1] => Array
> (
> [check_perms] => 1
> )
>
> )
>
> )
>
> [1] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1105
> [function] => callByPackage
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => imp
> [1] => imapOb
> [2] => Array
> (
> )
>
> )
>
> )
>
> [2] => Array
> (
> [file] => /etc/horde/ingo/hooks.php
> [line] => 34
> [function] => call
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => mail/imapOb
> )
>
> )
>
> [3] => Array
> (
> [function] => transport_auth
> [class] => Ingo_Hooks
> [type] => ->
> [args] => Array
> (
> [0] => timsieved
> )
>
> )
>
> [4] => Array
> (
> [file] => /usr/share/php/Horde/Core/Hooks.php
> [line] => 62
> [function] => call_user_func_array
> [args] => Array
> (
> [0] => Array
> (
> [0] => Ingo_Hooks Object
> (
> )
>
> [1] => transport_auth
> )
>
> [1] => Array
> (
> [0] => timsieved
> )
>
> )
>
> )
>
> [5] => Array
> (
> [file] => /usr/share/php/Horde.php
> [line] => 1490
> [function] => callHook
> [class] => Horde_Core_Hooks
> [type] => ->
> [args] => Array
> (
> [0] => transport_auth
> [1] => ingo
> [2] => Array
> (
> [0] => timsieved
> )
>
> )
>
> )
>
> [6] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Factory/Transport.php
> [line] => 42
> [function] => callHook
> [class] => Horde
> [type] => ::
> [args] => Array
> (
> [0] => transport_auth
> [1] => Array
> (
> [0] => timsieved
> )
>
> [2] => ingo
> )
>
> )
>
> [7] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Application.php
> [line] => 145
> [function] => create
> [class] => Ingo_Factory_Transport
> [type] => ->
> [args] => Array
> (
> [0] => Array
> (
> [driver] => timsieved
> [params] => Array
> (
> [hostspec] => yorick.ironicdesign.com
> [logintype] => PLAIN
> [usetls] => 1
> [port] => 4190
> [scriptname] => ingo
> [debug] =>
> )
>
> )
>
> )
>
> )
>
> [8] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Application.php
> [line] => 64
> [function] => _createSession
> [class] => Ingo_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [9] => Array
> (
> [file] => /usr/share/php/Horde/Registry/Application.php
> [line] => 105
> [function] => _init
> [class] => Ingo_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [10] => Array
> (
> [function] => init
> [class] => Horde_Registry_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [11] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1213
> [function] => call_user_func_array
> [args] => Array
> (
> [0] => Array
> (
> [0] => Ingo_Application Object
> (
> [features] => Array
> (
> [smartmobileView] => 1
> )
>
> [version] => H5 (3.1.4)
> [auth] => Array
> (
> )
>
> [initParams] => Array
> (
> )
>
> [_app:protected] => ingo
> [_sessVars:protected] => Array
> (
> )
>
> )
>
> [1] => init
> )
>
> [1] => Array
> (
> )
>
> )
>
> )
>
> [12] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1601
> [function] => callAppMethod
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> [1] => init
> )
>
> )
>
> [13] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1961
> [function] => pushApp
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> )
>
> )
>
> [14] => Array
> (
> [file] => /usr/share/php/Horde/Core/Block/Collection.php
> [line] => 43
> [function] => getAppDrivers
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> [1] => Block
> )
>
> )
>
> [15] => Array
> (
> [file] => /usr/share/php/Horde/Core/Factory/BlockCollection.php
> [line] => 61
> [function] => __construct
> [class] => Horde_Core_Block_Collection
> [type] => ->
> [args] => Array
> (
> [0] => Array
> (
> [0] => horde
> [1] => imp
> [2] => ingo
> [3] => kronolith
> [4] => mnemo
> [5] => nag
> [6] => passwd
> [7] => trean
> [8] => turba
> )
>
> [1] => portal_layout
> )
>
> )
>
> [16] => Array
> (
> [file] => /usr/share/horde/services/portal/index.php
> [line] => 31
> [function] => create
> [class] => Horde_Core_Factory_BlockCollection
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> )
>
> [previous:Exception:private] =>
> )
>
> [1] => 5
> )
>
> )
>
> [1] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1961
> [function] => pushApp
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> )
>
> )
>
> [2] => Array
> (
> [file] => /usr/share/php/Horde/Core/Block/Collection.php
> [line] => 43
> [function] => getAppDrivers
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> [1] => Block
> )
>
> )
>
> [3] => Array
> (
> [file] => /usr/share/php/Horde/Core/Factory/BlockCollection.php
> [line] => 61
> [function] => __construct
> [class] => Horde_Core_Block_Collection
> [type] => ->
> [args] => Array
> (
> [0] => Array
> (
> [0] => horde
> [1] => imp
> [2] => ingo
> [3] => kronolith
> [4] => mnemo
> [5] => nag
> [6] => passwd
> [7] => trean
> [8] => turba
> )
>
> [1] => portal_layout
> )
>
> )
>
> [4] => Array
> (
> [file] => /usr/share/horde/services/portal/index.php
> [line] => 31
> [function] => create
> [class] => Horde_Core_Factory_BlockCollection
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> )
>
> [previous:Exception:private] => Horde_Exception_PushApp Object
> (
> [application] => imp
> [details] =>
> [logged] => 1
> [_logLevel:protected] => 0
> [message:protected] => User is not authorized for imp
> [string:Exception:private] =>
> [code:protected] => 1
> [file:protected] => /usr/share/php/Horde/Registry.php
> [line:protected] => 1552
> [trace:Exception:private] => Array
> (
> [0] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1145
> [function] => pushApp
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => imp
> [1] => Array
> (
> [check_perms] => 1
> )
>
> )
>
> )
>
> [1] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1105
> [function] => callByPackage
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => imp
> [1] => imapOb
> [2] => Array
> (
> )
>
> )
>
> )
>
> [2] => Array
> (
> [file] => /etc/horde/ingo/hooks.php
> [line] => 34
> [function] => call
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => mail/imapOb
> )
>
> )
>
> [3] => Array
> (
> [function] => transport_auth
> [class] => Ingo_Hooks
> [type] => ->
> [args] => Array
> (
> [0] => timsieved
> )
>
> )
>
> [4] => Array
> (
> [file] => /usr/share/php/Horde/Core/Hooks.php
> [line] => 62
> [function] => call_user_func_array
> [args] => Array
> (
> [0] => Array
> (
> [0] => Ingo_Hooks Object
> (
> )
>
> [1] => transport_auth
> )
>
> [1] => Array
> (
> [0] => timsieved
> )
>
> )
>
> )
>
> [5] => Array
> (
> [file] => /usr/share/php/Horde.php
> [line] => 1490
> [function] => callHook
> [class] => Horde_Core_Hooks
> [type] => ->
> [args] => Array
> (
> [0] => transport_auth
> [1] => ingo
> [2] => Array
> (
> [0] => timsieved
> )
>
> )
>
> )
>
> [6] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Factory/Transport.php
> [line] => 42
> [function] => callHook
> [class] => Horde
> [type] => ::
> [args] => Array
> (
> [0] => transport_auth
> [1] => Array
> (
> [0] => timsieved
> )
>
> [2] => ingo
> )
>
> )
>
> [7] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Application.php
> [line] => 145
> [function] => create
> [class] => Ingo_Factory_Transport
> [type] => ->
> [args] => Array
> (
> [0] => Array
> (
> [driver] => timsieved
> [params] => Array
> (
> [hostspec] => yorick.ironicdesign.com
> [logintype] => PLAIN
> [usetls] => 1
> [port] => 4190
> [scriptname] => ingo
> [debug] =>
> )
>
> )
>
> )
>
> )
>
> [8] => Array
> (
> [file] => /usr/share/horde/ingo/lib/Application.php
> [line] => 64
> [function] => _createSession
> [class] => Ingo_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [9] => Array
> (
> [file] => /usr/share/php/Horde/Registry/Application.php
> [line] => 105
> [function] => _init
> [class] => Ingo_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [10] => Array
> (
> [function] => init
> [class] => Horde_Registry_Application
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> [11] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1213
> [function] => call_user_func_array
> [args] => Array
> (
> [0] => Array
> (
> [0] => Ingo_Application Object
> (
> [features] => Array
> (
> [smartmobileView] => 1
> )
>
> [version] => H5 (3.1.4)
> [auth] => Array
> (
> )
>
> [initParams] => Array
> (
> )
>
> [_app:protected] => ingo
> [_sessVars:protected] => Array
> (
> )
>
> )
>
> [1] => init
> )
>
> [1] => Array
> (
> )
>
> )
>
> )
>
> [12] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1601
> [function] => callAppMethod
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> [1] => init
> )
>
> )
>
> [13] => Array
> (
> [file] => /usr/share/php/Horde/Registry.php
> [line] => 1961
> [function] => pushApp
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> )
>
> )
>
> [14] => Array
> (
> [file] => /usr/share/php/Horde/Core/Block/Collection.php
> [line] => 43
> [function] => getAppDrivers
> [class] => Horde_Registry
> [type] => ->
> [args] => Array
> (
> [0] => ingo
> [1] => Block
> )
>
> )
>
> [15] => Array
> (
> [file] => /usr/share/php/Horde/Core/Factory/BlockCollection.php
> [line] => 61
> [function] => __construct
> [class] => Horde_Core_Block_Collection
> [type] => ->
> [args] => Array
> (
> [0] => Array
> (
> [0] => horde
> [1] => imp
> [2] => ingo
> [3] => kronolith
> [4] => mnemo
> [5] => nag
> [6] => passwd
> [7] => trean
> [8] => turba
> )
>
> [1] => portal_layout
> )
>
> )
>
> [16] => Array
> (
> [file] => /usr/share/horde/services/portal/index.php
> [line] => 31
> [function] => create
> [class] => Horde_Core_Factory_BlockCollection
> [type] => ->
> [args] => Array
> (
> )
>
> )
>
> )
>
> [previous:Exception:private] =>
> )
>
> )
--
Andy Dorman
More information about the horde
mailing list