powerhome-activeldap 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +6 -0
  3. data/COPYING +340 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE +59 -0
  6. data/README.textile +140 -0
  7. data/TODO +32 -0
  8. data/benchmark/README.md +64 -0
  9. data/benchmark/bench-backend.rb +247 -0
  10. data/benchmark/bench-instantiate.rb +98 -0
  11. data/benchmark/config.yaml.sample +5 -0
  12. data/doc/text/development.textile +54 -0
  13. data/doc/text/news.textile +811 -0
  14. data/doc/text/rails.textile +144 -0
  15. data/doc/text/tutorial.textile +1010 -0
  16. data/examples/config.yaml.example +5 -0
  17. data/examples/example.der +0 -0
  18. data/examples/example.jpg +0 -0
  19. data/examples/groupadd +41 -0
  20. data/examples/groupdel +35 -0
  21. data/examples/groupls +49 -0
  22. data/examples/groupmod +42 -0
  23. data/examples/lpasswd +55 -0
  24. data/examples/objects/group.rb +13 -0
  25. data/examples/objects/ou.rb +4 -0
  26. data/examples/objects/user.rb +20 -0
  27. data/examples/ouadd +38 -0
  28. data/examples/useradd +45 -0
  29. data/examples/useradd-binary +53 -0
  30. data/examples/userdel +34 -0
  31. data/examples/userls +50 -0
  32. data/examples/usermod +42 -0
  33. data/examples/usermod-binary-add +50 -0
  34. data/examples/usermod-binary-add-time +54 -0
  35. data/examples/usermod-binary-del +48 -0
  36. data/examples/usermod-lang-add +43 -0
  37. data/lib/active_ldap.rb +85 -0
  38. data/lib/active_ldap/action_controller/ldap_benchmarking.rb +55 -0
  39. data/lib/active_ldap/acts/tree.rb +78 -0
  40. data/lib/active_ldap/adapter/base.rb +707 -0
  41. data/lib/active_ldap/adapter/jndi.rb +184 -0
  42. data/lib/active_ldap/adapter/jndi_connection.rb +185 -0
  43. data/lib/active_ldap/adapter/ldap.rb +290 -0
  44. data/lib/active_ldap/adapter/ldap_ext.rb +105 -0
  45. data/lib/active_ldap/adapter/net_ldap.rb +309 -0
  46. data/lib/active_ldap/adapter/net_ldap_ext.rb +23 -0
  47. data/lib/active_ldap/association/belongs_to.rb +47 -0
  48. data/lib/active_ldap/association/belongs_to_many.rb +58 -0
  49. data/lib/active_ldap/association/children.rb +21 -0
  50. data/lib/active_ldap/association/collection.rb +105 -0
  51. data/lib/active_ldap/association/has_many.rb +31 -0
  52. data/lib/active_ldap/association/has_many_utils.rb +44 -0
  53. data/lib/active_ldap/association/has_many_wrap.rb +75 -0
  54. data/lib/active_ldap/association/proxy.rb +107 -0
  55. data/lib/active_ldap/associations.rb +205 -0
  56. data/lib/active_ldap/attribute_methods.rb +23 -0
  57. data/lib/active_ldap/attribute_methods/before_type_cast.rb +24 -0
  58. data/lib/active_ldap/attribute_methods/dirty.rb +43 -0
  59. data/lib/active_ldap/attribute_methods/query.rb +31 -0
  60. data/lib/active_ldap/attribute_methods/read.rb +44 -0
  61. data/lib/active_ldap/attribute_methods/write.rb +38 -0
  62. data/lib/active_ldap/attributes.rb +176 -0
  63. data/lib/active_ldap/base.rb +1410 -0
  64. data/lib/active_ldap/callbacks.rb +71 -0
  65. data/lib/active_ldap/command.rb +49 -0
  66. data/lib/active_ldap/compatible.rb +44 -0
  67. data/lib/active_ldap/configuration.rb +147 -0
  68. data/lib/active_ldap/connection.rb +299 -0
  69. data/lib/active_ldap/distinguished_name.rb +291 -0
  70. data/lib/active_ldap/entry_attribute.rb +78 -0
  71. data/lib/active_ldap/escape.rb +12 -0
  72. data/lib/active_ldap/get_text.rb +20 -0
  73. data/lib/active_ldap/get_text/parser.rb +161 -0
  74. data/lib/active_ldap/helper.rb +92 -0
  75. data/lib/active_ldap/human_readable.rb +133 -0
  76. data/lib/active_ldap/ldap_error.rb +74 -0
  77. data/lib/active_ldap/ldif.rb +930 -0
  78. data/lib/active_ldap/log_subscriber.rb +50 -0
  79. data/lib/active_ldap/object_class.rb +95 -0
  80. data/lib/active_ldap/operations.rb +624 -0
  81. data/lib/active_ldap/persistence.rb +100 -0
  82. data/lib/active_ldap/populate.rb +53 -0
  83. data/lib/active_ldap/railtie.rb +43 -0
  84. data/lib/active_ldap/railties/controller_runtime.rb +48 -0
  85. data/lib/active_ldap/schema.rb +701 -0
  86. data/lib/active_ldap/schema/syntaxes.rb +422 -0
  87. data/lib/active_ldap/timeout.rb +75 -0
  88. data/lib/active_ldap/timeout_stub.rb +17 -0
  89. data/lib/active_ldap/user_password.rb +99 -0
  90. data/lib/active_ldap/validations.rb +200 -0
  91. data/lib/active_ldap/version.rb +3 -0
  92. data/lib/active_ldap/xml.rb +139 -0
  93. data/lib/rails/generators/active_ldap/model/USAGE +18 -0
  94. data/lib/rails/generators/active_ldap/model/model_generator.rb +47 -0
  95. data/lib/rails/generators/active_ldap/model/templates/model_active_ldap.rb +3 -0
  96. data/lib/rails/generators/active_ldap/scaffold/scaffold_generator.rb +14 -0
  97. data/lib/rails/generators/active_ldap/scaffold/templates/ldap.yml +19 -0
  98. data/po/en/active-ldap.po +4029 -0
  99. data/po/ja/active-ldap.po +4060 -0
  100. data/test/add-phonetic-attribute-options-to-slapd.ldif +10 -0
  101. data/test/al-test-utils.rb +428 -0
  102. data/test/command.rb +111 -0
  103. data/test/config.yaml.sample +6 -0
  104. data/test/fixtures/lower_case_object_class_schema.rb +802 -0
  105. data/test/run-test.rb +34 -0
  106. data/test/test_acts_as_tree.rb +60 -0
  107. data/test/test_adapter.rb +121 -0
  108. data/test/test_associations.rb +701 -0
  109. data/test/test_attributes.rb +117 -0
  110. data/test/test_base.rb +1214 -0
  111. data/test/test_base_per_instance.rb +61 -0
  112. data/test/test_bind.rb +62 -0
  113. data/test/test_callback.rb +31 -0
  114. data/test/test_configuration.rb +40 -0
  115. data/test/test_connection.rb +82 -0
  116. data/test/test_connection_per_class.rb +112 -0
  117. data/test/test_connection_per_dn.rb +112 -0
  118. data/test/test_dirty.rb +98 -0
  119. data/test/test_dn.rb +172 -0
  120. data/test/test_find.rb +176 -0
  121. data/test/test_groupadd.rb +50 -0
  122. data/test/test_groupdel.rb +46 -0
  123. data/test/test_groupls.rb +107 -0
  124. data/test/test_groupmod.rb +51 -0
  125. data/test/test_ldif.rb +1890 -0
  126. data/test/test_load.rb +133 -0
  127. data/test/test_lpasswd.rb +75 -0
  128. data/test/test_object_class.rb +74 -0
  129. data/test/test_persistence.rb +131 -0
  130. data/test/test_reflection.rb +175 -0
  131. data/test/test_schema.rb +559 -0
  132. data/test/test_syntax.rb +444 -0
  133. data/test/test_user.rb +217 -0
  134. data/test/test_user_password.rb +108 -0
  135. data/test/test_useradd-binary.rb +62 -0
  136. data/test/test_useradd.rb +57 -0
  137. data/test/test_userdel.rb +48 -0
  138. data/test/test_userls.rb +91 -0
  139. data/test/test_usermod-binary-add-time.rb +65 -0
  140. data/test/test_usermod-binary-add.rb +64 -0
  141. data/test/test_usermod-binary-del.rb +66 -0
  142. data/test/test_usermod-lang-add.rb +59 -0
  143. data/test/test_usermod.rb +58 -0
  144. data/test/test_validation.rb +274 -0
  145. metadata +379 -0
