Alex,
Sorry you are running into it and the help does not offer much.
AFAIR, this can be used non-interactively. The key is specifying
something called AS_ADMIN_USERPASSWORD in the passwordfile as:
AS_ADMIN_USERPASSWORD=user's password
If such a property does not exist in the given passwordfile, asadmin
would prompt you for the password (if interactive flag is set, which
is set by default).
Let me know if that works.
-Kedar
Alex Sherwin wrote:
> Hi,
>
> I'm using glassfish v2ur2, and setting up some automated install scripts,
> which include creating a default FileRealm and a default user. However,
> according to the output of "asadmin create-file-user --help", there does not
> appear to be a way to specify the password to assign the user in the command
> (either by file, or in a property).
>
> Also, the --passwordfile option is listed twice in the usage syntax summary
>
> And, the description says "Creates an entry in the keyfile with the
> specified username, password, and groups" which eludes to being able to
> create the user with a password
>
> Currently, all methods I try challenge for input on stdin to set the
> password
>
> Am I missing something?
>
>
> Alex Sherwin
> alex.sherwin_at_acadiasoft.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>