3.8. hammer auth


Foreman 连接登录/注销

Usage:
    hammer auth [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 login                         Set credentials
 logout                        Wipe your credentials
 status                        Information about current connections

Options:
 -h, --help                    Print help

3.8.1. hammer 身份验证登录

设置凭证

Usage:
    hammer auth login [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 basic                         Provide username and password
 basic-external                Authenticate against external source (IPA/PAM) with credentials
 negotiate                     Negotiate the login credentials from the auth ticket (Kerberos)
 oauth                         Supports for both with/without 2fa

Options:
 -h, --help                    Print help

3.8.1.1. hammer 身份验证登录基本

提供用户名和密码

Usage:
    hammer auth login basic [OPTIONS]

Options:
 -h, --help                    Print help
 -p, --password VALUE          Password to access the remote system
 -u, --username VALUE          Username to access the remote system

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

3.8.1.2. hammer auth login basic-external

使用凭证对外部源(IPA/PAM)进行身份验证

Usage:
    hammer auth login basic-external [OPTIONS]

Options:
 -h, --help                    Print help
 -p, --password VALUE          Password to access the remote system
 -u, --username VALUE          Username to access the remote system

Option details:
  Here you can find option types and the value an option can accept:

  VALUE               Value described in the option's description. Mostly simple string

3.8.1.3. Hammer 身份验证登录协商

从 auth ticket (Kerberos)协商登录凭据。

Usage:
    hammer auth login negotiate [OPTIONS]

Options:
 -h, --help                    Print help

3.8.1.4. hammer auth login oauth

支持带有/不包括 2fa

Usage:
    hammer auth login oauth [OPTIONS]

Options:
 -a, --oidc-authorization-endpoint VALUE Openidc provider URL which issues authentication code (two factor only)
 -c, --oidc-client-id VALUE              Client id used in the Openidc provider
 -f, --two-factor                        Authenticate with two factor
 -h, --help                              Print help
 -p, --password VALUE                    Password to access the remote system
 -r, --oidc-redirect-uri VALUE           Redirect URI for the authentication code grant flow
 -t, --oidc-token-endpoint VALUE         Openidc provider URL which issues access token
 -u, --username VALUE                    Username to access the remote system

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

3.8.2. hammer auth logout

擦除您的凭证

Usage:
    hammer auth logout [OPTIONS]

Options:
 -h, --help                    Print help

3.8.3. hammer auth 状态

有关当前连接的信息

Usage:
    hammer auth status [OPTIONS]

Options:
 -h, --help                    Print help
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.