You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GlassFish Version (and build number): glassfish-embedded-all (built from the commit d990905 as of Jan. 10, 2022)
JDK version: 11.0.13+8
OS: CentOS 7.7
Problem Description
In Embedded GlassFish, when running the create-file-user subcommand with the --passwordfile option, the following error occurs and fails to execute the command.
PlainTextActionReporterFAILUREorg.jvnet.hk2.config.UnsatisfiedDependencyException: injection failed on com.sun.enterprise.security.cli.CreateFileUser.userpassword with class java.lang.StringDescription: create-file-user commandCannot find userpassword in create-file-user command model, file a bug
Usage: create-file-user
[--authrealmname <authrealm_name>] [--target target]
[--groups user_groups[:user_groups]*]
[-?|--help[=<help(default:false)>]] username
You can use the --passwordfile option of the asadmin(1M) command to specify the password for the user. The password file entry must be of the form AS_ADMIN_USERPASSWORD=user-password.
Instead of typing the password at the command line, you can access the password for a command from a file such as passwords.txt. The --passwordfile option of the asadmin utility takes the name of the file that contains the passwords. The entry for a password in the file must have the AS_ADMIN_ prefix followed by the password name in uppercase letters.
Environment Details
Problem Description
In Embedded GlassFish, when running the
create-file-user
subcommand with the--passwordfile
option, the following error occurs and fails to execute the command.Steps to reproduce
Create a password file as
password.txt
.References:
https://glassfish.org/docs/latest/reference-manual/create-file-user.html
https://glassfish.org/docs/latest/security-guide/system-security.html#GSSCG00096
Save the following program as Program.java.
Compile and run it with glassfish-embedded-all.jar(*).
(*)
appserver/extras/embedded/all/target/glassfish-embedded-all.jar
Then
UnsatisfiedDependencyException
occurs and thecreate-file-user
subcommand fails.Impact of Issue
Unable to use create-file-user subcommand with passwordfile option in embedded glassfish.
The text was updated successfully, but these errors were encountered: