activeldap 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/CHANGES +61 -0
  2. data/README +8 -1
  3. data/Rakefile +4 -1
  4. data/benchmark/bench-al.rb +12 -2
  5. data/examples/al-admin/app/controllers/account_controller.rb +4 -3
  6. data/examples/al-admin/app/controllers/application.rb +5 -2
  7. data/examples/al-admin/app/controllers/directory_controller.rb +3 -1
  8. data/examples/al-admin/app/controllers/users_controller.rb +19 -4
  9. data/examples/al-admin/app/controllers/welcome_controller.rb +4 -2
  10. data/examples/al-admin/app/helpers/application_helper.rb +7 -1
  11. data/examples/al-admin/app/helpers/url_helper.rb +4 -0
  12. data/examples/al-admin/app/models/ldap_user.rb +4 -0
  13. data/examples/al-admin/app/views/_entry/{_attributes_information.rhtml → _attributes_information.html.erb} +0 -0
  14. data/examples/al-admin/app/views/_entry/{_entry.rhtml → _entry.html.erb} +0 -0
  15. data/examples/al-admin/app/views/_schema/{_aliases.rhtml → _aliases.html.erb} +0 -0
  16. data/examples/al-admin/app/views/_switcher/{_after.rhtml → _after.html.erb} +0 -0
  17. data/examples/al-admin/app/views/_switcher/{_before.rhtml → _before.html.erb} +0 -0
  18. data/examples/al-admin/app/views/account/{login.rhtml → login.html.erb} +0 -0
  19. data/examples/al-admin/app/views/account/{sign_up.rhtml → sign_up.html.erb} +0 -0
  20. data/examples/al-admin/app/views/attributes/{_attributes.rhtml → _attributes.html.erb} +0 -0
  21. data/examples/al-admin/app/views/attributes/{_detail.rhtml → _detail.html.erb} +0 -0
  22. data/examples/al-admin/app/views/attributes/{index.rhtml → index.html.erb} +0 -0
  23. data/examples/al-admin/app/views/attributes/{show.rhtml → show.html.erb} +0 -0
  24. data/examples/al-admin/app/views/directory/{_tree.rhtml → _tree.html.erb} +0 -0
  25. data/examples/al-admin/app/views/directory/{_tree_view_js.rhtml → _tree_view_js.html.erb} +4 -5
  26. data/examples/al-admin/app/views/directory/{index.rhtml → index.html.erb} +0 -0
  27. data/examples/al-admin/app/views/directory/{populate.rhtml → populate.html.erb} +0 -0
  28. data/examples/al-admin/app/views/layouts/{_footer.rhtml → _footer.html.erb} +0 -0
  29. data/examples/al-admin/app/views/layouts/{_header_menu.rhtml → _header_menu.html.erb} +0 -0
  30. data/examples/al-admin/app/views/layouts/{_main_menu.rhtml → _main_menu.html.erb} +0 -0
  31. data/examples/al-admin/app/views/layouts/{application.rhtml → application.html.erb} +3 -2
  32. data/examples/al-admin/app/views/object_classes/{_attributes.rhtml → _attributes.html.erb} +0 -0
  33. data/examples/al-admin/app/views/object_classes/{_object_classes.rhtml → _object_classes.html.erb} +0 -0
  34. data/examples/al-admin/app/views/object_classes/{index.rhtml → index.html.erb} +0 -0
  35. data/examples/al-admin/app/views/object_classes/{show.rhtml → show.html.erb} +0 -0
  36. data/examples/al-admin/app/views/syntaxes/{_detail.rhtml → _detail.html.erb} +0 -0
  37. data/examples/al-admin/app/views/syntaxes/{_syntaxes.rhtml → _syntaxes.html.erb} +0 -0
  38. data/examples/al-admin/app/views/syntaxes/{index.rhtml → index.html.erb} +0 -0
  39. data/examples/al-admin/app/views/syntaxes/{show.rhtml → show.html.erb} +0 -0
  40. data/examples/al-admin/app/views/users/{_attributes_update_form.rhtml → _attributes_update_form.html.erb} +0 -0
  41. data/examples/al-admin/app/views/users/{_form.rhtml → _form.html.erb} +0 -0
  42. data/examples/al-admin/app/views/users/{_object_classes_update_form.rhtml → _object_classes_update_form.html.erb} +7 -1
  43. data/examples/al-admin/app/views/users/{_password_change_form.rhtml → _password_change_form.html.erb} +0 -0
  44. data/examples/al-admin/app/views/users/{edit.rhtml → edit.html.erb} +0 -0
  45. data/examples/al-admin/app/views/users/{index.rhtml → index.html.erb} +0 -0
  46. data/examples/al-admin/app/views/users/{show.rhtml → show.html.erb} +0 -0
  47. data/examples/al-admin/app/views/welcome/{index.rhtml → index.html.erb} +0 -0
  48. data/examples/al-admin/config/boot.rb +96 -32
  49. data/examples/al-admin/config/environment.rb +30 -36
  50. data/examples/al-admin/config/environments/development.rb +2 -5
  51. data/examples/al-admin/config/environments/production.rb +1 -0
  52. data/examples/al-admin/config/environments/test.rb +4 -1
  53. data/examples/al-admin/config/initializers/exception_notifier.rb +2 -0
  54. data/examples/al-admin/config/initializers/gettext.rb +1 -0
  55. data/examples/al-admin/config/initializers/inflections.rb +10 -0
  56. data/examples/al-admin/config/initializers/mime_types.rb +5 -0
  57. data/examples/al-admin/config/initializers/ralative_url_support.rb +1 -0
  58. data/examples/al-admin/config/routes.rb +24 -12
  59. data/examples/al-admin/lib/authenticated_system.rb +1 -1
  60. data/examples/al-admin/lib/tasks/gettext.rake +1 -1
  61. data/examples/al-admin/po/en/al-admin.po +102 -100
  62. data/examples/al-admin/po/ja/al-admin.po +112 -110
  63. data/examples/al-admin/po/nl/al-admin.po +117 -110
  64. data/examples/al-admin/public/javascripts/controls.js +484 -354
  65. data/examples/al-admin/public/javascripts/dragdrop.js +88 -58
  66. data/examples/al-admin/public/javascripts/effects.js +396 -364
  67. data/examples/al-admin/public/javascripts/prototype.js +2817 -1107
  68. data/examples/al-admin/public/stylesheets/base.css +5 -0
  69. data/examples/al-admin/script/performance/request +3 -0
  70. data/lib/active_ldap.rb +13 -10
  71. data/lib/active_ldap/adapter/base.rb +159 -43
  72. data/lib/active_ldap/adapter/jndi.rb +175 -0
  73. data/lib/active_ldap/adapter/jndi_connection.rb +180 -0
  74. data/lib/active_ldap/adapter/ldap.rb +91 -46
  75. data/lib/active_ldap/adapter/ldap_ext.rb +19 -5
  76. data/lib/active_ldap/adapter/net_ldap.rb +52 -44
  77. data/lib/active_ldap/association/has_many_wrap.rb +1 -1
  78. data/lib/active_ldap/attributes.rb +20 -95
  79. data/lib/active_ldap/base.rb +195 -186
  80. data/lib/active_ldap/callbacks.rb +33 -0
  81. data/lib/active_ldap/command.rb +3 -3
  82. data/lib/active_ldap/connection.rb +21 -3
  83. data/lib/active_ldap/distinguished_name.rb +18 -11
  84. data/lib/active_ldap/entry_attribute.rb +78 -0
  85. data/lib/active_ldap/human_readable.rb +20 -0
  86. data/lib/active_ldap/ldif.rb +860 -10
  87. data/lib/active_ldap/object_class.rb +6 -4
  88. data/lib/active_ldap/operations.rb +129 -22
  89. data/lib/active_ldap/schema.rb +118 -9
  90. data/lib/active_ldap/schema/syntaxes.rb +33 -16
  91. data/lib/active_ldap/validations.rb +74 -65
  92. data/po/en/active-ldap.po +378 -768
  93. data/po/ja/active-ldap.po +935 -868
  94. data/rails/plugin/active_ldap/init.rb +40 -2
  95. data/test/al-test-utils.rb +78 -58
  96. data/test/command.rb +51 -1
  97. data/test/test-unit-ext/priority.rb +29 -6
  98. data/test/test_adapter.rb +21 -2
  99. data/test/test_attributes.rb +13 -0
  100. data/test/test_base.rb +51 -1
  101. data/test/test_connection.rb +2 -1
  102. data/test/test_connection_per_class.rb +55 -1
  103. data/test/test_connection_per_dn.rb +29 -1
  104. data/test/test_find.rb +73 -0
  105. data/test/test_ldif.rb +1829 -15
  106. data/test/test_load.rb +126 -0
  107. data/test/test_object_class.rb +23 -5
  108. data/test/test_schema.rb +28 -0
  109. data/test/test_syntax.rb +22 -11
  110. data/test/test_user.rb +16 -25
  111. data/test/test_useradd-binary.rb +1 -1
  112. data/test/test_usermod-binary-add-time.rb +1 -1
  113. data/test/test_usermod-binary-add.rb +1 -1
  114. data/test/test_validation.rb +100 -22
  115. metadata +77 -71
  116. data/data/locale/en/LC_MESSAGES/active-ldap.mo +0 -0
  117. data/data/locale/ja/LC_MESSAGES/active-ldap.mo +0 -0
  118. data/examples/al-admin/app/views/layouts/_flash_box.rhtml +0 -4
  119. data/examples/al-admin/public/stylesheets/common.css +0 -2
  120. data/examples/al-admin/script/breakpointer +0 -3
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: activeldap
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.0
7
- date: 2007-11-16 00:00:00 -08:00
6
+ version: 0.10.0
7
+ date: 2008-03-01 00:00:00 -08:00
8
8
  summary: Ruby/ActiveLdap is a object-oriented API to LDAP
9
9
  require_paths:
10
10
  - lib
@@ -40,8 +40,6 @@ files:
40
40
  - TODO
41
41
  - benchmark/bench-al.rb
42
42
  - benchmark/config.yaml.sample
43
- - data/locale/en/LC_MESSAGES/active-ldap.mo
44
- - data/locale/ja/LC_MESSAGES/active-ldap.mo
45
43
  - examples/al-admin/README
46
44
  - examples/al-admin/Rakefile
47
45
  - examples/al-admin/app/controllers/account_controller.rb
@@ -64,48 +62,52 @@ files:
64
62
  - examples/al-admin/app/models/entry.rb
65
63
  - examples/al-admin/app/models/ldap_user.rb
66
64
  - examples/al-admin/app/models/user.rb
67
- - examples/al-admin/app/views/_entry/_attributes_information.rhtml
68
- - examples/al-admin/app/views/_entry/_entry.rhtml
69
- - examples/al-admin/app/views/_schema/_aliases.rhtml
70
- - examples/al-admin/app/views/_switcher/_after.rhtml
71
- - examples/al-admin/app/views/_switcher/_before.rhtml
72
- - examples/al-admin/app/views/account/login.rhtml
73
- - examples/al-admin/app/views/account/sign_up.rhtml
74
- - examples/al-admin/app/views/attributes/_attributes.rhtml
75
- - examples/al-admin/app/views/attributes/_detail.rhtml
76
- - examples/al-admin/app/views/attributes/index.rhtml
77
- - examples/al-admin/app/views/attributes/show.rhtml
78
- - examples/al-admin/app/views/directory/_tree.rhtml
79
- - examples/al-admin/app/views/directory/_tree_view_js.rhtml
80
- - examples/al-admin/app/views/directory/index.rhtml
81
- - examples/al-admin/app/views/directory/populate.rhtml
82
- - examples/al-admin/app/views/layouts/_flash_box.rhtml
83
- - examples/al-admin/app/views/layouts/_footer.rhtml
84
- - examples/al-admin/app/views/layouts/_header_menu.rhtml
85
- - examples/al-admin/app/views/layouts/_main_menu.rhtml
86
- - examples/al-admin/app/views/layouts/application.rhtml
87
- - examples/al-admin/app/views/object_classes/_attributes.rhtml
88
- - examples/al-admin/app/views/object_classes/_object_classes.rhtml
89
- - examples/al-admin/app/views/object_classes/index.rhtml
90
- - examples/al-admin/app/views/object_classes/show.rhtml
91
- - examples/al-admin/app/views/syntaxes/_detail.rhtml
92
- - examples/al-admin/app/views/syntaxes/_syntaxes.rhtml
93
- - examples/al-admin/app/views/syntaxes/index.rhtml
94
- - examples/al-admin/app/views/syntaxes/show.rhtml
95
- - examples/al-admin/app/views/users/_attributes_update_form.rhtml
96
- - examples/al-admin/app/views/users/_form.rhtml
97
- - examples/al-admin/app/views/users/_object_classes_update_form.rhtml
98
- - examples/al-admin/app/views/users/_password_change_form.rhtml
99
- - examples/al-admin/app/views/users/edit.rhtml
100
- - examples/al-admin/app/views/users/index.rhtml
101
- - examples/al-admin/app/views/users/show.rhtml
102
- - examples/al-admin/app/views/welcome/index.rhtml
65
+ - examples/al-admin/app/views/_entry/_attributes_information.html.erb
66
+ - examples/al-admin/app/views/_entry/_entry.html.erb
67
+ - examples/al-admin/app/views/_schema/_aliases.html.erb
68
+ - examples/al-admin/app/views/_switcher/_after.html.erb
69
+ - examples/al-admin/app/views/_switcher/_before.html.erb
70
+ - examples/al-admin/app/views/account/login.html.erb
71
+ - examples/al-admin/app/views/account/sign_up.html.erb
72
+ - examples/al-admin/app/views/attributes/_attributes.html.erb
73
+ - examples/al-admin/app/views/attributes/_detail.html.erb
74
+ - examples/al-admin/app/views/attributes/index.html.erb
75
+ - examples/al-admin/app/views/attributes/show.html.erb
76
+ - examples/al-admin/app/views/directory/_tree.html.erb
77
+ - examples/al-admin/app/views/directory/_tree_view_js.html.erb
78
+ - examples/al-admin/app/views/directory/index.html.erb
79
+ - examples/al-admin/app/views/directory/populate.html.erb
80
+ - examples/al-admin/app/views/layouts/_footer.html.erb
81
+ - examples/al-admin/app/views/layouts/_header_menu.html.erb
82
+ - examples/al-admin/app/views/layouts/_main_menu.html.erb
83
+ - examples/al-admin/app/views/layouts/application.html.erb
84
+ - examples/al-admin/app/views/object_classes/_attributes.html.erb
85
+ - examples/al-admin/app/views/object_classes/_object_classes.html.erb
86
+ - examples/al-admin/app/views/object_classes/index.html.erb
87
+ - examples/al-admin/app/views/object_classes/show.html.erb
88
+ - examples/al-admin/app/views/syntaxes/_detail.html.erb
89
+ - examples/al-admin/app/views/syntaxes/_syntaxes.html.erb
90
+ - examples/al-admin/app/views/syntaxes/index.html.erb
91
+ - examples/al-admin/app/views/syntaxes/show.html.erb
92
+ - examples/al-admin/app/views/users/_attributes_update_form.html.erb
93
+ - examples/al-admin/app/views/users/_form.html.erb
94
+ - examples/al-admin/app/views/users/_object_classes_update_form.html.erb
95
+ - examples/al-admin/app/views/users/_password_change_form.html.erb
96
+ - examples/al-admin/app/views/users/edit.html.erb
97
+ - examples/al-admin/app/views/users/index.html.erb
98
+ - examples/al-admin/app/views/users/show.html.erb
99
+ - examples/al-admin/app/views/welcome/index.html.erb
103
100
  - examples/al-admin/config/boot.rb
104
101
  - examples/al-admin/config/database.yml.example
105
102
  - examples/al-admin/config/environment.rb
106
103
  - examples/al-admin/config/environments/development.rb
107
104
  - examples/al-admin/config/environments/production.rb
108
105
  - examples/al-admin/config/environments/test.rb
106
+ - examples/al-admin/config/initializers/exception_notifier.rb
107
+ - examples/al-admin/config/initializers/gettext.rb
108
+ - examples/al-admin/config/initializers/inflections.rb
109
+ - examples/al-admin/config/initializers/mime_types.rb
110
+ - examples/al-admin/config/initializers/ralative_url_support.rb
109
111
  - examples/al-admin/config/ldap.yml.example
110
112
  - examples/al-admin/config/routes.rb
111
113
  - examples/al-admin/db/migrate/001_create_users.rb
@@ -284,7 +286,6 @@ files:
284
286
  - examples/al-admin/public/stylesheets/account.css
285
287
  - examples/al-admin/public/stylesheets/attributes.css
286
288
  - examples/al-admin/public/stylesheets/base.css
287
- - examples/al-admin/public/stylesheets/common.css
288
289
  - examples/al-admin/public/stylesheets/detail.css
289
290
  - examples/al-admin/public/stylesheets/directory.css
290
291
  - examples/al-admin/public/stylesheets/object-classes.css
