[imp] IMP is marked as authenticated, but no credentials can be found in the session.

Peter Kreinhöfer horde at kreinhoefer.de
Sat Dec 31 10:22:10 UTC 2022


Hi there,

after a dist upgrade from ubuntu 20.04 to 22.04, I did run in trouble with new mariadb-server-10.6 and horde 5.2.23 i think.

After the the ubuntu upgrade to 22.04  was done, at first the charset utf8 was missing in the mariadb and logon on horde was impossible.
Then I did migrate the database horde_5 from utf8 (alias for utf8mb3) to utf8mb4.
Afterwords I changed in the horde config the $conf[sql][charset] from utf-8 to utf8mb4.

From now, I was able to login in horde groupware 5.2.22.

but, getting the follow error now when trying to access webmail, all other a modules (turba, nag, ingo, kronolith ) seems to work fine.

any hints for me?
Regards and a happy new year, Peter

Ein schwerer Fehler ist aufgetreten:
IMP is marked as authenticated, but no credentials can be found in the session.
in /usr/share/php/Horde/Registry.php:1679

 1. Horde_Registry::appInit() /usr/share/horde/imp/index.php:19
 2. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:298
 3. Horde_Registry->_pushAppError() /usr/share/php/Horde/Registry.php:1622
 4. Horde_Registry::appInit() /usr/share/horde/imp/index.php:19
 5. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:298
 6. Horde_Registry->callAppMethod() /usr/share/php/Horde/Registry.php:1617
 7. Horde_Registry_Application->authenticated() /usr/share/php/Horde/Registry.php:1197
 8. IMP_Application->_authenticated() /usr/share/php/Horde/Registry/Application.php:108
 9. IMP_Auth::authenticateCallback() /usr/share/horde/imp/lib/Application.php:134
10. IMP_Auth::_log() /usr/share/horde/imp/lib/Auth.php:252
11. IMP_Imap->__call() /usr/share/horde/imp/lib/Auth.php:141

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben und für Administratoren weiter unten ausgegeben. Benutzer, die keine Administratoren sind, bekommen diese Details nicht zu sehen.

Horde_Exception_PushApp Object
(
    [application] => imp
    [details] => 
    [logged] => 1
    [_logLevel:protected] => 0
    [message:protected] => IMP is marked as authenticated, but no credentials can be found in the session.
    [string:Exception:private] => 
    [code:protected] => 5
    [file:protected] => /usr/share/php/Horde/Registry.php
    [line:protected] => 1679
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/php/Horde/Registry.php
                    [line] => 1622
                    [function] => _pushAppError
                    [class] => Horde_Registry
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /usr/share/php/Horde/Registry.php
                    [line] => 298
                    [function] => pushApp
                    [class] => Horde_Registry
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /usr/share/horde/imp/index.php
                    [line] => 19
                    [function] => appInit
                    [class] => Horde_Registry
                    [type] => ::
                )

        )

    [previous:Exception:private] => Horde_Exception_AuthenticationFailure Object
        (
            [application] => 
            [code:protected] => 6
            [details] => 
            [logged] => 1
            [_logLevel:protected] => 0
            [message:protected] => IMP is marked as authenticated, but no credentials can be found in the session.
            [string:Exception:private] => 
            [file:protected] => /usr/share/horde/imp/lib/Imap.php
            [line:protected] => 628
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /usr/share/horde/imp/lib/Auth.php
                            [line] => 141
                            [function] => __call
                            [class] => IMP_Imap
                            [type] => ->
                        )

                    [1] => Array
                        (
                            [file] => /usr/share/horde/imp/lib/Auth.php
                            [line] => 252
                            [function] => _log
                            [class] => IMP_Auth
                            [type] => ::
                        )

                    [2] => Array
                        (
                            [file] => /usr/share/horde/imp/lib/Application.php
                            [line] => 134
                            [function] => authenticateCallback
                            [class] => IMP_Auth
                            [type] => ::
                        )

                    [3] => Array
                        (
                            [file] => /usr/share/php/Horde/Registry/Application.php
                            [line] => 108
                            [function] => _authenticated
                            [class] => IMP_Application
                            [type] => ->
                        )

                    [4] => Array
                        (
                            [file] => /usr/share/php/Horde/Registry.php
                            [line] => 1197
                            [function] => authenticated
                            [class] => Horde_Registry_Application
                            [type] => ->
                        )

                    [5] => Array
                        (
                            [file] => /usr/share/php/Horde/Registry.php
                            [line] => 1617
                            [function] => callAppMethod
                            [class] => Horde_Registry
                            [type] => ->
                        )

                    [6] => Array
                        (
                            [file] => /usr/share/php/Horde/Registry.php
                            [line] => 298
                            [function] => pushApp
                            [class] => Horde_Registry
                            [type] => ->
                        )

                    [7] => Array
                        (
                            [file] => /usr/share/horde/imp/index.php
                            [line] => 19
                            [function] => appInit
                            [class] => Horde_Registry
                            [type] => ::
                        )

                )

            [previous:Exception:private] => 
        )

)

