Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 1.35 KB

proc_configuring-the-hammer-cli-to-use-freeipa-user-authentication.adoc

File metadata and controls

30 lines (27 loc) · 1.35 KB

Configuring the Hammer CLI to Use {FreeIPA} User Authentication

This section describes how to configure the {Project} Hammer command-line interface (CLI) tool to use {FreeIPA} (IdM) to authenticate users.

Prerequisite
  • You are logged in to the host from which you want to access {Project} by using Hammer.

Procedure
  1. Enable sessions in the ~/.hammer/cli.modules.d/foreman.yml Hammer configuration file by adding the :use_sessions: true line to the foreman parameters:

    :foreman:
      :use_sessions: true

    Adding the line enforces session usage in Hammer. This means that Hammer performs the authentication request only once instead of with each hammer command.

  2. Optional: Enable negotiate authentication in the ~/.hammer/cli.modules.d/foreman.yml Hammer configuration file by adding the :default_auth_type: 'Negotiate_Auth' line to the foreman parameters:

    :foreman:
      :default_auth_type: 'Negotiate_Auth'
      :use_sessions: true

    Adding this line means that your authentication is negotiated when you enter the first hammer command. If this entry is present, Hammer tries to communicate with {ProjectServer} using the negotiation protocol.