Class SetupPasswordTool
java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.cli.MultiCommand
org.elasticsearch.common.cli.LoggingAwareMultiCommand
org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool
- All Implemented Interfaces:
Closeable,AutoCloseable
@Deprecated
public class SetupPasswordTool
extends org.elasticsearch.common.cli.LoggingAwareMultiCommand
Deprecated.
A tool to set passwords of reserved users (elastic, kibana and
logstash_system). Can run in `interactive` or `auto` mode. In `auto` mode
generates random passwords and prints them on the console. In `interactive`
mode prompts for each individual user's password. This tool only runs once,
if successful. After the elastic user password is set you have to use the
`security` API to manipulate passwords.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Deprecated.Fields inherited from class org.elasticsearch.cli.MultiCommand
subcommandsFields inherited from class org.elasticsearch.cli.Command
description, parser -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.AutoSetupDeprecated.protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.InteractiveSetupDeprecated.Methods inherited from class org.elasticsearch.cli.MultiCommand
close, execute, printAdditionalHelp, printUserExceptionMethods inherited from class org.elasticsearch.cli.Command
addShutdownHook, exit, main, mainWithoutErrorHandling
-
Field Details
-
USERS
Deprecated. -
USERS_WITH_SHARED_PASSWORDS
Deprecated.
-
-
Method Details
-
newAutoSetup
protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.AutoSetup newAutoSetup()Deprecated. -
newInteractiveSetup
protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.InteractiveSetup newInteractiveSetup()Deprecated. -
main
Deprecated.- Throws:
Exception
-
ResetPasswordToolfor setting the password of the elastic user and the ChangePassword API for setting the password of the rest of the built-in users when needed.