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"
}
}
--
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com