EAP 6 で add-user.sh スクリプトを使用して非インタラクティブモードでアプリケーションユーザーにロールを割り当てる

Solution Unverified - Updated -

Issue

  • EAP 6 で add-user.sh スクリプトを使用して非インタラクティブモードでアプリケーションユーザーにロールを割り当てるにはどうしたら良いですか?

  • インタラクティブモードは以下のようになります。

[iingawal@iingawal bin]$ ./add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): b

Enter the details of the new user to add.
Realm (ApplicationRealm) : 
Username : userOne
Password : 
Re-enter Password : 
What roles do you want this user to belong to?(Please enter a comma separated list, or leave blank for none)[  ]: roleOne
About to add user 'userOne' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'userOne' to file '/NotBackedUp/EAP-6/jboss-eap-6.0/standalone/configuration/application-users.properties'
Added user 'userOne' to file '/NotBackedUp/EAP-6/jboss-eap-6.0/domain/configuration/application-users.properties'
Added user 'userOne' with roles roleOne to file '/NotBackedUp/EAP-6/jboss-eap-6.0/standalone/configuration/application-roles.properties'
Added user 'userOne' with roles roleOne to file '/NotBackedUp/EAP-6/jboss-eap-6.0/domain/configuration/application-roles.properties'

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.