Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30475

Backslash in LDAP username causes invalid cache key

    Details

    • Type: Bug Bug
    • Status: Documentation Review done
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0, 2.4.2
    • Fix Version/s: Customer request, 2.5.1
    • Component/s: None
    • Labels:
      None

      Description

      We have a problem with logging in users from Active Directory. The usernames with the format "Domain\username" cause a cache problem (we create eZ users on the first successful login):

      Cache key "ez-user-Domain\username-by-login" contains reserved characters {}()/@:

      In the kernel the eZ\Publish\Core\Persistence\Cache\UserHandler.php replaces only the "@" character to "§", and backslash causes problems.
      The kernel version is 7.4.2

      Link to UserHandler: https://github.com/ezsystems/ezpublish-kernel/commits/master/eZ/Publish/Core/Persistence/Cache/UserHandler.php

      We use fr3d/ldap-bundle (v3.0.2) for the LDAP functions.

        Activity

        Show
        André Rømcke added a comment - Merged: https://github.com/ezsystems/ezpublish-kernel/commit/8657ee8200962e9ae6109b02b2a38ef8d0358951

          People

          • Assignee:
            Unassigned
            Reporter:
            Gábor Balogh
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: