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.
>
> 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.
>
> 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.
>
I have added method persist() on the Realm and the default
implementation is a NOOP. For Realms that support UserManagement
(currently the FileRealm), i have overriden the method and am calling
the method to persist the keyfile. Can you try calling persist() and
let me know if that works.
I have added it today, so please update the security/realms module.
regards,
kumar
> thanks
> Anissa.
>