$ php -v
PHP 7.4.33 (cli) (built: Nov  8 2022 11:33:53) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies


$ cat /usr/share/horde/config/conf.php
<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Hash: dd22d3283033d73071e7f49fd9e570144d651fcd
// $Id: 5841de7a8bd742b764f603953bef5d16a75a0da4 $
$conf['vhosts'] = false;
$conf['debug_level'] = E_ALL & ~E_NOTICE;
$conf['max_exec_time'] = 0;
$conf['compress_pages'] = true;
$conf['secret_key'] = 'xxxxx';
$conf['umask'] = 077;
$conf['testdisable'] = true;
$conf['use_ssl'] = 1;
$conf['server']['name'] = $_SERVER['SERVER_NAME'];
$conf['urls']['token_lifetime'] = 30;
$conf['urls']['hmac_lifetime'] = 30;
$conf['urls']['pretty'] = false;
$conf['safe_ips'] = array();
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['timeout'] = 0;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['max_time'] = 72000;
$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
$conf['cookie']['path'] = '/horde';
$conf['sql']['username'] = 'xxxxx';
$conf['sql']['password'] = 'xxxxx';
$conf['sql']['socket'] = '/run/mysqld/mysqld.sock';
$conf['sql']['protocol'] = 'unix';
$conf['sql']['database'] = 'horde_5';
$conf['sql']['charset'] = 'utf8mb4';
$conf['sql']['ssl'] = false;
$conf['sql']['splitread'] = false;
$conf['sql']['logqueries'] = false;
$conf['sql']['phptype'] = 'mysql';
$conf['nosql']['phptype'] = false;
$conf['ldap']['useldap'] = false;
$conf['auth']['admins'] = array('xxxxx');
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['resetpassword'] = false;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['list_users'] = 'list';
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';
$conf['auth']['params']['count_bad_logins'] = true;
$conf['auth']['params']['login_block'] = true;
$conf['auth']['params']['login_block_count'] = 5;
$conf['auth']['params']['login_block_time'] = 5;
$conf['signup']['allow'] = false;
$conf['log']['priority'] = 'INFO';
$conf['log']['ident'] = 'HORDE';
$conf['log']['name'] = '/var/log/horde/horde.log';
$conf['log']['params']['append'] = true;
$conf['log']['params']['format'] = 'default';
$conf['log']['type'] = 'file';
$conf['log']['enabled'] = true;
$conf['log_accesskeys'] = false;
$conf['prefs']['maxsize'] = 65535;
$conf['prefs']['params']['driverconfig'] = 'horde';
$conf['prefs']['driver'] = 'Sql';
$conf['alarms']['params']['driverconfig'] = 'horde';
$conf['alarms']['params']['ttl'] = 300;
$conf['alarms']['driver'] = 'Sql';
$conf['group']['params']['driverconfig'] = 'horde';
$conf['group']['driver'] = 'Sql';
$conf['perms']['driverconfig'] = 'horde';
$conf['perms']['driver'] = 'Sql';
$conf['share']['no_sharing'] = false;
$conf['share']['auto_create'] = true;
$conf['share']['world'] = true;
$conf['share']['any_group'] = false;
$conf['share']['hidden'] = false;
$conf['share']['cache'] = false;
$conf['share']['driver'] = 'Sqlng';
$conf['cache']['default_lifetime'] = 86400;
$conf['cache']['params']['sub'] = 0;
$conf['cache']['driver'] = 'File';
$conf['cache']['use_memorycache'] = '';
$conf['cachecssparams']['url_version_param'] = true;
$conf['cachecss'] = false;
$conf['cachejsparams']['url_version_param'] = true;
$conf['cachejs'] = false;
$conf['cachethemes'] = false;
$conf['lock']['params']['driverconfig'] = 'horde';
$conf['lock']['driver'] = 'Sql';
$conf['token']['params']['driverconfig'] = 'horde';
$conf['token']['driver'] = 'Sql';
$conf['history']['params']['driverconfig'] = 'horde';
$conf['history']['driver'] = 'Sql';
$conf['davstorage']['params']['driverconfig'] = 'horde';
$conf['davstorage']['driver'] = 'Sql';
$conf['mailer']['params']['sendmail_path'] = '/usr/lib/sendmail';
$conf['mailer']['params']['sendmail_args'] = '-oi';
$conf['mailer']['type'] = 'sendmail';
$conf['vfs']['params']['vfsroot'] = '/tmp';
$conf['vfs']['type'] = 'File';
$conf['sessionhandler']['type'] = 'Builtin';
$conf['sessionhandler']['hashtable'] = false;
$conf['spell']['params']['path'] = '/usr/bin/aspell';
$conf['spell']['driver'] = 'aspell';
$conf['gnupg']['keyserver'] = array('pool.sks-keyservers.net');
$conf['gnupg']['timeout'] = 10;
$conf['nobase64_img'] = false;
$conf['image']['driver'] = 'Imagick';
$conf['exif']['driver'] = 'Bundled';
$conf['timezone']['location'] = 'ftp://ftp.iana.org/tz/tzdata-latest.tar.gz';
$conf['problems']['email'] = 'xxxx';
$conf['problems']['maildomain'] = 'xxxx';
$conf['problems']['tickets'] = false;
$conf['problems']['attachments'] = true;
$conf['menu']['links']['help'] = 'all';
$conf['menu']['links']['prefs'] = 'authenticated';
$conf['menu']['links']['problem'] = 'all';
$conf['menu']['links']['login'] = 'all';
$conf['menu']['links']['logout'] = 'authenticated';
$conf['portal']['fixed_blocks'] = array();
$conf['accounts']['driver'] = 'null';
$conf['user']['verify_from_addr'] = false;
$conf['user']['select_view'] = true;
$conf['facebook']['enabled'] = false;
$conf['twitter']['enabled'] = false;
$conf['urlshortener'] = false;
$conf['weather']['provider'] = false;
$conf['imap']['server'] = 'localhost';
$conf['imap']['port'] = 993;
$conf['imap']['secure'] = 'ssl';
$conf['imap']['maildomain'] = 'xxxx.de';
$conf['imap']['cache_folders'] = true;
$conf['imap']['enabled'] = true;
$conf['imsp']['enabled'] = false;
$conf['kolab']['enabled'] = false;
$conf['hashtable']['driver'] = 'none';
$conf['activesync']['params']['driverconfig'] = 'horde';
$conf['activesync']['storage'] = 'Sql';
$conf['activesync']['emailsync'] = true;
$conf['activesync']['version'] = '14.1';
$conf['activesync']['auth']['type'] = 'basic';
$conf['activesync']['autodiscovery'] = 'full';
$conf['activesync']['outlookdiscovery'] = false;
$conf['activesync']['logging']['type'] = false;
$conf['activesync']['ping']['heartbeatmin'] = 60;
$conf['activesync']['ping']['heartbeatmax'] = 2700;
$conf['activesync']['ping']['heartbeatdefault'] = 480;
$conf['activesync']['ping']['deviceping'] = true;
$conf['activesync']['ping']['waitinterval'] = 15;
$conf['activesync']['enabled'] = true;
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */





More information about the imp mailing list