I've been thinking about this list-domains bug:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=7581
If I have two domains, both using the same admin port, how do I
tell which of the domains is running? I need some way to tell whether
the server I'm talking to corresponds to the domain directory I'm
looking at.
Ah ha, I thought, I'll use the local password! Each domain has
a unique local password and only that domain will accept its
local password. Except... If the domain is set up for anonymous
login, it doesn't look at the password at all. :-(
I've thought of two ways around this problem:
1. Define a new user name (e.g., "--LOCAL--") for which the local
password is *always* verified. Use this user name when list-domains
contacts the server.
2. Create a new "verify-local-password" command that takes the local
password as an operand and does the verification.
Anyone have any advice on which approach to use, or want to suggest
another approach to solving the original problem?
Thanks.