Normal credentials. If you're not logged in already, the CLI will
prompt for credentials, which sort of answers that question the command
is supposed to. :) It's likely, then, it will have little value for CLI
users. From the console's perspective, though, we'll be able to tell
pretty easily now if someone (current user included) somehow disabled
the anonymous users (adding a user, setting a password) and update the
UI accordingly.
On 10/22/10 4:24 PM, Bill Shannon wrote:
> And what credentials are required to execute this command?
>
>
> Jason Lee wrote on 10/22/10 01:40 PM:
>> This is mostly of interest to the console, but for those that might
>> be curious
>> (or happen to have a need), I have implemented a (hidden)
>> AdminCommand to
>> determine if an anonymous user is enabled:
>>
>> $ asadmin __anonymous-user-enabled
>> The anonymous user is enabled: admin
>>
>> Command __anonymous-user-enabled executed successfully.
>>
>> This has also been exposed via REST:
>>
>> $ get http://localhost:4848/management/domain/anonymous-user-enabled
>> {
>> "message": "The anonymous user is enabled: admin",
>> "command": "__anonymous-user-enabled AdminCommand",
>> "exit_code": "SUCCESS",
>> "extraProperties": {
>> "anonymousUserEnabled": true,
>> "anonymousUserName": "admin"
>> }
>> }
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>
--
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com