Sha256: ecf33d625fc40e11a9e2ab7dafa5158472f15055b053f41f41657bbf63d17e63

Contents?: true

Size: 689 Bytes

Versions: 28

Compression:

Stored size: 689 Bytes

Contents

module Vertica
  module Messages
    class Authentication < BackendMessage
      message_id 'R'

      OK                  = 0
      KERBEROS_V5         = 2
      CLEARTEXT_PASSWORD  = 3
      CRYPT_PASSWORD      = 4
      MD5_PASSWORD        = 5
      SCM_CREDENTIAL      = 6
      GSS                 = 7
      GSS_CONTINUE        = 8
      SSPI                = 9

      attr_reader :code
      attr_reader :salt
      attr_reader :auth_data

      def initialize(data)
        @code, other = data.unpack('Na*')
        case @code
          when CRYPT_PASSWORD, MD5_PASSWORD then @salt = other
          when GSS_CONTINUE then @auth_data = other
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
vertica-0.12.0 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.11.4 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.11.3 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.11.2 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.11.1 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.11.0 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.5 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.4 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.3 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.2 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.1 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.10.0 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.6 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.5 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.4 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.3 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.2 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.1 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.0 lib/vertica/messages/backend_messages/authentication.rb
vertica-0.9.0.beta9 lib/vertica/messages/backend_messages/authentication.rb