@@ -311,12 +312,12 @@ files:
311
312
  - examples/al-admin/public/stylesheets/users.css
312
313
  - examples/al-admin/public/stylesheets/welcome.css
313
314
  - examples/al-admin/script/about
314
- - examples/al-admin/script/breakpointer
315
315
  - examples/al-admin/script/console
316
316
  - examples/al-admin/script/destroy
317
317
  - examples/al-admin/script/generate
318
318
  - examples/al-admin/script/performance/benchmarker
319
319
  - examples/al-admin/script/performance/profiler
320
+ - examples/al-admin/script/performance/request
320
321
  - examples/al-admin/script/plugin
321
322
  - examples/al-admin/script/process/inspector
322
323
  - examples/al-admin/script/process/reaper
@@ -372,6 +373,8 @@ files:
372
373
  - lib/active_ldap.rb
373
374
  - lib/active_ldap/acts/tree.rb
374
375
  - lib/active_ldap/adapter/base.rb
376
+ - lib/active_ldap/adapter/jndi.rb
377
+ - lib/active_ldap/adapter/jndi_connection.rb
375
378
  - lib/active_ldap/adapter/ldap.rb
376
379
  - lib/active_ldap/adapter/ldap_ext.rb
377
380
  - lib/active_ldap/adapter/net_ldap.rb
