Class: HTTPClient::SSPINegotiateAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/rhc/rest/httpclient.rb

Instance Method Summary collapse

Instance Method Details

#get_with_rescue(*args) ⇒ Object Also known as: get



5
6
7
8
9
10
11
12
13
14
# File 'lib/rhc/rest/httpclient.rb', line 5

def get_with_rescue(*args)
  get_without_rescue(*args)
rescue
  unless @warned
    @warned = true
    RHC::Helpers.warn "Could not enable Kerberos authentication"
    RHC::Helpers.warn $!.message.sub('gss_init_sec_context did not return GSS_S_COMPLETE: Unspecified GSS failure.  Minor code may provide more information', '').strip rescue nil
  end
  nil
end