karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-2607) PropertiesBackingEngine allows duplicate roles to be assigned to user
Date Thu, 05 Dec 2013 19:37:36 GMT
Jonathan Anstey created KARAF-2607:
--------------------------------------

             Summary: PropertiesBackingEngine allows duplicate roles to be assigned to user
                 Key: KARAF-2607
                 URL: https://issues.apache.org/jira/browse/KARAF-2607
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 2.3.3
            Reporter: Jonathan Anstey
            Assignee: Jonathan Anstey


Doesn't appear to cause any functional problems but looks ugly: 

{code}
karaf@root> jaas:roleadd karaf admin
karaf@root> jaas:roleadd karaf admin
karaf@root> jaas:roleadd karaf admin
karaf@root> jaas:roleadd karaf admin 
karaf@root> jaas:update 
karaf@root> cat file:etc/users.properties
################################################################################
#
#    Licensed to the Apache Software Foundation (ASF) under one or more
#    contributor license agreements.  See the NOTICE file distributed with
#    this work for additional information regarding copyright ownership.
#    The ASF licenses this file to You under the Apache License, Version 2.0
#    (the "License"); you may not use this file except in compliance with
#    the License.  You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#
################################################################################

#
# This file contains the valid users who can log into Karaf. Each line have to be of
# the format:
#
# USER=PASSWORD,ROLE1,ROLE2,...
#
# All users and roles entered in this file are available after Karaf startup
# and modifiable via the JAAS command group. These users reside in a JAAS domain
# with the name "karaf"..
#
karaf = karaf,_g_:admingroup,admin,admin,admin,admin
_g_\:admingroup = group,admin,manager,viewer
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message