Details
Description
When logging in using ssh with user karaf the prompt should show karaf@root not admin@root.
The problem seems to be that the subject contains the RolePrincipal as well as the UserPrincipal. We just take the first one without checking the type.
I wonder if we should just select the UserPrincipal objects. Does that make sense? The use principal class is specific to karaf so I am not sure if it would work with any auth method.