Invalid encryption of users present in keys.properties upon activation of password

Solution Verified - Updated -

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:

  1. enable encryption by changing property encryption.enabled=true from the file
etc/org.apache.karaf.jaas.cfg
  1. add a new user by adding the user's public key to "etc/keys.properties" file like:
jluo=AAAAB3NzaC1yc2EAAAABIwAAAQEA5pqXW9pkUDK...pY+Dc8m2lSRueQ==,admin
  1. 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content