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.
Use ResetPasswordTool for 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.
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

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    Deprecated.
     
    static final Map<String,String>
    Deprecated.
     

    Fields inherited from class org.elasticsearch.cli.MultiCommand

    subcommands

    Fields inherited from class org.elasticsearch.cli.Command

    description, parser
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Deprecated.
     
    protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.AutoSetup
    Deprecated.
     
    protected org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.InteractiveSetup
    Deprecated.
     

    Methods inherited from class org.elasticsearch.cli.MultiCommand

    close, execute, printAdditionalHelp, printUserException

    Methods inherited from class org.elasticsearch.cli.Command

    addShutdownHook, exit, main, mainWithoutErrorHandling

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • USERS

      public static final List<String> USERS
      Deprecated.
    • USERS_WITH_SHARED_PASSWORDS

      public static final Map<String,String> 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

      public static void main(String[] args) throws Exception
      Deprecated.
      Throws:
      Exception