Actions
Bug #35858
openHammer NoMethodError when attempting Kerberos authentication
Status:
New
Priority:
Normal
Assignee:
-
Category:
Users and roles
Target version:
-
Description
# cat ~/.hammer/cli.modules.d/foreman.yml
:foreman:
# Credentials. You'll be asked for the interactively if you leave them blank here
#:username: 'admin'
#:password: 'changeme'
:use_sessions: true
:default_auth_type: 'Negotiate_Auth'
# hammer host list
Error: undefined method `split' for nil:NilClass
When I do not specify use_sessions and default_auth_type, Hammer works.
In hammer.log:
[ERROR 2022-12-12T13:30:24 API] undefined method `split' for nil:NilClass
[ERROR 2022-12-12T13:30:24 Exception] Error: undefined method `split' for nil:NilClass
[ERROR 2022-12-12T13:30:24 Exception]
NoMethodError (undefined method `split' for nil:NilClass):
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/authenticators/negotiate.rb:53:in `block in authenticate'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:834:in `process_result'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in `block in transmit'
/usr/share/ruby/net/http.rb:933:in `start'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in `transmit'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/authenticators/negotiate.rb:44:in `authenticate'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb:53:in `authenticate'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/rest_client_extensions.rb:14:in `block in <module:RestClientExtensions>'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:715:in `block in transmit'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:714:in `each'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:714:in `transmit'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute'
/usr/share/gems/gems/rest-client-2.1.0/lib/restclient/resource.rb:51:in `get'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/api.rb:327:in `call_client'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/api.rb:240:in `http_call'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/api.rb:190:in `call_action'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/api.rb:185:in `call'
/usr/share/gems/gems/apipie-bindings-0.5.0/lib/apipie_bindings/resource.rb:21:in `call'
/usr/share/gems/gems/hammer_cli-3.6.0.pre.develop/lib/hammer_cli/apipie/command.rb:53:in `send_request'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:180:in `send_request'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:257:in `send_request'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:309:in `block in retrieve_all'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:308:in `loop'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:308:in `retrieve_all'
/usr/share/gems/gems/hammer_cli_foreman-3.6.0.pre.develop/lib/hammer_cli_foreman/commands.rb:276:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/hammer_cli-3.6.0.pre.develop/lib/hammer_cli/abstract.rb:103:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/hammer_cli-3.6.0.pre.develop/lib/hammer_cli/abstract.rb:103:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/hammer_cli-3.6.0.pre.develop/lib/hammer_cli/abstract.rb:103:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
/usr/share/gems/gems/hammer_cli-3.6.0.pre.develop/bin/hammer:147:in `<top (required)>'
/usr/bin/hammer:23:in `load'
/usr/bin/hammer:23:in `<main>'
Foreman nightly, foreman-3.6.0-0.2.develop.20221201132419giteaf0052.el8.noarch
Files
Actions
#1
Updated by Lukáš Hellebrandt about 2 years ago
- File foreman-ssl_access_ssl.log foreman-ssl_access_ssl.log added
- File production.log production.log added
Actions