-
Task
-
Resolution: Done
-
Major
-
None
-
7.12
-
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.