Method: GSSAPI::Simple#set_keytab

Defined in:
lib/gssapi/simple.rb

#set_keytab(keytab) ⇒ Object

Add a path to a custom keytab file

Parameters:

  • keytab (String)

    the path to the keytab

Raises:



199
200
201
202
203
# File 'lib/gssapi/simple.rb', line 199

def set_keytab(keytab)
  maj_stat = LibGSSAPI.krb5_gss_register_acceptor_identity(keytab)
  raise GssApiError.new(maj_stat, min_stat), "krb5_gss_register_acceptor_identity did not return GSS_S_COMPLETE" if maj_stat != 0
  true
end