metadata ADDED
@@ -0,0 +1,379 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: powerhome-activeldap
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.3
5
+ platform: ruby
6
+ authors:
7
+ - Will Drewry
8
+ - Kouhei Sutou
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-09-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activemodel
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 3.2.8
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 3.2.8
28
+ - !ruby/object:Gem::Dependency
29
+ name: locale
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: gettext
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: gettext_i18n_rails
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: bundler
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: test-unit
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: test-unit-notify
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: yard
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: RedCloth
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ description: |2
155
+ 'ActiveLdap' is a ruby library which provides a clean
156
+ objected oriented interface to the Ruby/LDAP library. It was inspired
157
+ by ActiveRecord. This is not nearly as clean or as flexible as
158
+ ActiveRecord, but it is still trivial to define new objects and manipulate
159
+ them with minimal difficulty.
160
+ email:
161
+ - redpig@dataspill.org
162
+ - kou@cozmixng.org
163
+ executables: []
164
+ extensions: []
165
+ extra_rdoc_files: []
166
+ files:
167
+ - ".yardopts"
168
+ - COPYING
169
+ - Gemfile
170
+ - LICENSE
171
+ - README.textile
172
+ - TODO
173
+ - benchmark/README.md
174
+ - benchmark/bench-backend.rb
175
+ - benchmark/bench-instantiate.rb
176
+ - benchmark/config.yaml.sample
177
+ - doc/text/development.textile
178
+ - doc/text/news.textile
179
+ - doc/text/rails.textile
180
+ - doc/text/tutorial.textile
181
+ - examples/config.yaml.example
182
+ - examples/example.der
183
+ - examples/example.jpg
184
+ - examples/groupadd
185
+ - examples/groupdel
186
+ - examples/groupls
187
+ - examples/groupmod
188
+ - examples/lpasswd
189
+ - examples/objects/group.rb
190
+ - examples/objects/ou.rb
191
+ - examples/objects/user.rb
192
+ - examples/ouadd
193
+ - examples/useradd
194
+ - examples/useradd-binary
195
+ - examples/userdel
196
+ - examples/userls
197
+ - examples/usermod
198
+ - examples/usermod-binary-add
199
+ - examples/usermod-binary-add-time
200
+ - examples/usermod-binary-del
201
+ - examples/usermod-lang-add
202
+ - lib/active_ldap.rb
203
+ - lib/active_ldap/action_controller/ldap_benchmarking.rb
204
+ - lib/active_ldap/acts/tree.rb
205
+ - lib/active_ldap/adapter/base.rb
206
+ - lib/active_ldap/adapter/jndi.rb
207
+ - lib/active_ldap/adapter/jndi_connection.rb
208
+ - lib/active_ldap/adapter/ldap.rb
209
+ - lib/active_ldap/adapter/ldap_ext.rb
210
+ - lib/active_ldap/adapter/net_ldap.rb
211
+ - lib/active_ldap/adapter/net_ldap_ext.rb
212
+ - lib/active_ldap/association/belongs_to.rb
213
+ - lib/active_ldap/association/belongs_to_many.rb
214
+ - lib/active_ldap/association/children.rb
215
+ - lib/active_ldap/association/collection.rb
216
+ - lib/active_ldap/association/has_many.rb
217
+ - lib/active_ldap/association/has_many_utils.rb
218
+ - lib/active_ldap/association/has_many_wrap.rb
219
+ - lib/active_ldap/association/proxy.rb
220
+ - lib/active_ldap/associations.rb
221
+ - lib/active_ldap/attribute_methods.rb
222
+ - lib/active_ldap/attribute_methods/before_type_cast.rb
223
+ - lib/active_ldap/attribute_methods/dirty.rb
224
+ - lib/active_ldap/attribute_methods/query.rb
225
+ - lib/active_ldap/attribute_methods/read.rb
226
+ - lib/active_ldap/attribute_methods/write.rb
227
+ - lib/active_ldap/attributes.rb
228
+ - lib/active_ldap/base.rb
229
+ - lib/active_ldap/callbacks.rb
230
+ - lib/active_ldap/command.rb
231
+ - lib/active_ldap/compatible.rb
232
+ - lib/active_ldap/configuration.rb
233
+ - lib/active_ldap/connection.rb
234
+ - lib/active_ldap/distinguished_name.rb
235
+ - lib/active_ldap/entry_attribute.rb
236
+ - lib/active_ldap/escape.rb
237
+ - lib/active_ldap/get_text.rb
238
+ - lib/active_ldap/get_text/parser.rb
239
+ - lib/active_ldap/helper.rb
240
+ - lib/active_ldap/human_readable.rb
241
+ - lib/active_ldap/ldap_error.rb
242
+ - lib/active_ldap/ldif.rb
243
+ - lib/active_ldap/log_subscriber.rb
244
+ - lib/active_ldap/object_class.rb
245
+ - lib/active_ldap/operations.rb
246
+ - lib/active_ldap/persistence.rb
247
+ - lib/active_ldap/populate.rb
248
+ - lib/active_ldap/railtie.rb
249
+ - lib/active_ldap/railties/controller_runtime.rb
250
+ - lib/active_ldap/schema.rb
251
+ - lib/active_ldap/schema/syntaxes.rb
252
+ - lib/active_ldap/timeout.rb
253
+ - lib/active_ldap/timeout_stub.rb
254
+ - lib/active_ldap/user_password.rb
255
+ - lib/active_ldap/validations.rb
256
+ - lib/active_ldap/version.rb
257
+ - lib/active_ldap/xml.rb
258
+ - lib/rails/generators/active_ldap/model/USAGE
259
+ - lib/rails/generators/active_ldap/model/model_generator.rb
260
+ - lib/rails/generators/active_ldap/model/templates/model_active_ldap.rb
261
+ - lib/rails/generators/active_ldap/scaffold/scaffold_generator.rb
262
+ - lib/rails/generators/active_ldap/scaffold/templates/ldap.yml
263
+ - po/en/active-ldap.po
264
+ - po/ja/active-ldap.po
265
+ - test/add-phonetic-attribute-options-to-slapd.ldif
266
+ - test/al-test-utils.rb
267
+ - test/command.rb
268
+ - test/config.yaml.sample
269
+ - test/fixtures/lower_case_object_class_schema.rb
270
+ - test/run-test.rb
271
+ - test/test_acts_as_tree.rb
272
+ - test/test_adapter.rb
273
+ - test/test_associations.rb
274
+ - test/test_attributes.rb
275
+ - test/test_base.rb
276
+ - test/test_base_per_instance.rb
277
+ - test/test_bind.rb
278
+ - test/test_callback.rb
279
+ - test/test_configuration.rb
280
+ - test/test_connection.rb
281
+ - test/test_connection_per_class.rb
282
+ - test/test_connection_per_dn.rb
283
+ - test/test_dirty.rb
284
+ - test/test_dn.rb
285
+ - test/test_find.rb
286
+ - test/test_groupadd.rb
287
+ - test/test_groupdel.rb
288
+ - test/test_groupls.rb
289
+ - test/test_groupmod.rb
290
+ - test/test_ldif.rb
291
+ - test/test_load.rb
292
+ - test/test_lpasswd.rb
293
+ - test/test_object_class.rb
294
+ - test/test_persistence.rb
295
+ - test/test_reflection.rb
296
+ - test/test_schema.rb
297
+ - test/test_syntax.rb
298
+ - test/test_user.rb
299
+ - test/test_user_password.rb
300
+ - test/test_useradd-binary.rb
301
+ - test/test_useradd.rb
302
+ - test/test_userdel.rb
303
+ - test/test_userls.rb
304
+ - test/test_usermod-binary-add-time.rb
305
+ - test/test_usermod-binary-add.rb
306
+ - test/test_usermod-binary-del.rb
307
+ - test/test_usermod-lang-add.rb
308
+ - test/test_usermod.rb
309
+ - test/test_validation.rb
310
+ homepage: http://ruby-activeldap.rubyforge.org/
311
+ licenses:
312
+ - Ruby's or GPLv2 or later
313
+ metadata: {}
314
+ post_install_message:
315
+ rdoc_options: []
316
+ require_paths:
317
+ - lib
318
+ required_ruby_version: !ruby/object:Gem::Requirement
319
+ requirements:
320
+ - - ">="
321
+ - !ruby/object:Gem::Version
322
+ version: '0'
323
+ required_rubygems_version: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: '0'
328
+ requirements: []
329
+ rubyforge_project: ruby-activeldap
330
+ rubygems_version: 2.5.1
331
+ signing_key:
332
+ specification_version: 4
333
+ summary: ActiveLdap is a object-oriented API to LDAP
334
+ test_files:
335
+ - test/add-phonetic-attribute-options-to-slapd.ldif
336
+ - test/al-test-utils.rb
337
+ - test/command.rb
338
+ - test/config.yaml.sample
339
+ - test/fixtures/lower_case_object_class_schema.rb
340
+ - test/run-test.rb
341
+ - test/test_acts_as_tree.rb
342
+ - test/test_adapter.rb
343
+ - test/test_associations.rb
344
+ - test/test_attributes.rb
345
+ - test/test_base.rb
346
+ - test/test_base_per_instance.rb
347
+ - test/test_bind.rb
348
+ - test/test_callback.rb
349
+ - test/test_configuration.rb
350
+ - test/test_connection.rb
351
+ - test/test_connection_per_class.rb
352
+ - test/test_connection_per_dn.rb
353
+ - test/test_dirty.rb
354
+ - test/test_dn.rb
355
+ - test/test_find.rb
356
+ - test/test_groupadd.rb
357
+ - test/test_groupdel.rb
358
+ - test/test_groupls.rb
359
+ - test/test_groupmod.rb
360
+ - test/test_ldif.rb
361
+ - test/test_load.rb
362
+ - test/test_lpasswd.rb
363
+ - test/test_object_class.rb
364
+ - test/test_persistence.rb
365
+ - test/test_reflection.rb
366
+ - test/test_schema.rb
367
+ - test/test_syntax.rb
368
+ - test/test_user.rb
369
+ - test/test_user_password.rb
370
+ - test/test_useradd-binary.rb
371
+ - test/test_useradd.rb
372
+ - test/test_userdel.rb
373
+ - test/test_userls.rb
374
+ - test/test_usermod-binary-add-time.rb
375
+ - test/test_usermod-binary-add.rb
376
+ - test/test_usermod-binary-del.rb
377
+ - test/test_usermod-lang-add.rb
378
+ - test/test_usermod.rb
379
+ - test/test_validation.rb