Add-user.sh: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
=Debug <tt>add-user.sh</tt>=
=Debug <tt>add-user.sh</tt>=


 
<pre>
{{{
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y"
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y"
}}}
</pre>
 
 
!!!Adding a User to the Management Realm
 
{{{
 
> ./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): a
 
Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : management
Password :
Re-enter Password :
About to add user 'management' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'management' to file '/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties'
Added user 'management' to file '/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties'
 
}}}
 
 




=Adding a User to the Management Realm=


=Password Strength=
=Password Strength=
Line 72: Line 46:


=Add a User to the Management Real as part of an Automated Procedure=
=Add a User to the Management Real as part of an Automated Procedure=


<tt>add-user.sh</tt> can be used in non-interactive mode, as part of an installation script, as follows:
<tt>add-user.sh</tt> can be used in non-interactive mode, as part of an installation script, as follows:

Revision as of 00:52, 12 February 2016

Internal

Configuring add-user.sh to Interact with Other Storage than standalone/configuration and domain/configuration

Call add-user.sh with the following flags:

-sc <dir> Define the location the server config directory.

-dc <dir> Define the location of the domain config directory.

Similar effects could be obtained by manipulating JAVA_OPTS as follows:

JAVA_OPTS="$JAVA_OPTS \
-Djboss.server.config.user.dir=../standalone/configuration \
-Djboss.domain.config.user.dir=../domain/configuration"

For details on how to create a dedicated wrapper for a custom profile, see [WildFly Isolated Self-Contained Standalone Profile].

Debug add-user.sh

JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y"


Adding a User to the Management Realm

Password Strength

Password strength is verified and enforced by add-user.sh. The behavior can be configured in add-user.properties. The following settings are available:

password.restriction=REJECT
password.restriction.minLength=8
password.restriction.minAlpha=1
password.restriction.minDigit=1
password.restriction.minSymbol=1
password.restriction.mustNotMatchUsername=TRUE
password.restriction.forbiddenValue=root,admin,administrator
# Password strength. Valid values: VERY_WEAK, WEAK, MODERATE, MEDIUM, STRONG, VERY_STRONG or EXCEPTIONAL.
password.restriction.strength=MEDIUM

Add a User to the Management Real as part of an Automated Procedure

add-user.sh can be used in non-interactive mode, as part of an installation script, as follows:

${JBOSS_HOME}/bin/add-user.sh -r ManagementRealm -u admin -p "admin123!"