On Nov 5, 2010, at 5:07 PM, Bill Shannon wrote:
> When I rewrote the asadmin framework many months ago, I rewrote this command
> and preserved its previous behavior. It always insists on you typing the
> passwords interactively. I don't know why. Perhaps to prevent typos?
> Perhaps as a security feature?
Prevent some user locking out others in one atomic (yes, that's redundant and repetitive) step? Anyway, I don't think it's worth the time now to figure out all the security angles.
>
> I guess we should find out what v2 did...
>
> It would be easy enough to allow it to work non-interactively, if that's
> what people want.
I asked about it because I couldn't automate a cluster upgrade test due to an open issue about the DAS talking to instances with a non-empty password (*). That issue is now fixed, so we don't need to change this on my account. At least, I hope not -- am still catching up on issues.
(*) More details, see
http://wikis.sun.com/display/GlassFish/V3.1ClusterUpgradeExample#V3.1ClusterUpgradeExample-Step6%3ARecreateinstances where the 'asadmin change-admin-password' command is used.
Cheers,
Bobby