@@ -392,6 +395,7 @@ files:
392
395
  - lib/active_ldap/configuration.rb
393
396
  - lib/active_ldap/connection.rb
394
397
  - lib/active_ldap/distinguished_name.rb
398
+ - lib/active_ldap/entry_attribute.rb
395
399
  - lib/active_ldap/escape.rb
396
400
  - lib/active_ldap/get_text.rb
397
401
  - lib/active_ldap/get_text/parser.rb
@@ -449,6 +453,7 @@ files:
449
453
  - test/test_groupls.rb
450
454
  - test/test_groupmod.rb
451
455
  - test/test_ldif.rb
456
+ - test/test_load.rb
452
457
  - test/test_lpasswd.rb
453
458
  - test/test_object_class.rb
454
459
  - test/test_reflection.rb
@@ -467,42 +472,43 @@ files:
467
472
  - test/test_usermod.rb
468
473
  - test/test_validation.rb
469
474
  test_files:
470
- - test/test_usermod.rb
471
- - test/test_user_password.rb
472
- - test/test_user.rb
473
- - test/test_bind.rb
474
- - test/test_groupls.rb
475
- - test/test_ldif.rb
476
- - test/test_groupmod.rb
475
+ - test/test_acts_as_tree.rb
476
+ - test/test_adapter.rb
477
+ - test/test_associations.rb
477
478
  - test/test_attributes.rb
478
- - test/test_userdel.rb
479
- - test/test_dn.rb
480
- - test/test_connection.rb
481
- - test/test_usermod-binary-add-time.rb
482
- - test/test_useradd-binary.rb
483
- - test/test_usermod-binary-del.rb
479
+ - test/test_base.rb
480
+ - test/test_base_per_instance.rb
481
+ - test/test_bind.rb
484
482
  - test/test_callback.rb
485
- - test/test_validation.rb
486
- - test/test_syntax.rb
487
483
  - test/test_configuration.rb
488
- - test/test_base.rb
489
- - test/test_object_class.rb
484
+ - test/test_connection.rb
485
+ - test/test_connection_per_class.rb
486
+ - test/test_connection_per_dn.rb
487
+ - test/test_dn.rb
488
+ - test/test_find.rb
489
+ - test/test_groupadd.rb
490
490
  - test/test_groupdel.rb
491
+ - test/test_groupls.rb
492
+ - test/test_groupmod.rb
493
+ - test/test_ldif.rb
494
+ - test/test_load.rb
495
+ - test/test_lpasswd.rb
496
+ - test/test_object_class.rb
497
+ - test/test_reflection.rb
491
498
  - test/test_schema.rb
492
- - test/test_connection_per_dn.rb
499
+ - test/test_syntax.rb
500
+ - test/test_user.rb
501
+ - test/test_user_password.rb
502
+ - test/test_useradd-binary.rb
493
503
  - test/test_useradd.rb
494
- - test/test_lpasswd.rb
495
- - test/test_usermod-lang-add.rb
496
- - test/test_groupadd.rb
497
- - test/test_base_per_instance.rb
498
- - test/test_acts_as_tree.rb
504
+ - test/test_userdel.rb
499
505
  - test/test_userls.rb
500
- - test/test_find.rb
501
- - test/test_associations.rb
502
- - test/test_connection_per_class.rb
503
- - test/test_reflection.rb
504
- - test/test_adapter.rb
506
+ - test/test_usermod-binary-add-time.rb
505
507
  - test/test_usermod-binary-add.rb
508
+ - test/test_usermod-binary-del.rb
509
+ - test/test_usermod-lang-add.rb
510
+ - test/test_usermod.rb
511
+ - test/test_validation.rb
506
512
  rdoc_options:
507
513
  - --main
508
514
  - lib/active_ldap.rb
@@ -532,5 +538,5 @@ dependencies:
532
538
  requirements:
533
539
  - - ">="
534
540
  - !ruby/object:Gem::Version
535
- version: 1.3.0
541
+ version: 1.5.0
536
542
  version:
@@ -1,4 +0,0 @@
1
-
2
- <% if flash[:notice] -%>
3
- <%= flash_box(content_tag(:p, h(flash[:notice]), :class => "notice")) %>
4
- <% end -%>
@@ -1,2 +0,0 @@
1
- @import url(base.css);
2
- @import url(structure.css);
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/breakpointer'