Cannot log in to Horde: User is not authorized for horde

Created:

2016-11-16 13:11:10 UTC

Modified:

2016-12-21 20:08:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot log in to Horde: User is not authorized for horde

Symptoms

Unable log in to webmail. Horde webmail reloads login page when trying to log in.

  • In error log /var/log/psa-horde/psa-horde.log , the following error can be found:

    HORDE User is not authorized for horde [pid 20939 on line 267 of "/usr/share/psa-pear/pear/php/Horde/Registry.php"

    OR

  • There are no error messages in logs even when Horde debug mode is enabled.

  • The following premissions are set on session directory:

    # ls -ld /var/ /var/lib/ /var/lib/php/ /var/lib/php/session
    drwxr-xr-x 26 root root 4.0K Jun 17 20:56 /var/
    drwxr-xr-x 36 root root 4.0K Jun 17 20:40 /var/lib/
    drwxr-xr-x 4 root root 4.0K Aug 23 14:03 /var/lib/php/
    drwxrwx--- 2 root root 36K Aug 23 14:03 /var/lib/php/session

    OR

    session directory has an incorrect ownership:

    drwxrwx---  2 root apache 36K Aug 23 17:42 /var/lib/php/session

Cause

The issue caused by incorrect permissions or/and ownership for /var/lib/php/session directory.

Resolution

  1. Correct the permission by following steps:

    # chmod 1733 /var/lib/php/session
    # ls -ld /var/lib/php/session
  2. Correct the ownership:

    # chown root:root /var/lib/php/session

Note: If session directory file size is larger than 1 MB, it is needed to recreate the directory.

Have more questions? Submit a request
Please sign in to leave a comment.