admin@glassfish.java.net

Re: questions regarding anonymous user

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Fri, 01 Aug 2008 13:02:31 -0700

Lloyd Chambers wrote:
> Let me know the "anonymous user" API and I will make it available via AMX.
Lloyd,

I have forwarded you the mail I had sent to GUI.

Thanks
Nandini
> Lloyd
>
> ..............................................
> Lloyd Chambers
> lloyd.chambers_at_sun.com <mailto:lloyd.chambers_at_sun.com>
> GlassFish team, admin
>
>
> On Aug 1, 2008, at 12:43 PM, Nandini Ektare wrote:
>
>> Hi Anissa,
>>
>> Anissa Lam wrote:
>>> Hi,
>>> I have couple questions regarding anonymous user for V3 Prelude release.
>>>
>>> 1. For anonymous user, does the backend accept *ANY* password,
>>> or the password has to be 'empty'. My experience is latter, but
>>> i want to confirm since I remember Kedar mentioned any password
>>> should be accepted.
>> I understand it's the latter. Incidentally, I had provided you one
>> API to detect the condition if the user is an anonymous user and to
>> make GUI goto landing page directly. Do you have any update on that?
>>> 2. How to create another user if i don't want anonymous login ? I
>>> got an the following error, is this a bug or i still need to create
>>> passwordfile even though I just have anonymous user by default ?
>>>
>>> anilam$ asadmin create-file-user --authrealmnname=admin-realm admin
>>> *remote failure: create-file-user command requires the
>>> passwordfile parameter containing AS_ADMIN_USERPASSWORD entry.*
>>> 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=authrealm_name] username
>>>
>>> Command create-file-user failed.
>>>
>> As you can see from the highlighted output, you need to pass the
>> passwordfile option. so it should be
>> asadmin create-file-user --authrealmnname=admin-realm --passwordfile
>> password.txt admin
>>
>> and password.txt should contain
>> AS_ADMIN_USERPASSWORD=adminadmin (or whatever password you choose to
>> have)
>>> Ps. GUI starts providing user/group management, but any changes like
>>> adding user, changing password etc. doesn't persist, all the
>>> changes is lost once server shutdown and there is never update to
>>> the keyfile. I will file issue on this.
>> If you mean change-master-password, then yes we don't have that
>> capability. But then the problem stems far before. We have a backward
>> compatibility issue on masterpassword because we don't prompt for one
>> and we have not yet incorporated the v2 notion/cpabilities regarding
>> masterpassword.
>>>
>>> thanks
>>> Anissa.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net For
>>> additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>