quality@glassfish.java.net

Re: create user and role/group

From: Sankar Neelakandan <Sankar.Neelakandan_at_Sun.COM>
Date: Tue, 27 May 2008 09:57:21 -0700

Hi Sriram,
    You can use create-file-user command to create a user and assign a
group.

asadmin create-file-user
Usage: create-file-user [--terse=false] [--echo=false]
[--interactive=true] [--host localhost] [--port 4848|4849] [--secure |
-s] [--user admin_user] [--passwordfile file_name] [--groups
user_groups[:user_groups]*] [--authrealmname 0authrealm_name] [--target
target(Default server)] username

Example:

asadmin create-file-user --passwordfile mypasswordfile --groups
employees joe

the file mypasswordfile should contain the entry
AS_ADMIN_USERPASSWORD=your desired password

The above command will create a user named joe in the group employees
and use the password mentioned in the mypasswordfile.

-Sankar




Sriram wrote:
> Hi,
> Is there any CLI in Glassfish-V2 that I can use for creating a user
> and associating that user to a group/role?
>
> Thanks,
> Sriram Krishnan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>