Sha256: 0afbdc3f3552da9f903f9acd0d443ba388e8be8fb77ce6b2405df47cbb4efa47
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 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(stream, size) super case @code = stream.read_network_int32 when CRYPT_PASSWORD then @salt = stream.readn(2) when MD5_PASSWORD then @salt = stream.readn(4) when GSS_CONTINUE then @auth_data = stream.readn(size - 9) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vertica-0.8.1 | lib/vertica/messages/backend_messages/authentication.rb |