Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2607

PropertiesBackingEngine allows duplicate roles to be assigned to user

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.4.0, 3.0.0, 2.3.4
    • Component/s: None
    • Labels:
      None

      Description

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

      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
      

        Attachments

          Activity

            People

            • Assignee:
              janstey Jonathan Anstey
              Reporter:
              janstey Jonathan Anstey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: