houston-devise_ldap_authenticatable 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +8 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +131 -0
  7. data/Rakefile +16 -0
  8. data/devise_ldap_authenticatable.gemspec +34 -0
  9. data/lib/devise_ldap_authenticatable.rb +50 -0
  10. data/lib/devise_ldap_authenticatable/exception.rb +6 -0
  11. data/lib/devise_ldap_authenticatable/ldap_adapter.rb +292 -0
  12. data/lib/devise_ldap_authenticatable/logger.rb +11 -0
  13. data/lib/devise_ldap_authenticatable/model.rb +95 -0
  14. data/lib/devise_ldap_authenticatable/routes.rb +8 -0
  15. data/lib/devise_ldap_authenticatable/schema.rb +14 -0
  16. data/lib/devise_ldap_authenticatable/strategy.rb +19 -0
  17. data/lib/devise_ldap_authenticatable/version.rb +3 -0
  18. data/lib/generators/devise_ldap_authenticatable/install_generator.rb +62 -0
  19. data/lib/generators/devise_ldap_authenticatable/templates/ldap.yml +51 -0
  20. data/spec/ldap/.gitignore +2 -0
  21. data/spec/ldap/base.ldif +73 -0
  22. data/spec/ldap/clear.ldif +26 -0
  23. data/spec/ldap/local.schema +6 -0
  24. data/spec/ldap/openldap-data/.gitignore +2 -0
  25. data/spec/ldap/openldap-data/run/.gitignore +2 -0
  26. data/spec/ldap/openldap-data/run/.gitkeep +0 -0
  27. data/spec/ldap/run-server +31 -0
  28. data/spec/ldap/server.pem +38 -0
  29. data/spec/ldap/slapd-test.conf.erb +107 -0
  30. data/spec/rails_app/Rakefile +7 -0
  31. data/spec/rails_app/app/controllers/application_controller.rb +7 -0
  32. data/spec/rails_app/app/controllers/posts_controller.rb +15 -0
  33. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  34. data/spec/rails_app/app/helpers/posts_helper.rb +2 -0
  35. data/spec/rails_app/app/models/post.rb +2 -0
  36. data/spec/rails_app/app/models/user.rb +10 -0
  37. data/spec/rails_app/app/views/layouts/application.html.erb +26 -0
  38. data/spec/rails_app/app/views/posts/index.html.erb +2 -0
  39. data/spec/rails_app/config.ru +4 -0
  40. data/spec/rails_app/config/application.rb +46 -0
  41. data/spec/rails_app/config/boot.rb +13 -0
  42. data/spec/rails_app/config/cucumber.yml +8 -0
  43. data/spec/rails_app/config/database.yml +25 -0
  44. data/spec/rails_app/config/environment.rb +5 -0
  45. data/spec/rails_app/config/environments/development.rb +21 -0
  46. data/spec/rails_app/config/environments/production.rb +46 -0
  47. data/spec/rails_app/config/environments/test.rb +34 -0
  48. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  49. data/spec/rails_app/config/initializers/devise.rb +242 -0
  50. data/spec/rails_app/config/initializers/inflections.rb +10 -0
  51. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  52. data/spec/rails_app/config/initializers/secret_token.rb +7 -0
  53. data/spec/rails_app/config/initializers/session_store.rb +8 -0
  54. data/spec/rails_app/config/ldap.yml +22 -0
  55. data/spec/rails_app/config/ldap_with_boolean_ssl.yml +22 -0
  56. data/spec/rails_app/config/ldap_with_erb.yml +23 -0
  57. data/spec/rails_app/config/ldap_with_uid.yml +18 -0
  58. data/spec/rails_app/config/locales/devise.en.yml +58 -0
  59. data/spec/rails_app/config/locales/en.yml +5 -0
  60. data/spec/rails_app/config/routes.rb +64 -0
  61. data/spec/rails_app/config/ssl_ldap.yml +21 -0
  62. data/spec/rails_app/config/ssl_ldap_with_erb.yml +23 -0
  63. data/spec/rails_app/config/ssl_ldap_with_uid.yml +18 -0
  64. data/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb +40 -0
  65. data/spec/rails_app/db/schema.rb +35 -0
  66. data/spec/rails_app/features/manage_logins.feature +35 -0
  67. data/spec/rails_app/features/step_definitions/login_steps.rb +21 -0
  68. data/spec/rails_app/features/step_definitions/web_steps.rb +219 -0
  69. data/spec/rails_app/features/support/env.rb +58 -0
  70. data/spec/rails_app/features/support/paths.rb +38 -0
  71. data/spec/rails_app/lib/tasks/.gitkeep +0 -0
  72. data/spec/rails_app/lib/tasks/cucumber.rake +53 -0
  73. data/spec/rails_app/public/404.html +26 -0
  74. data/spec/rails_app/public/422.html +26 -0
  75. data/spec/rails_app/public/500.html +26 -0
  76. data/spec/rails_app/public/images/rails.png +0 -0
  77. data/spec/rails_app/public/javascripts/application.js +2 -0
  78. data/spec/rails_app/public/javascripts/controls.js +965 -0
  79. data/spec/rails_app/public/javascripts/dragdrop.js +974 -0
  80. data/spec/rails_app/public/javascripts/effects.js +1123 -0
  81. data/spec/rails_app/public/javascripts/prototype.js +4874 -0
  82. data/spec/rails_app/public/javascripts/rails.js +118 -0
  83. data/spec/rails_app/public/stylesheets/.gitkeep +0 -0
  84. data/spec/rails_app/script/cucumber +10 -0
  85. data/spec/rails_app/script/rails +6 -0
  86. data/spec/spec_helper.rb +47 -0
  87. data/spec/support/factories.rb +16 -0
  88. data/spec/unit/user_spec.rb +298 -0
  89. metadata +411 -0
