• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Horde authentication error

SoftCreatR

Basic Pleskian
I'm currently experiencing a lot of problems, using Horde. Users are not able to log-in due to this error:

Code:
2014-10-09T10:00:54+02:00 EMERG: HORDE Uncaught exception 'Horde_Exception_PushApp' with message 'User [email protected] is not authorized for Horde.' in /usr/share/psa-pear/pear/php/Horde/Registry.php:1555
Stack trace:
#0 /usr/share/psa-pear/pear/php/Horde/Registry.php(1198): Horde_Registry->pushApp('horde', Array)
#1 /usr/share/psa-pear/pear/php/Horde/Registry.php(2083): Horde_Registry->callAppMethod('horde', 'logout')
#2 /usr/share/psa-pear/pear/php/Horde/ErrorHandler.php(30): Horde_Registry->clearAuthApp('horde')
#3 /usr/share/psa-horde/imp/lib/Application.php(612): Horde_ErrorHandler::fatal(Object(Horde_Exception_AuthenticationFailure))
#4 [internal function]: IMP_Application->exceptionHandler(Object(Horde_Exception_AuthenticationFailure))
#5 {main}
  thrown [pid 18542 on line 1555 of "/usr/share/psa-pear/pear/php/Horde/Registry.php"]

I've already tried re-installing Horde, but without success. Any ideas?

There's an article in your KB, but `/var/lib/php/session` does not exist and `/var/lib/php5/sessions` has the required perms.

I've also tried to set session.save_path to `/var/lib/php5/sessions` in `/etc/psa-webmail/horde/horde/php.ini` and after a restart, sessions are written into that directory. But the problem still exists.

