open_directory_utils 0.1.5 → 0.1.6
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 +4 -4
- data/README.md +3 -0
- data/lib/open_directory_utils/commands_user_create_remove.rb +7 -7
- data/lib/open_directory_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7106cdd8914ddba15d1bc47057fdbeeac167d9e8d4d89b3af6f9e03675afde9
|
|
4
|
+
data.tar.gz: 830a9e225de96ed0bb0bbca72856780b23e90b1d1b6dd0ac0ba68e4f22dc9960
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0941277d11e98e26ab6a6a06e1d7e13acf745e1d91ac595437ccdd69f7a754a300eec60aa5457da622dabc208cd001ac4bcb2ba9ed4123f7626d6ae20d33b8f9'
|
|
7
|
+
data.tar.gz: f93fb2bf7fed1c375732020193b3884b7944f1c4cabdd010ec50d188c7b69611455a843c659852cd6841527699657b814d72f7c5cc2769b6c78f4ca18fb5d232
|
data/README.md
CHANGED
|
@@ -7,6 +7,7 @@ One can also build custom DSCL commands and send them to the server as needed to
|
|
|
7
7
|
|
|
8
8
|
## Change Log
|
|
9
9
|
|
|
10
|
+
* **v0.1.6** - 2018-06-14 - fixed EMailAddress (was incorrectly EMailAttribute)
|
|
10
11
|
* **v0.1.5** - 2018-06-14 - add version number to connection for easy checking
|
|
11
12
|
* **v0.1.4** - 2018-06-13 - changed the return hash to {response: xxx, status: 'success'}
|
|
12
13
|
* **v0.1.3** - 2018-06-13 - able to sync all fields in typcial OD
|
|
@@ -66,6 +67,8 @@ od = OpenDirectoryUtils::Connection.new(
|
|
|
66
67
|
dir_password: 'directory_admin_password'
|
|
67
68
|
}
|
|
68
69
|
)
|
|
70
|
+
# see gem version in use
|
|
71
|
+
od.version
|
|
69
72
|
|
|
70
73
|
user_params = { user_name: 'someone', user_number: 9876,
|
|
71
74
|
first_name: 'Someone', last__name: 'Special',
|
|
@@ -189,13 +189,13 @@ module OpenDirectoryUtils
|
|
|
189
189
|
user_attrs = attribs.merge(command)
|
|
190
190
|
answer << dscl( user_attrs, dir_info )
|
|
191
191
|
|
|
192
|
-
command = {action: 'create', scope: 'Users', attribute: '
|
|
192
|
+
command = {action: 'create', scope: 'Users', attribute: 'EMailAddress'}
|
|
193
193
|
user_attrs = attribs.merge(command)
|
|
194
194
|
answer << dscl( user_attrs, dir_info )
|
|
195
195
|
|
|
196
|
-
command = {action: 'create', scope: 'Users', attribute: 'apple-user-mailattribute'}
|
|
197
|
-
user_attrs = attribs.merge(command)
|
|
198
|
-
answer << dscl( user_attrs, dir_info )
|
|
196
|
+
# command = {action: 'create', scope: 'Users', attribute: 'apple-user-mailattribute'}
|
|
197
|
+
# user_attrs = attribs.merge(command)
|
|
198
|
+
# answer << dscl( user_attrs, dir_info )
|
|
199
199
|
|
|
200
200
|
return answer
|
|
201
201
|
end
|
|
@@ -217,9 +217,9 @@ module OpenDirectoryUtils
|
|
|
217
217
|
|
|
218
218
|
answer = []
|
|
219
219
|
|
|
220
|
-
command = {action: 'append', scope: 'Users', attribute: 'mail'}
|
|
221
|
-
user_attrs = attribs.merge(command)
|
|
222
|
-
answer << dscl( user_attrs, dir_info )
|
|
220
|
+
# command = {action: 'append', scope: 'Users', attribute: 'mail'}
|
|
221
|
+
# user_attrs = attribs.merge(command)
|
|
222
|
+
# answer << dscl( user_attrs, dir_info )
|
|
223
223
|
|
|
224
224
|
command = {action: 'append', scope: 'Users', attribute: 'email'}
|
|
225
225
|
user_attrs = attribs.merge(command)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: open_directory_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill Tihen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-06-
|
|
12
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: net-ssh
|