metadata ADDED
@@ -0,0 +1,411 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: houston-devise_ldap_authenticatable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ platform: ruby
6
+ authors:
7
+ - Curtis Schiewek
8
+ - Daniel McNevin
9
+ - Steven Xu
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2015-09-08 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: devise
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: 3.0.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: net-ldap
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '0.2'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.2'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rake
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0.9'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0.9'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rdoc
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '3'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '3'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rails
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '3.2'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '3.2'
85
+ - !ruby/object:Gem::Dependency
86
+ name: sqlite3
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ - !ruby/object:Gem::Dependency
100
+ name: factory_girl_rails
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '1.0'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '1.0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: factory_girl
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '2.0'
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '2.0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: rspec-rails
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ - !ruby/object:Gem::Dependency
142
+ name: database_cleaner
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ - !ruby/object:Gem::Dependency
156
+ name: capybara
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ - !ruby/object:Gem::Dependency
170
+ name: launchy
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ - !ruby/object:Gem::Dependency
184
+ name: autotest-rails
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ - !ruby/object:Gem::Dependency
198
+ name: ZenTest
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ type: :development
205
+ prerelease: false
206
+ version_requirements: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ - !ruby/object:Gem::Dependency
212
+ name: autotest-growl
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ description: Devise extension to allow authentication via LDAP
226
+ email: curtis.schiewek@gmail.com
227
+ executables: []
228
+ extensions: []
229
+ extra_rdoc_files: []
230
+ files:
231
+ - ".gitignore"
232
+ - CHANGELOG.md
233
+ - Gemfile
234
+ - MIT-LICENSE
235
+ - README.md
236
+ - Rakefile
237
+ - devise_ldap_authenticatable.gemspec
238
+ - lib/devise_ldap_authenticatable.rb
239
+ - lib/devise_ldap_authenticatable/exception.rb
240
+ - lib/devise_ldap_authenticatable/ldap_adapter.rb
241
+ - lib/devise_ldap_authenticatable/logger.rb
242
+ - lib/devise_ldap_authenticatable/model.rb
243
+ - lib/devise_ldap_authenticatable/routes.rb
244
+ - lib/devise_ldap_authenticatable/schema.rb
245
+ - lib/devise_ldap_authenticatable/strategy.rb
246
+ - lib/devise_ldap_authenticatable/version.rb
247
+ - lib/generators/devise_ldap_authenticatable/install_generator.rb
248
+ - lib/generators/devise_ldap_authenticatable/templates/ldap.yml
249
+ - spec/ldap/.gitignore
250
+ - spec/ldap/base.ldif
251
+ - spec/ldap/clear.ldif
252
+ - spec/ldap/local.schema
253
+ - spec/ldap/openldap-data/.gitignore
254
+ - spec/ldap/openldap-data/run/.gitignore
255
+ - spec/ldap/openldap-data/run/.gitkeep
256
+ - spec/ldap/run-server
257
+ - spec/ldap/server.pem
258
+ - spec/ldap/slapd-test.conf.erb
259
+ - spec/rails_app/Rakefile
260
+ - spec/rails_app/app/controllers/application_controller.rb
261
+ - spec/rails_app/app/controllers/posts_controller.rb
262
+ - spec/rails_app/app/helpers/application_helper.rb
263
+ - spec/rails_app/app/helpers/posts_helper.rb
264
+ - spec/rails_app/app/models/post.rb
265
+ - spec/rails_app/app/models/user.rb
266
+ - spec/rails_app/app/views/layouts/application.html.erb
267
+ - spec/rails_app/app/views/posts/index.html.erb
268
+ - spec/rails_app/config.ru
269
+ - spec/rails_app/config/application.rb
270
+ - spec/rails_app/config/boot.rb
271
+ - spec/rails_app/config/cucumber.yml
272
+ - spec/rails_app/config/database.yml
273
+ - spec/rails_app/config/environment.rb
274
+ - spec/rails_app/config/environments/development.rb
275
+ - spec/rails_app/config/environments/production.rb
276
+ - spec/rails_app/config/environments/test.rb
277
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
278
+ - spec/rails_app/config/initializers/devise.rb
279
+ - spec/rails_app/config/initializers/inflections.rb
280
+ - spec/rails_app/config/initializers/mime_types.rb
281
+ - spec/rails_app/config/initializers/secret_token.rb
282
+ - spec/rails_app/config/initializers/session_store.rb
283
+ - spec/rails_app/config/ldap.yml
284
+ - spec/rails_app/config/ldap_with_boolean_ssl.yml
285
+ - spec/rails_app/config/ldap_with_erb.yml
286
+ - spec/rails_app/config/ldap_with_uid.yml
287
+ - spec/rails_app/config/locales/devise.en.yml
288
+ - spec/rails_app/config/locales/en.yml
289
+ - spec/rails_app/config/routes.rb
290
+ - spec/rails_app/config/ssl_ldap.yml
291
+ - spec/rails_app/config/ssl_ldap_with_erb.yml
292
+ - spec/rails_app/config/ssl_ldap_with_uid.yml
293
+ - spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
294
+ - spec/rails_app/db/schema.rb
295
+ - spec/rails_app/features/manage_logins.feature
296
+ - spec/rails_app/features/step_definitions/login_steps.rb
297
+ - spec/rails_app/features/step_definitions/web_steps.rb
298
+ - spec/rails_app/features/support/env.rb
299
+ - spec/rails_app/features/support/paths.rb
300
+ - spec/rails_app/lib/tasks/.gitkeep
301
+ - spec/rails_app/lib/tasks/cucumber.rake
302
+ - spec/rails_app/public/404.html
303
+ - spec/rails_app/public/422.html
304
+ - spec/rails_app/public/500.html
305
+ - spec/rails_app/public/images/rails.png
306
+ - spec/rails_app/public/javascripts/application.js
307
+ - spec/rails_app/public/javascripts/controls.js
308
+ - spec/rails_app/public/javascripts/dragdrop.js
309
+ - spec/rails_app/public/javascripts/effects.js
310
+ - spec/rails_app/public/javascripts/prototype.js
311
+ - spec/rails_app/public/javascripts/rails.js
312
+ - spec/rails_app/public/stylesheets/.gitkeep
313
+ - spec/rails_app/script/cucumber
314
+ - spec/rails_app/script/rails
315
+ - spec/spec_helper.rb
316
+ - spec/support/factories.rb
317
+ - spec/unit/user_spec.rb
318
+ homepage: https://github.com/cschiewek/devise_ldap_authenticatable
319
+ licenses: []
320
+ metadata: {}
321
+ post_install_message:
322
+ rdoc_options: []
323
+ require_paths:
324
+ - lib
325
+ required_ruby_version: !ruby/object:Gem::Requirement
326
+ requirements:
327
+ - - ">="
328
+ - !ruby/object:Gem::Version
329
+ version: '0'
330
+ required_rubygems_version: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - ">="
333
+ - !ruby/object:Gem::Version
334
+ version: '0'
335
+ requirements: []
336
+ rubyforge_project:
337
+ rubygems_version: 2.2.2
338
+ signing_key:
339
+ specification_version: 4
340
+ summary: Devise extension to allow authentication via LDAP
341
+ test_files:
342
+ - spec/ldap/.gitignore
343
+ - spec/ldap/base.ldif
344
+ - spec/ldap/clear.ldif
345
+ - spec/ldap/local.schema
346
+ - spec/ldap/openldap-data/.gitignore
347
+ - spec/ldap/openldap-data/run/.gitignore
348
+ - spec/ldap/openldap-data/run/.gitkeep
349
+ - spec/ldap/run-server
350
+ - spec/ldap/server.pem
351
+ - spec/ldap/slapd-test.conf.erb
352
+ - spec/rails_app/Rakefile
353
+ - spec/rails_app/app/controllers/application_controller.rb
354
+ - spec/rails_app/app/controllers/posts_controller.rb
355
+ - spec/rails_app/app/helpers/application_helper.rb
356
+ - spec/rails_app/app/helpers/posts_helper.rb
357
+ - spec/rails_app/app/models/post.rb
358
+ - spec/rails_app/app/models/user.rb
359
+ - spec/rails_app/app/views/layouts/application.html.erb
360
+ - spec/rails_app/app/views/posts/index.html.erb
361
+ - spec/rails_app/config.ru
362
+ - spec/rails_app/config/application.rb
363
+ - spec/rails_app/config/boot.rb
364
+ - spec/rails_app/config/cucumber.yml
365
+ - spec/rails_app/config/database.yml
366
+ - spec/rails_app/config/environment.rb
367
+ - spec/rails_app/config/environments/development.rb
368
+ - spec/rails_app/config/environments/production.rb
369
+ - spec/rails_app/config/environments/test.rb
370
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
371
+ - spec/rails_app/config/initializers/devise.rb
372
+ - spec/rails_app/config/initializers/inflections.rb
373
+ - spec/rails_app/config/initializers/mime_types.rb
374
+ - spec/rails_app/config/initializers/secret_token.rb
375
+ - spec/rails_app/config/initializers/session_store.rb
376
+ - spec/rails_app/config/ldap.yml
377
+ - spec/rails_app/config/ldap_with_boolean_ssl.yml
378
+ - spec/rails_app/config/ldap_with_erb.yml
379
+ - spec/rails_app/config/ldap_with_uid.yml
380
+ - spec/rails_app/config/locales/devise.en.yml
381
+ - spec/rails_app/config/locales/en.yml
382
+ - spec/rails_app/config/routes.rb
383
+ - spec/rails_app/config/ssl_ldap.yml
384
+ - spec/rails_app/config/ssl_ldap_with_erb.yml
385
+ - spec/rails_app/config/ssl_ldap_with_uid.yml
386
+ - spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
387
+ - spec/rails_app/db/schema.rb
388
+ - spec/rails_app/features/manage_logins.feature
389
+ - spec/rails_app/features/step_definitions/login_steps.rb
390
+ - spec/rails_app/features/step_definitions/web_steps.rb
391
+ - spec/rails_app/features/support/env.rb
392
+ - spec/rails_app/features/support/paths.rb
393
+ - spec/rails_app/lib/tasks/.gitkeep
394
+ - spec/rails_app/lib/tasks/cucumber.rake
395
+ - spec/rails_app/public/404.html
396
+ - spec/rails_app/public/422.html
397
+ - spec/rails_app/public/500.html
398
+ - spec/rails_app/public/images/rails.png
399
+ - spec/rails_app/public/javascripts/application.js
400
+ - spec/rails_app/public/javascripts/controls.js
401
+ - spec/rails_app/public/javascripts/dragdrop.js
402
+ - spec/rails_app/public/javascripts/effects.js
403
+ - spec/rails_app/public/javascripts/prototype.js
404
+ - spec/rails_app/public/javascripts/rails.js
405
+ - spec/rails_app/public/stylesheets/.gitkeep
406
+ - spec/rails_app/script/cucumber
407
+ - spec/rails_app/script/rails
408
+ - spec/spec_helper.rb
409
+ - spec/support/factories.rb
410
+ - spec/unit/user_spec.rb
411
+ has_rdoc: