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

Backslash in LDAP username causes invalid cache key

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request, 2.5.1
    • 2.5.0, 2.4.2
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            27a86f72-3731-445b-a7d6-4e400f95824e@accounts.ibexa.co Gábor Balogh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: