Uploaded image for project: 'BxMS Documentation'
  1. BxMS Documentation
  2. BXMSDOC-8385

Document additional steps required after running elytron-tool.sh

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.12
    • Installation Guide
    • None
    • 2022 Week 02-04 (from Jan 10)
    • 2

      Chapter 14.4 Creating Users documents how to convert property-based user storage to file-based user storage with the elytron-tool.sh script.

      After running the script, an additional step is required to rename the "roles" attribute in the created *.xml files to "role". This can either be done manually, or using a command line script:

      1. Open each kie-fs-realm-users/*/<USER>.xml file
      2. Replace

      <attribute name="roles" value=
      

      with

      <attribute name="role" value=
      

      Alternatively, run a script similar to the following to apply this change to all <USER>.xml files:

      $ find standalone/configuration/kie-fs-realm-users/ -name '*.xml'|xargs sed -i 's/roles/role/'
      

      In addition, in the same Chapter, we are showing how to create new users using the $ ./bin/jboss-cli.sh --commands="embed-server ... command. In this command, all single quotes (') should be removed, otherwise the generated <USER>.xml file is incorrect.

              emmurphy1@redhat.com Emily Murphy
              rhn-support-mputz Martin Weiler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: