ruby-jss 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-jss might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGES.md +2 -2
- data/lib/jss/db_connection.rb +7 -1
- data/lib/jss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7db3a85a2ce09946ec84f4b254f948f566daa8f5e0e9b8f939c9efb8eefef1
|
4
|
+
data.tar.gz: 1edb35f947212312c165f2ff0fa1ed3c4a059fb58f0abb5de9bea8877bfab3a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8d61d9f03d99a289f0b5c4dd0fefe246f824fac21003e905bbc5dd25c6e2ff84bffbc6eb3244086db8af143ca39722e738711c82cf5f8b9174c6183d8c40d03
|
7
|
+
data.tar.gz: db954707cef1f340613ecb27657d38673e6117ac4b9db05ba3025bab6ba4446e220808346856e4c50003eca58fc84dfb8c6e640d2a41e3a32987e9dc5766a99a
|
data/CHANGES.md
CHANGED
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## \[1.2.
|
7
|
+
## \[1.2.3] - 2019-10-31
|
8
8
|
### Added
|
9
9
|
- the ManagementHistory mixin module used by the Computer and MobileDevice classes, now has a `last_mdm_contact` class and instance method, which returns a Time object for the timestamp of the most recent completed MDM command. This is useful for MobileDevices, which don't have anything like the `last_checkin` value for comptuers, indicating real communication between the device and Jamf Pro.
|
10
10
|
Note that the `last_inventory_update` value does NOT indicate such communication, since that timestamp is updated when values are changed via the API
|
@@ -21,7 +21,7 @@ Note that the `last_inventory_update` value does NOT indicate such communication
|
|
21
21
|
- ExtensionAttribute#attribute_mapping getter & setter for EAs that have the 'LDAP Attribute Mapping' input type.
|
22
22
|
|
23
23
|
### Fixed
|
24
|
-
- DB_CNX.valid_server? now specifies utf8 charset, needed for newer versions of mysql
|
24
|
+
- DB_CNX.valid_server? now specifies utf8 charset, and catches NotSupportedAuthMode errors, needed for newer versions of mysql
|
25
25
|
|
26
26
|
### Changed
|
27
27
|
- Cleaned up and modernized ExtensionAttribute and its subclasses. Marked a few things as deprecated: recon_display, scripting_language, and platform, all in ComputerExtensionAttribute.
|
data/lib/jss/db_connection.rb
CHANGED
@@ -246,9 +246,15 @@ module JSS
|
|
246
246
|
# this connection should get an access denied error if there is
|
247
247
|
# a mysql server there. I'm assuming no one will use this username
|
248
248
|
# and pw for anything real
|
249
|
+
# Also with newer versions of mysql, a Mysql instance that has
|
250
|
+
# never authenticated will raise Mysql::ServerError::NotSupportedAuthMode
|
251
|
+
# rather than Mysql::ServerError::AccessDeniedError, until a
|
252
|
+
# successful connection is made. After that, re-connecting will
|
253
|
+
# raise AccessDeniedError when credentials are invalid.
|
254
|
+
|
249
255
|
mysql.connect server, 'notArealUser', "definatelyNotA#{$PROCESS_ID}password", 'not_a_db', port
|
250
256
|
|
251
|
-
rescue Mysql::ServerError::AccessDeniedError
|
257
|
+
rescue Mysql::ServerError::AccessDeniedError, Mysql::ServerError::NotSupportedAuthMode
|
252
258
|
return true
|
253
259
|
rescue
|
254
260
|
return false
|
data/lib/jss/version.rb
CHANGED