open_directory_utils 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f89ec752b44434bacf48efcf1446327f5e6a6cc60ea03a765bb517132c7e1e10
4
- data.tar.gz: 1ed7f7d3251df048455c7f5d0041aa032e6da99fc493c1925444765e845eb9bf
3
+ metadata.gz: b7106cdd8914ddba15d1bc47057fdbeeac167d9e8d4d89b3af6f9e03675afde9
4
+ data.tar.gz: 830a9e225de96ed0bb0bbca72856780b23e90b1d1b6dd0ac0ba68e4f22dc9960
5
5
  SHA512:
6
- metadata.gz: 5eaddadceb38877104e406edd5db58e945b6eda158ad680e4aec12864e0fcdd4be9884852dea5a80b2c8b85b5156790a5d53c8aa2661053b2118d10019e5f46f
7
- data.tar.gz: e601168bc891ed5a9d1f3294acdf5d2c36800b943c7b5c062396b1f74838b089e52408203b8e1d693e27c50c99742d4d75b2950be2e5b62893b2cc2c75c89d7a
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: 'EMailAttribute'}
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)
@@ -1,5 +1,5 @@
1
1
  module OpenDirectoryUtils
2
2
  module Version
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
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.5
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-14 00:00:00.000000000 Z
12
+ date: 2018-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh