aerospike 2.20.0 → 2.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/aerospike/command/admin_command.rb +14 -6
- data/lib/aerospike/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5453ee9475d4868e6b65ed5a13868dac07e0628538330da6b8f6f1a1a65624c7
|
4
|
+
data.tar.gz: 74044cf1e3c30af803c2d04e7e17989cc49e699b229c1cd08b0cfb384ee004a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
34
|
-
PASSWORD
|
35
|
-
OLD_PASSWORD
|
36
|
-
CREDENTIAL
|
37
|
-
|
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(
|
78
|
+
write_header(LOGIN, 2)
|
71
79
|
write_field_str(USER, user)
|
72
80
|
write_field_bytes(CREDENTIAL, password)
|
73
81
|
write_size
|
data/lib/aerospike/version.rb
CHANGED
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.
|
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:
|
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.
|
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: []
|