quality@glassfish.java.net

Re: create user and role/group

From: Sriram <S.Krishnan_at_Sun.COM>
Date: Wed, 28 May 2008 08:23:00 +0530

Thanks Sankar and Jagadesh for you response.
Regards,
Sriram

Jagadesh Babu Munta wrote:

> Just to add -- We have CLI support for users creation only on
> FileRealm (users credentials stored in a file). For all other realms
> (such as LDAP, Certificate, JDBC) one has to use separate tools
> supported by those servers.
>
> Thanks.
> -- Jagadesh
>
> Sankar Neelakandan wrote:
>
>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>