This section describes how to configure the {Project} Hammer command-line interface (CLI) tool to use {FreeIPA} (IdM) to authenticate users.
-
You are logged in to the host from which you want to access {Project} by using Hammer.
-
Enable sessions in the
~/.hammer/cli.modules.d/foreman.yml
Hammer configuration file by adding the:use_sessions: true
line to theforeman
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. -
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 theforeman
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.