Code:
_b|i:1412842564;_r|i:1412864164;horde|a:25:{s:11:"auth/authId";s:13:" [email protected]";s:12:"auth/browser";s:110:" Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36";s:16:"auth/credentials";s:4:" imp";s:15:"auth/remoteAddr";s:15:" my.ip.addr.ess";s:11:"auth/userId";s:13:" [email protected]";s:12:"auth_app/imp";s:40:"Á|¼Q¨ {î™ý?á0³ÏQŸ©Æ{Àï£ü¹Á·Ki| ÁVH™";s:17:"auth_app_init/imp";b:1;s:30:"prefs_cache/[email protected]/horde";s:1547:"AC:17:"Horde_Prefs_Scope":1514:{["horde",{"id":"","fullname":"","from_addr":"","location":"","default_identity":0,"identities":"a:0:{}","confirm_email":"a:0:{}","security_question":"","security_answer":"","alternate_email":"","language":"","sending_charset":{"v":"UTF-8","l":true},"timezone":"","twentyFour":false,"date_format":"%x","date_format_mini":"%x","time_format":"%X","first_week_day":"0","categories":"","category_colors":"","initial_application":"horde","show_last_login":true,"last_login":{"v":"a:2:{s:4:\"host\";s:49:\"my-hostname.tld\";s:4:\"time\";i:1412800961;}","d":"a:0:{}"},"theme":"default","summary_refresh_time":300,"sidebar_width":210,"menu_refresh_time":300,"widget_accesskey":true,"portal_layout":{"v":"a:1:{i:0;a:2:{i:0;a:4:{s:3:\"app\";s:5:\"turba\";s:6:\"height\";i:1;s:5:\"width\";i:1;s:6:\"params\";a:2:{s:5:\"type2\";s:22:\"turba_Block_Minisearch\";s:6:\"params\";a:1:{s:12:\"addressbooks\";N;}}}i:1;a:4:{s:3:\"app\";s:9:\"kronolith\";s:6:\"height\";i:1;s:5:\"width\";i:1;s:6:\"params\";a:2:{s:5:\"type2\";s:21:\"kronolith_Block_Month\";s:6:\"params\";a:1:{s:8:\"calendar\";s:5:\"__all\";}}}}}","d":"a:0:{}"},"facebook":"a:0:{}","twitter":"a:0:{}","imsp_auth_user":"","imsp_auth_pass":"","activesync_replyposition":"bottom","activesync_identity":"horde","last_logintasks":{"v":"a:2:{s:5:\"horde\";i:1412800961;s:3:\"imp\";i:1412800964;}","d":"a:0:{}"},"upgrade_tasks":{"v":"a:3:{s:5:\"horde\";s:5:\"5.2.1\";s:3:\"imp\";s:5:\"6.2.1\";s:8:\"imp_auth\";s:5:\"6.2.1\";}","d":"a:0:{}"}}]}";s:15:"nls/valid_de_DE";b:1;s:8:"language";s:6:" de_DE";s:4:"view";i:2;s:14:"registry_cache";s:9:" 255fc34d";s:13:"auth_app/ingo";s:8:"lùÕ‡›r[";s:18:"auth_app_init/ingo";b:1;s:18:"auth_app/kronolith";s:8:"lùÕ‡›r[";s:23:"auth_app_init/kronolith";b:1;s:14:"auth_app/turba";s:8:"lùÕ‡›r[";s:19:"auth_app_init/turba";b:1;s:12:"auth_app/nag";s:8:"lùÕ‡›r[";s:17:"auth_app_init/nag";b:1;s:14:"auth_app/mnemo";s:8:"lùÕ‡›r[";s:19:"auth_app_init/mnemo";b:1;s:15:"auth_app/passwd";s:8:"lùÕ‡›r[";s:20:"auth_app_init/passwd";b:1;s:20:"factory_notification";s:4:"B1[]";}_e|a:2:{s:5:"horde";a:7:{s:12:"auth_app/imp";b:1;s:13:"auth_app/ingo";b:1;s:18:"auth_app/kronolith";b:1;s:14:"auth_app/turba";b:1;s:12:"auth_app/nag";b:1;s:14:"auth_app/mnemo";b:1;s:15:"auth_app/passwd";b:1;}s:3:"imp";a:1:{s:36:"imap_ob_pass/SECRETPASS";b:1;}}imp|a:2:{s:36:"imap_ob_pass/SECRETPASS";s:16:"å‹™êÙ-§@šçwb¯K";s:13:"imap_ob/base ";s:1473:"AC:8:"IMP_Imap":1450:{Aa:3:{i:0;C:24:"Horde_Imap_Client_Socket":1259:{a:3:{s:1:"i";a:2:{s:10:"authmethod";s:5:"PLAIN";s:10:"capability";C:38:"Horde_Imap_Client_Data_Capability_Imap":226:{{"IMAP4REV1":true,"UIDPLUS":true,"CHILDREN":true,"NAMESPACE":true,"THREAD":["ORDEREDSUBJECT","REFERENCES"],"SORT":true,"QUOTA":true,"AUTH":["CRAM-MD5","CRAM-SHA1","CRAM-SHA256","PLAIN"],"IDLE":true,"ACL":true,"ACL2":["UNION"]}}}s:1:"p";a:11:{s:8:"hostspec";s:9:"localhost";s:6:"secure";s:3:"tls";s:7:"timeout";i:30;s:14:"envelope_addrs";i:1000;s:15:"envelope_string";i:2048;s:5:"cache";a:3:{s:7:"backend";C:37:"Horde_Imap_Client_Cache_Backend_Cache":339:{a:6:{s:8:"lifetime";i:604800;s:9:"slicesize";i:50;s:7:"cacheob";O:11:"Horde_Cache":3:{s:10:" * _params";a:2:{s:8:"compress";b:1;s:8:"lifetime";i:86400;}s:10:" * _logger";N;s:11:" * _storage";C:24:"Horde_Cache_Storage_Mock":22:{a:2:{i:0;a:0:{}i:1;N;}}}s:8:"hostspec";s:9:"localhost";s:4:"port";s:3:"143";s:8:"username";s:12:"[email protected]";}}s:6:"fields";a:6:{i:9;s:6:"HICenv";i:10;s:8:"HICflags";i:8;s:7:"HIChdrs";i:11;s:7:"HICdate";i:12;s:7:"HICsize";i:1;s:9:"HICstruct";}s:12:"fetch_ignore";a:0:{}}s:8:"password";C:17:"IMP_Imap_Password":23:{SECRETPASS}s:4:"port";s:3:"143";s:8:"username";s:12:"[email protected]";s:11:"imp:backend";s:4:"imap";s:9:"imp:login";b:1;}s:1:"v";i:2;}}i:1;s:5:"base ";i:2;C:15:"IMP_Imap_Config":93:{1{"name":"IMAP Server","hostspec":"localhost","protocol":"imap","port":"143","secure":"tls"}}}}";}
 
Last edited:
Make sure that /var/lib/php5/ has 777 permission and /var/lib/php5/sessions has 1733 permission.
 
Contact Support Team in this case. It is known issue related to permissions of php sessions. I do not know any other reasons.
 
I found a way to get rid of Plesk's builtin Horde (while keeping the "integration" intact) and i'm using Horde 5.2.2 now, which works fine. The builtin 5.2.1 is still bugging.
 
Hi SoftCreatR,
on my Server I've the same problem and no solution. Could you help me and post a desctiption how to update the builtin Horde to 5.2.2?
This would be very nice.
Thank you!
Sabine
 
Back
Top