String[] groups = helper.authenticate(programOpts.getUser(), password.toCharArray());
if (groups == null) {
throw new CommandException(strings.get("InvalidCredentials", programOpts.getUser()));
}
helper.updateUser(programOpts.getUser(), programOpts.getUser(), newpassword.toCharArray(), null);
helper.persist();
return SUCCESS;
} else {
//Cannot change password locally for non file realms
throw new CommandException(strings.get("NotFileRealmCannotChangeLocally"));