aerospike 2.20.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bed472fc5bda556a4f67f2d6e4e0ee8a82188253b34e0bfab3a0b05be3526d2e
4
- data.tar.gz: 4a11f36509d86792412e764ef978ec6e27753eab2a96e65353b73786ea383591
3
+ metadata.gz: 5453ee9475d4868e6b65ed5a13868dac07e0628538330da6b8f6f1a1a65624c7
4
+ data.tar.gz: 74044cf1e3c30af803c2d04e7e17989cc49e699b229c1cd08b0cfb384ee004a4
5
5
  SHA512:
6
- metadata.gz: fa02cbf6bc8e6065e80849e5dcbe71d91550eb549c77af53c761df2e969d7f3135ea3641dcc8af28bd98d5f3e46ab868e61f4e61023c70f0a400e99c93747a00
7
- data.tar.gz: 47f9d0da4d7099b2e96992012deb79292c4de7d8bbd8fa9ca3a362dc5aa126841887d3eef8f0f0f15e176190a729dde8377f486f3c0ef357b312ab43569b31ce
6
+ metadata.gz: aea8982415b6f606822ab4648dc48fea6f13ca1984eb7f0ba7a1708da03a975dbd484aeb206ad3472af1c867f40623a6db4cb9fd35d80b0b65f54dfc4f10a059
7
+ data.tar.gz: bab0149d85d4b90232bc2a9fad68aeda837b175ea981d671690cddf26e7713d5d8c7ef732abd2f1445e8bf880fb595f1b9aafd9b1b1028dd7c0ada94d70ccc97
data/CHANGELOG.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [2.20.0] - 2020-11-08
5
+ ## [2.20.1] - 2022-05-11
6
+
7
+ * **Improvements**
8
+ * Add basic support for the new authentication protocol.
9
+
10
+ ## [2.20.0] - 2021-11-08
6
11
 
7
12
  Notice: This version of the client only supports Aerospike Server v4.9 and later. Some features will work for the older server versions, but they are not tested, nor officially supported.
8
13
 
@@ -28,13 +28,15 @@ module Aerospike
28
28
  #CREATE_ROLE = 8
29
29
  QUERY_USERS = 9
30
30
  #QUERY_ROLES = 10
31
+ LOGIN = 20
31
32
 
32
33
  # Field IDs
33
- USER = 0
34
- PASSWORD = 1
35
- OLD_PASSWORD = 2
36
- CREDENTIAL = 3
37
- ROLES = 10
34
+ USER = 0
35
+ PASSWORD = 1
36
+ OLD_PASSWORD = 2
37
+ CREDENTIAL = 3
38
+ CLEAR_PASSWORD = 4
39
+ ROLES = 10
38
40
  #PRIVILEGES = 11
39
41
 
40
42
  # Misc
@@ -60,6 +62,12 @@ module Aerospike
60
62
  conn.read(@data_buffer, HEADER_SIZE)
61
63
 
62
64
  result = @data_buffer.read(RESULT_CODE)
65
+
66
+ # read the rest of the buffer
67
+ size = @data_buffer.read_int64(0)
68
+ length = (size & 0xFFFFFFFFFFFF) - HEADER_REMAINING
69
+ conn.read(@data_buffer, length)
70
+
63
71
  raise Exceptions::Aerospike.new(result, "Authentication failed") if result != 0
64
72
  ensure
65
73
  Buffer.put(@data_buffer)
@@ -67,7 +75,7 @@ module Aerospike
67
75
  end
68
76
 
69
77
  def set_authenticate(user, password)
70
- write_header(AUTHENTICATE, 2)
78
+ write_header(LOGIN, 2)
71
79
  write_field_str(USER, user)
72
80
  write_field_bytes(CREDENTIAL, password)
73
81
  write_size
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "2.20.0"
3
+ VERSION = "2.20.1"
4
4
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20.0
4
+ version: 2.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
8
8
  - Jan Hecking
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-08 00:00:00.000000000 Z
12
+ date: 2022-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -209,8 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.1.2
213
- signing_key:
212
+ rubygems_version: 3.2.15
213
+ signing_key:
214
214
  specification_version: 4
215
215
  summary: An Aerospike driver for Ruby.
216
216
  test_files: []