Invalid encryption of users present in keys.properties upon activation of password
Issue
When activating encryption in [JBOSSFUSE_ROOT]/etc/org.apache.karaf.jaas.cfg, using basic encryption and keeping all the defaults, users configured through the [JBOSSFUSE_ROOT]/etc/keys.properties get messed up: the public key is encrypted and the roles initially set to the user are lost.
Steps to reproduce:
- enable encryption by changing property
encryption.enabled=truefrom the file
etc/org.apache.karaf.jaas.cfg
- add a new user by adding the user's public key to "etc/keys.properties" file like:
jluo=AAAAB3NzaC1yc2EAAAABIwAAAQEA5pqXW9pkUDK...pY+Dc8m2lSRueQ==,admin
- connect to the container with the user 'jluo' using following command either locally or remotely:
> ssh -p 8101 jluo@localhost
Environment
JBoss Fuse 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
