You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2012/11/05 10:15:12 UTC
[jira] [Resolved] (KARAF-1992) PropertiesLoginModule handles
usernames with backslash not correct
[ https://issues.apache.org/jira/browse/KARAF-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved KARAF-1992.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
2.3.1
2.2.10
commit fix
http://svn.apache.org/viewvc?rev=1405717&view=rev for 2.2.x branch
http://svn.apache.org/viewvc?rev=1405719&view=rev for 2.3.x branch
http://svn.apache.org/viewvc?rev=1405720&view=rev for trunk
> PropertiesLoginModule handles usernames with backslash not correct
> ------------------------------------------------------------------
>
> Key: KARAF-1992
> URL: https://issues.apache.org/jira/browse/KARAF-1992
> Project: Karaf
> Issue Type: Bug
> Environment: apache-servicemix-4.4.1-fuse-07-11 on SuSe Linux 32bit
> Reporter: Radomir Kadlec
> Assignee: Freeman Fang
> Labels: patch
> Fix For: 2.2.10, 2.3.1, 3.0.0
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira