Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1992

PropertiesLoginModule handles usernames with backslash not correct

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.10, 2.3.1, 3.0.0
    • Component/s: None
    • Labels:
    • Environment:

      apache-servicemix-4.4.1-fuse-07-11 on SuSe Linux 32bit

      Description

      BUG in PropertiesLoginModule:
      When the username contains simple backslash \, it must be written twice in the users.properties file. For example:
      user
      name=password,roles

      It is correct and the user is found.
      But when is the property encryption.enabled=true in the org.apache.karaf.jaas.modules.properties.PropertiesLoginModule, then after the first reading of this user the password is encrypted and the double backslash is automatically replaced with simple backslash:
      user\name=encrypted_password,roles

      This change causes failure: the username is not found on the next time.

      Please, correct the behaviour.
      Do not replace the double backslash with simple backslash or enable to enter the username with simple backslash.

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              kadlec Radomir Kadlec
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: