Exception: KerberosAuthenticator::Krb5::SetPassError

Inherits:
Error show all
Defined in:
lib/kerberos_authenticator/krb5/error.rb

Overview

An error indicating a failure response from a server when trying to change a password.

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result_code, result_string) ⇒ SetPassError

Initializes a new SetPassError using an RFC 3244 result code and result string supplied in a server response.

Parameters:

  • result_code (Integer)

    the result code used to convey the result of a Set Password operation

  • result_string (String)

    the full result string used to convey the result of a Set Password operation.



67
68
69
70
71
# File 'lib/kerberos_authenticator/krb5/error.rb', line 67

def initialize(result_code, result_string)
  @result_code = result_code
  @result_string = result_string
  super @result_string.lines.first.to_s.strip
end

Instance Attribute Details

#result_codeInteger (readonly)

Returns the result code used to convey the result of a Set Password operation.

Returns:

  • (Integer)

    the result code used to convey the result of a Set Password operation.



# File 'lib/kerberos_authenticator/krb5/error.rb', line 54

#result_stringString (readonly)

Returns the full result string used to convey the result of a Set Password operation.

Returns:

  • (String)

    the full result string used to convey the result of a Set Password operation.



# File 'lib/kerberos_authenticator/krb5/error.rb', line 54