open_directory_utils 0.1.7 → 0.1.8
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/Gemfile.lock +1 -1
- data/examples/relations.yml +1 -44
- data/lib/open_directory_utils/commands_user_create_remove.rb +14 -3
- data/lib/open_directory_utils/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: e93c6bd15ea7f1a4e59fd0e5df814dcba3556a44ebf3c98ffa70c386c4dfb8c9
|
|
4
|
+
data.tar.gz: cb30786490c3a1b8e3b9653cc09e299b627ab4ef24c6df348fe1892f255f543a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58b219db81e04966c2bf4e987538bdc8f7463083445d3dbf5d1d3f3c7b77191cc2c029eaa18ba4976f3be9ab9189613d737704e14c7bb29ab1399d45f1eba559
|
|
7
|
+
data.tar.gz: ed9597e71a7f56d4bee21714eaa6f33c6cf2381880c30631a8ebd07eaa9ba268d5c7e99450ea235cc6f4820da20b02fcea1f7b9870c7bce0a4e5022b25dae2f4
|
data/Gemfile.lock
CHANGED
data/examples/relations.yml
CHANGED
|
@@ -1,48 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
# preferred with first name, last name, email and group membership
|
|
3
3
|
# by default account is disabled unless enabled: true is present
|
|
4
|
-
- :user_name:
|
|
4
|
+
- :user_name: baertfgh220
|
|
5
5
|
:relations: 511541
|
|
6
|
-
# - :user_name: albuerl430
|
|
7
|
-
# :relations: 557430
|
|
8
|
-
# - :user_name: rogersl264
|
|
9
|
-
# :relations: 558264
|
|
10
|
-
# - :user_name: miklauc283
|
|
11
|
-
# :relations: 558283
|
|
12
|
-
# - :user_name: portilc119
|
|
13
|
-
# :relations: 559119
|
|
14
|
-
# - :user_name: aguilax190
|
|
15
|
-
# :relations: 559190
|
|
16
|
-
# - :user_name: gonzalm208
|
|
17
|
-
# :relations: 559208
|
|
18
|
-
#
|
|
19
|
-
# milesm866 | 564866
|
|
20
|
-
# galvanj568 | 565568
|
|
21
|
-
# tiradob869 | 565869
|
|
22
|
-
# changt870 | 566870
|
|
23
|
-
# nohm396 | 570396
|
|
24
|
-
# grigoli979 | 571979
|
|
25
|
-
# bedoyac063 | 573063
|
|
26
|
-
# mariglm633 | 575633
|
|
27
|
-
# yudinm437 | 576437
|
|
28
|
-
# fijogai896 | 577896
|
|
29
|
-
# zunzunj443 | 579443
|
|
30
|
-
# zhouw300 | 583300
|
|
31
|
-
# canavej018 | 585018
|
|
32
|
-
# xuz906 | 588906
|
|
33
|
-
# benetor857 | 590857
|
|
34
|
-
# flaskaa617 | 592617
|
|
35
|
-
# berengd044 | 593044
|
|
36
|
-
# guow690 | 593690
|
|
37
|
-
# lacerdm840 | 593840
|
|
38
|
-
# mussina201 | 599201
|
|
39
|
-
# binzegj915 | 599915
|
|
40
|
-
# borowyk252 | 600252
|
|
41
|
-
# mussina288 | 600288
|
|
42
|
-
# linj671 | 603671
|
|
43
|
-
# rizoorm894 | 603894
|
|
44
|
-
# gonzalg934 | 603934
|
|
45
|
-
# pieribe687 | 611687
|
|
46
|
-
# shukshm297 | 615297
|
|
47
|
-
# elizarf803 | 622803
|
|
48
|
-
# zuoj861 | 602861
|
|
@@ -87,6 +87,14 @@ module OpenDirectoryUtils
|
|
|
87
87
|
attribs[:value] = nil
|
|
88
88
|
answer << user_set_organization_info(attribs, dir_info)
|
|
89
89
|
end
|
|
90
|
+
if attribs[:department] or attribs[:departmentnumber] or attribs[:department_number]
|
|
91
|
+
attribs[:value] = nil
|
|
92
|
+
answer << user_set_department(attribs, dir_info)
|
|
93
|
+
end
|
|
94
|
+
if attribs[:keyword] or attribs[:keywords]
|
|
95
|
+
attribs[:value] = nil
|
|
96
|
+
answer << user_set_keywords(attribs, dir_info)
|
|
97
|
+
end
|
|
90
98
|
if attribs[:group_name] or attribs[:groupname] or attribs[:gid] or
|
|
91
99
|
attribs[:group_membership] or attribs[:groupmembership]
|
|
92
100
|
attribs[:value] = nil
|
|
@@ -146,10 +154,13 @@ module OpenDirectoryUtils
|
|
|
146
154
|
attribs[:value] = nil
|
|
147
155
|
answer << user_set_organization_info(attribs, dir_info)
|
|
148
156
|
end
|
|
149
|
-
if attribs[:
|
|
150
|
-
attribs[:group_membership] or attribs[:groupmembership]
|
|
157
|
+
if attribs[:department] or attribs[:departmentnumber] or attribs[:department_number]
|
|
151
158
|
attribs[:value] = nil
|
|
152
|
-
answer <<
|
|
159
|
+
answer << user_set_department(attribs, dir_info)
|
|
160
|
+
end
|
|
161
|
+
if attribs[:keyword] or attribs[:keywords]
|
|
162
|
+
attribs[:value] = nil
|
|
163
|
+
answer << user_set_keywords(attribs, dir_info)
|
|
153
164
|
end
|
|
154
165
|
|
|
155
166
|
return answer.flatten
|