activeldap3 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. data/.gitignore +6 -0
  2. data/CHANGES +691 -0
  3. data/COPYING +340 -0
  4. data/LICENSE +58 -0
  5. data/README +154 -0
  6. data/Rakefile +121 -0
  7. data/TODO +32 -0
  8. data/activeldap3.gemspec +18 -0
  9. data/benchmark/bench-al.rb +263 -0
  10. data/benchmark/config.yaml.sample +5 -0
  11. data/examples/al-admin/README +182 -0
  12. data/examples/al-admin/Rakefile +16 -0
  13. data/examples/al-admin/app/controllers/account_controller.rb +60 -0
  14. data/examples/al-admin/app/controllers/application_controller.rb +46 -0
  15. data/examples/al-admin/app/controllers/attributes_controller.rb +17 -0
  16. data/examples/al-admin/app/controllers/directory_controller.rb +49 -0
  17. data/examples/al-admin/app/controllers/object_classes_controller.rb +17 -0
  18. data/examples/al-admin/app/controllers/syntaxes_controller.rb +17 -0
  19. data/examples/al-admin/app/controllers/users_controller.rb +66 -0
  20. data/examples/al-admin/app/controllers/welcome_controller.rb +12 -0
  21. data/examples/al-admin/app/helpers/account_helper.rb +2 -0
  22. data/examples/al-admin/app/helpers/application_helper.rb +46 -0
  23. data/examples/al-admin/app/helpers/attributes_helper.rb +15 -0
  24. data/examples/al-admin/app/helpers/directory_helper.rb +7 -0
  25. data/examples/al-admin/app/helpers/object_classes_helper.rb +10 -0
  26. data/examples/al-admin/app/helpers/syntaxes_helper.rb +10 -0
  27. data/examples/al-admin/app/helpers/url_helper.rb +17 -0
  28. data/examples/al-admin/app/helpers/users_helper.rb +17 -0
  29. data/examples/al-admin/app/helpers/welcome_helper.rb +2 -0
  30. data/examples/al-admin/app/models/entry.rb +23 -0
  31. data/examples/al-admin/app/models/ldap_user.rb +58 -0
  32. data/examples/al-admin/app/models/user.rb +91 -0
  33. data/examples/al-admin/app/views/_entry/_attributes_information.html.erb +29 -0
  34. data/examples/al-admin/app/views/_entry/_entry.html.erb +15 -0
  35. data/examples/al-admin/app/views/_schema/_aliases.html.erb +7 -0
  36. data/examples/al-admin/app/views/_switcher/_after.html.erb +2 -0
  37. data/examples/al-admin/app/views/_switcher/_before.html.erb +5 -0
  38. data/examples/al-admin/app/views/account/login.html.erb +26 -0
  39. data/examples/al-admin/app/views/account/sign_up.html.erb +29 -0
  40. data/examples/al-admin/app/views/attributes/_attributes.html.erb +19 -0
  41. data/examples/al-admin/app/views/attributes/_detail.html.erb +29 -0
  42. data/examples/al-admin/app/views/attributes/index.html.erb +3 -0
  43. data/examples/al-admin/app/views/attributes/show.html.erb +31 -0
  44. data/examples/al-admin/app/views/directory/_tree.html.erb +10 -0
  45. data/examples/al-admin/app/views/directory/_tree_view_js.html.erb +25 -0
  46. data/examples/al-admin/app/views/directory/index.html.erb +13 -0
  47. data/examples/al-admin/app/views/directory/populate.html.erb +2 -0
  48. data/examples/al-admin/app/views/layouts/_footer.html.erb +11 -0
  49. data/examples/al-admin/app/views/layouts/_header_menu.html.erb +10 -0
  50. data/examples/al-admin/app/views/layouts/_main_menu.html.erb +18 -0
  51. data/examples/al-admin/app/views/layouts/application.html.erb +57 -0
  52. data/examples/al-admin/app/views/object_classes/_attributes.html.erb +28 -0
  53. data/examples/al-admin/app/views/object_classes/_object_classes.html.erb +19 -0
  54. data/examples/al-admin/app/views/object_classes/index.html.erb +3 -0
  55. data/examples/al-admin/app/views/object_classes/show.html.erb +39 -0
  56. data/examples/al-admin/app/views/syntaxes/_detail.html.erb +14 -0
  57. data/examples/al-admin/app/views/syntaxes/_syntaxes.html.erb +19 -0
  58. data/examples/al-admin/app/views/syntaxes/index.html.erb +3 -0
  59. data/examples/al-admin/app/views/syntaxes/show.html.erb +22 -0
  60. data/examples/al-admin/app/views/users/_attributes_update_form.html.erb +42 -0
  61. data/examples/al-admin/app/views/users/_form.html.erb +13 -0
  62. data/examples/al-admin/app/views/users/_object_classes_update_form.html.erb +46 -0
  63. data/examples/al-admin/app/views/users/_password_change_form.html.erb +20 -0
  64. data/examples/al-admin/app/views/users/edit.html.erb +15 -0
  65. data/examples/al-admin/app/views/users/index.html.erb +10 -0
  66. data/examples/al-admin/app/views/users/show.html.erb +11 -0
  67. data/examples/al-admin/app/views/welcome/index.html.erb +13 -0
  68. data/examples/al-admin/config.ru +7 -0
  69. data/examples/al-admin/config/boot.rb +110 -0
  70. data/examples/al-admin/config/database.yml.example +19 -0
  71. data/examples/al-admin/config/environment.rb +73 -0
  72. data/examples/al-admin/config/environments/development.rb +17 -0
  73. data/examples/al-admin/config/environments/production.rb +24 -0
  74. data/examples/al-admin/config/environments/test.rb +22 -0
  75. data/examples/al-admin/config/initializers/exception_notifier.rb +2 -0
  76. data/examples/al-admin/config/initializers/fast_gettext.rb +3 -0
  77. data/examples/al-admin/config/initializers/inflections.rb +10 -0
  78. data/examples/al-admin/config/initializers/mime_types.rb +5 -0
  79. data/examples/al-admin/config/initializers/session_store.rb +23 -0
  80. data/examples/al-admin/config/ldap.yml.example +21 -0
  81. data/examples/al-admin/config/routes.rb +58 -0
  82. data/examples/al-admin/db/migrate/001_create_users.rb +16 -0
  83. data/examples/al-admin/doc/README_FOR_APP +2 -0
  84. data/examples/al-admin/lib/authenticated_system.rb +124 -0
  85. data/examples/al-admin/lib/authenticated_test_helper.rb +113 -0
  86. data/examples/al-admin/lib/ldap_test_helper.rb +38 -0
  87. data/examples/al-admin/lib/tasks/testing.rake +10 -0
  88. data/examples/al-admin/po/en/al-admin.po +343 -0
  89. data/examples/al-admin/po/ja/al-admin.po +343 -0
  90. data/examples/al-admin/po/nl/al-admin.po +380 -0
  91. data/examples/al-admin/public/.htaccess +40 -0
  92. data/examples/al-admin/public/404.html +30 -0
  93. data/examples/al-admin/public/500.html +30 -0
  94. data/examples/al-admin/public/dispatch.cgi +10 -0
  95. data/examples/al-admin/public/dispatch.fcgi +24 -0
  96. data/examples/al-admin/public/dispatch.rb +10 -0
  97. data/examples/al-admin/public/favicon.ico +0 -0
  98. data/examples/al-admin/public/images/active-ldap.svg +6351 -0
  99. data/examples/al-admin/public/images/al-admin.png +0 -0
  100. data/examples/al-admin/public/images/al-admin.svg +6371 -0
  101. data/examples/al-admin/public/images/header-background.png +0 -0
  102. data/examples/al-admin/public/images/header-background.svg +99 -0
  103. data/examples/al-admin/public/images/rails.png +0 -0
  104. data/examples/al-admin/public/images/spinelz/accordion_tab_left_active.gif +0 -0
  105. data/examples/al-admin/public/images/spinelz/accordion_tab_left_inactive.gif +0 -0
  106. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_active.gif +0 -0
  107. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_inactive.gif +0 -0
  108. data/examples/al-admin/public/images/spinelz/accordion_tab_right_active.gif +0 -0
  109. data/examples/al-admin/public/images/spinelz/accordion_tab_right_inactive.gif +0 -0
  110. data/examples/al-admin/public/images/spinelz/balloon_back.gif +0 -0
  111. data/examples/al-admin/public/images/spinelz/balloon_bottom_left.gif +0 -0
  112. data/examples/al-admin/public/images/spinelz/balloon_bottom_middle.gif +0 -0
  113. data/examples/al-admin/public/images/spinelz/balloon_bottom_right.gif +0 -0
  114. data/examples/al-admin/public/images/spinelz/balloon_left_down_arrow.gif +0 -0
  115. data/examples/al-admin/public/images/spinelz/balloon_left_up_arrow.gif +0 -0
  116. data/examples/al-admin/public/images/spinelz/balloon_middle_left.gif +0 -0
  117. data/examples/al-admin/public/images/spinelz/balloon_middle_right.gif +0 -0
  118. data/examples/al-admin/public/images/spinelz/balloon_right_down_arrow.gif +0 -0
  119. data/examples/al-admin/public/images/spinelz/balloon_right_up_arrow.gif +0 -0
  120. data/examples/al-admin/public/images/spinelz/balloon_top_left.gif +0 -0
  121. data/examples/al-admin/public/images/spinelz/balloon_top_middle.gif +0 -0
  122. data/examples/al-admin/public/images/spinelz/balloon_top_right.gif +0 -0
  123. data/examples/al-admin/public/images/spinelz/barchart_h.gif +0 -0
  124. data/examples/al-admin/public/images/spinelz/barchart_v.gif +0 -0
  125. data/examples/al-admin/public/images/spinelz/button.gif +0 -0
  126. data/examples/al-admin/public/images/spinelz/calendar_default_handler.gif +0 -0
  127. data/examples/al-admin/public/images/spinelz/calendar_delete.gif +0 -0
  128. data/examples/al-admin/public/images/spinelz/calendar_next.gif +0 -0
  129. data/examples/al-admin/public/images/spinelz/calendar_next_second.gif +0 -0
  130. data/examples/al-admin/public/images/spinelz/calendar_pre.gif +0 -0
  131. data/examples/al-admin/public/images/spinelz/calendar_pre_second.gif +0 -0
  132. data/examples/al-admin/public/images/spinelz/calendar_private_icon.gif +0 -0
  133. data/examples/al-admin/public/images/spinelz/calendar_schedule.gif +0 -0
  134. data/examples/al-admin/public/images/spinelz/calender_back.gif +0 -0
  135. data/examples/al-admin/public/images/spinelz/calender_back_second.gif +0 -0
  136. data/examples/al-admin/public/images/spinelz/datepicker2_back.gif +0 -0
  137. data/examples/al-admin/public/images/spinelz/datepicker2_back_second.gif +0 -0
  138. data/examples/al-admin/public/images/spinelz/datepicker2_next.gif +0 -0
  139. data/examples/al-admin/public/images/spinelz/datepicker2_next_second.gif +0 -0
  140. data/examples/al-admin/public/images/spinelz/datepicker2_pre.gif +0 -0
  141. data/examples/al-admin/public/images/spinelz/datepicker2_pre_second.gif +0 -0
  142. data/examples/al-admin/public/images/spinelz/datepicker_back.gif +0 -0
  143. data/examples/al-admin/public/images/spinelz/datepicker_back_second.gif +0 -0
  144. data/examples/al-admin/public/images/spinelz/datepicker_next.gif +0 -0
  145. data/examples/al-admin/public/images/spinelz/datepicker_next_second.gif +0 -0
  146. data/examples/al-admin/public/images/spinelz/datepicker_pre.gif +0 -0
  147. data/examples/al-admin/public/images/spinelz/datepicker_pre_second.gif +0 -0
  148. data/examples/al-admin/public/images/spinelz/grid_down.gif +0 -0
  149. data/examples/al-admin/public/images/spinelz/grid_state.gif +0 -0
  150. data/examples/al-admin/public/images/spinelz/grid_up.gif +0 -0
  151. data/examples/al-admin/public/images/spinelz/icon_day.gif +0 -0
  152. data/examples/al-admin/public/images/spinelz/icon_month.gif +0 -0
  153. data/examples/al-admin/public/images/spinelz/icon_week.gif +0 -0
  154. data/examples/al-admin/public/images/spinelz/menubar_back.gif +0 -0
  155. data/examples/al-admin/public/images/spinelz/menubar_subcontents_back.gif +0 -0
  156. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_active.gif +0 -0
  157. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_inactive.gif +0 -0
  158. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_active.gif +0 -0
  159. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_inactive.gif +0 -0
  160. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_active.gif +0 -0
  161. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_inactive.gif +0 -0
  162. data/examples/al-admin/public/images/spinelz/select_date.gif +0 -0
  163. data/examples/al-admin/public/images/spinelz/selectabletable_selected.gif +0 -0
  164. data/examples/al-admin/public/images/spinelz/sideBarBox_about.gif +0 -0
  165. data/examples/al-admin/public/images/spinelz/sideBarBox_menu.gif +0 -0
  166. data/examples/al-admin/public/images/spinelz/sideBarBox_sample.gif +0 -0
  167. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomActive.gif +0 -0
  168. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomInactive.gif +0 -0
  169. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive.gif +0 -0
  170. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive2.gif +0 -0
  171. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive.gif +0 -0
  172. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive2.gif +0 -0
  173. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopActive.gif +0 -0
  174. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopInactive.gif +0 -0
  175. data/examples/al-admin/public/images/spinelz/sideBarBox_tabbar.gif +0 -0
  176. data/examples/al-admin/public/images/spinelz/sortableTable_down.gif +0 -0
  177. data/examples/al-admin/public/images/spinelz/sortableTable_normal.gif +0 -0
  178. data/examples/al-admin/public/images/spinelz/sortableTable_up.gif +0 -0
  179. data/examples/al-admin/public/images/spinelz/switcher_close.gif +0 -0
  180. data/examples/al-admin/public/images/spinelz/switcher_open.gif +0 -0
  181. data/examples/al-admin/public/images/spinelz/tabBox_close.gif +0 -0
  182. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftActive.gif +0 -0
  183. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftInactive.gif +0 -0
  184. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleActive.gif +0 -0
  185. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleInactive.gif +0 -0
  186. data/examples/al-admin/public/images/spinelz/tabBox_tabRightActive.gif +0 -0
  187. data/examples/al-admin/public/images/spinelz/tabBox_tabRightInactive.gif +0 -0
  188. data/examples/al-admin/public/images/spinelz/tab_bar.gif +0 -0
  189. data/examples/al-admin/public/images/spinelz/table_back.gif +0 -0
  190. data/examples/al-admin/public/images/spinelz/timepicker_clock.gif +0 -0
  191. data/examples/al-admin/public/images/spinelz/toolbar_close.gif +0 -0
  192. data/examples/al-admin/public/images/spinelz/toolbar_left.gif +0 -0
  193. data/examples/al-admin/public/images/spinelz/toolbar_max.gif +0 -0
  194. data/examples/al-admin/public/images/spinelz/toolbar_middle.gif +0 -0
  195. data/examples/al-admin/public/images/spinelz/toolbar_min.gif +0 -0
  196. data/examples/al-admin/public/images/spinelz/toolbar_next.gif +0 -0
  197. data/examples/al-admin/public/images/spinelz/toolbar_right.gif +0 -0
  198. data/examples/al-admin/public/images/spinelz/treeview_dir.gif +0 -0
  199. data/examples/al-admin/public/images/spinelz/treeview_file.gif +0 -0
  200. data/examples/al-admin/public/images/spinelz/treeview_group.gif +0 -0
  201. data/examples/al-admin/public/images/spinelz/treeview_group_special.gif +0 -0
  202. data/examples/al-admin/public/images/spinelz/treeview_state.gif +0 -0
  203. data/examples/al-admin/public/images/spinelz/treeview_user.gif +0 -0
  204. data/examples/al-admin/public/images/spinelz/window_bottom_left.gif +0 -0
  205. data/examples/al-admin/public/images/spinelz/window_bottom_middle.gif +0 -0
  206. data/examples/al-admin/public/images/spinelz/window_bottom_right.gif +0 -0
  207. data/examples/al-admin/public/images/spinelz/window_close.gif +0 -0
  208. data/examples/al-admin/public/images/spinelz/window_max.gif +0 -0
  209. data/examples/al-admin/public/images/spinelz/window_middle_left.gif +0 -0
  210. data/examples/al-admin/public/images/spinelz/window_middle_right.gif +0 -0
  211. data/examples/al-admin/public/images/spinelz/window_min.gif +0 -0
  212. data/examples/al-admin/public/images/spinelz/window_top_left.gif +0 -0
  213. data/examples/al-admin/public/images/spinelz/window_top_middle.gif +0 -0
  214. data/examples/al-admin/public/images/spinelz/window_top_right.gif +0 -0
  215. data/examples/al-admin/public/javascripts/application.js +2 -0
  216. data/examples/al-admin/public/javascripts/controls.js +963 -0
  217. data/examples/al-admin/public/javascripts/dragdrop.js +973 -0
  218. data/examples/al-admin/public/javascripts/effects.js +1128 -0
  219. data/examples/al-admin/public/javascripts/prototype.js +4320 -0
  220. data/examples/al-admin/public/javascripts/spinelz/accordion.js +185 -0
  221. data/examples/al-admin/public/javascripts/spinelz/ajaxHistory.js +157 -0
  222. data/examples/al-admin/public/javascripts/spinelz/balloon.js +287 -0
  223. data/examples/al-admin/public/javascripts/spinelz/barchart.js +524 -0
  224. data/examples/al-admin/public/javascripts/spinelz/calendar.js +3012 -0
  225. data/examples/al-admin/public/javascripts/spinelz/colorpicker.js +128 -0
  226. data/examples/al-admin/public/javascripts/spinelz/datepicker.js +438 -0
  227. data/examples/al-admin/public/javascripts/spinelz/grid.js +1391 -0
  228. data/examples/al-admin/public/javascripts/spinelz/grid_resizeEx.js +100 -0
  229. data/examples/al-admin/public/javascripts/spinelz/grid_sortabletableEx.js +129 -0
  230. data/examples/al-admin/public/javascripts/spinelz/inplaceEditorEx.js +148 -0
  231. data/examples/al-admin/public/javascripts/spinelz/menubar.js +232 -0
  232. data/examples/al-admin/public/javascripts/spinelz/navPanel.js +170 -0
  233. data/examples/al-admin/public/javascripts/spinelz/selectableTable.js +433 -0
  234. data/examples/al-admin/public/javascripts/spinelz/sideBarBox.js +282 -0
  235. data/examples/al-admin/public/javascripts/spinelz/sideBarBox_effects.js +83 -0
  236. data/examples/al-admin/public/javascripts/spinelz/sortableTable.js +270 -0
  237. data/examples/al-admin/public/javascripts/spinelz/switcher.js +78 -0
  238. data/examples/al-admin/public/javascripts/spinelz/tabBox.js +469 -0
  239. data/examples/al-admin/public/javascripts/spinelz/timepicker.js +384 -0
  240. data/examples/al-admin/public/javascripts/spinelz/toolbar.js +152 -0
  241. data/examples/al-admin/public/javascripts/spinelz/treeview.js +703 -0
  242. data/examples/al-admin/public/javascripts/spinelz/window.js +641 -0
  243. data/examples/al-admin/public/javascripts/spinelz/window_resizeEx.js +130 -0
  244. data/examples/al-admin/public/javascripts/spinelz_lib/builder.js +131 -0
  245. data/examples/al-admin/public/javascripts/spinelz_lib/controls.js +835 -0
  246. data/examples/al-admin/public/javascripts/spinelz_lib/dragdrop.js +944 -0
  247. data/examples/al-admin/public/javascripts/spinelz_lib/effects.js +1090 -0
  248. data/examples/al-admin/public/javascripts/spinelz_lib/json.js +139 -0
  249. data/examples/al-admin/public/javascripts/spinelz_lib/prototype.js +2515 -0
  250. data/examples/al-admin/public/javascripts/spinelz_lib/resize.js +215 -0
  251. data/examples/al-admin/public/javascripts/spinelz_lib/scriptaculous.js +51 -0
  252. data/examples/al-admin/public/javascripts/spinelz_lib/slider.js +278 -0
  253. data/examples/al-admin/public/javascripts/spinelz_lib/spinelz_util.js +1266 -0
  254. data/examples/al-admin/public/javascripts/spinelz_lib/unittest.js +564 -0
  255. data/examples/al-admin/public/robots.txt +1 -0
  256. data/examples/al-admin/public/stylesheets/account.css +41 -0
  257. data/examples/al-admin/public/stylesheets/attributes.css +1 -0
  258. data/examples/al-admin/public/stylesheets/base.css +104 -0
  259. data/examples/al-admin/public/stylesheets/detail.css +36 -0
  260. data/examples/al-admin/public/stylesheets/directory.css +22 -0
  261. data/examples/al-admin/public/stylesheets/object-classes.css +6 -0
  262. data/examples/al-admin/public/stylesheets/rails.css +35 -0
  263. data/examples/al-admin/public/stylesheets/spinelz/accordion.css +59 -0
  264. data/examples/al-admin/public/stylesheets/spinelz/balloon.css +151 -0
  265. data/examples/al-admin/public/stylesheets/spinelz/calendar.css +564 -0
  266. data/examples/al-admin/public/stylesheets/spinelz/datepicker.css +175 -0
  267. data/examples/al-admin/public/stylesheets/spinelz/grid.css +137 -0
  268. data/examples/al-admin/public/stylesheets/spinelz/menubar.css +78 -0
  269. data/examples/al-admin/public/stylesheets/spinelz/modal.css +22 -0
  270. data/examples/al-admin/public/stylesheets/spinelz/navPanel.css +58 -0
  271. data/examples/al-admin/public/stylesheets/spinelz/selectableTable.css +28 -0
  272. data/examples/al-admin/public/stylesheets/spinelz/sideBarBox.css +82 -0
  273. data/examples/al-admin/public/stylesheets/spinelz/sortableTable.css +51 -0
  274. data/examples/al-admin/public/stylesheets/spinelz/switcher.css +23 -0
  275. data/examples/al-admin/public/stylesheets/spinelz/tabBox.css +94 -0
  276. data/examples/al-admin/public/stylesheets/spinelz/timepicker.css +508 -0
  277. data/examples/al-admin/public/stylesheets/spinelz/toolbar.css +82 -0
  278. data/examples/al-admin/public/stylesheets/spinelz/treeview.css +121 -0
  279. data/examples/al-admin/public/stylesheets/spinelz/window.css +140 -0
  280. data/examples/al-admin/public/stylesheets/structure.css +81 -0
  281. data/examples/al-admin/public/stylesheets/syntaxes.css +1 -0
  282. data/examples/al-admin/public/stylesheets/users.css +13 -0
  283. data/examples/al-admin/public/stylesheets/welcome.css +0 -0
  284. data/examples/al-admin/script/about +3 -0
  285. data/examples/al-admin/script/console +3 -0
  286. data/examples/al-admin/script/dbconsole +3 -0
  287. data/examples/al-admin/script/destroy +3 -0
  288. data/examples/al-admin/script/generate +3 -0
  289. data/examples/al-admin/script/performance/benchmarker +3 -0
  290. data/examples/al-admin/script/performance/profiler +3 -0
  291. data/examples/al-admin/script/performance/request +3 -0
  292. data/examples/al-admin/script/plugin +3 -0
  293. data/examples/al-admin/script/process/inspector +3 -0
  294. data/examples/al-admin/script/process/reaper +3 -0
  295. data/examples/al-admin/script/process/spawner +3 -0
  296. data/examples/al-admin/script/runner +3 -0
  297. data/examples/al-admin/script/server +3 -0
  298. data/examples/al-admin/test/fixtures/users.yml +9 -0
  299. data/examples/al-admin/test/functional/account_controller_test.rb +12 -0
  300. data/examples/al-admin/test/functional/attributes_controller_test.rb +8 -0
  301. data/examples/al-admin/test/functional/directory_controller_test.rb +8 -0
  302. data/examples/al-admin/test/functional/object_classes_controller_test.rb +8 -0
  303. data/examples/al-admin/test/functional/syntaxes_controller_test.rb +8 -0
  304. data/examples/al-admin/test/functional/users_controller_test.rb +8 -0
  305. data/examples/al-admin/test/functional/welcome_controller_test.rb +8 -0
  306. data/examples/al-admin/test/integration/sign_up_test.rb +44 -0
  307. data/examples/al-admin/test/run-test.sh +3 -0
  308. data/examples/al-admin/test/test_helper.rb +52 -0
  309. data/examples/al-admin/test/unit/user_test.rb +12 -0
  310. data/examples/al-admin/vendor/plugins/exception_notification/README +111 -0
  311. data/examples/al-admin/vendor/plugins/exception_notification/init.rb +1 -0
  312. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifiable.rb +99 -0
  313. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier.rb +66 -0
  314. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier_helper.rb +78 -0
  315. data/examples/al-admin/vendor/plugins/exception_notification/test/exception_notifier_helper_test.rb +61 -0
  316. data/examples/al-admin/vendor/plugins/exception_notification/test/test_helper.rb +7 -0
  317. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml +1 -0
  318. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml +7 -0
  319. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml +16 -0
  320. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml +4 -0
  321. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml +2 -0
  322. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml +3 -0
  323. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml +6 -0
  324. data/examples/config.yaml.example +5 -0
  325. data/examples/example.der +0 -0
  326. data/examples/example.jpg +0 -0
  327. data/examples/groupadd +41 -0
  328. data/examples/groupdel +35 -0
  329. data/examples/groupls +49 -0
  330. data/examples/groupmod +42 -0
  331. data/examples/lpasswd +55 -0
  332. data/examples/objects/group.rb +13 -0
  333. data/examples/objects/ou.rb +4 -0
  334. data/examples/objects/user.rb +20 -0
  335. data/examples/ouadd +38 -0
  336. data/examples/useradd +45 -0
  337. data/examples/useradd-binary +53 -0
  338. data/examples/userdel +34 -0
  339. data/examples/userls +50 -0
  340. data/examples/usermod +42 -0
  341. data/examples/usermod-binary-add +50 -0
  342. data/examples/usermod-binary-add-time +54 -0
  343. data/examples/usermod-binary-del +48 -0
  344. data/examples/usermod-lang-add +43 -0
  345. data/lib/active_ldap.rb +105 -0
  346. data/lib/active_ldap/action_controller/ldap_benchmarking.rb +55 -0
  347. data/lib/active_ldap/acts/tree.rb +75 -0
  348. data/lib/active_ldap/adapter/base.rb +705 -0
  349. data/lib/active_ldap/adapter/jndi.rb +184 -0
  350. data/lib/active_ldap/adapter/jndi_connection.rb +185 -0
  351. data/lib/active_ldap/adapter/ldap.rb +290 -0
  352. data/lib/active_ldap/adapter/ldap_ext.rb +105 -0
  353. data/lib/active_ldap/adapter/net_ldap.rb +309 -0
  354. data/lib/active_ldap/adapter/net_ldap_ext.rb +23 -0
  355. data/lib/active_ldap/association/belongs_to.rb +47 -0
  356. data/lib/active_ldap/association/belongs_to_many.rb +58 -0
  357. data/lib/active_ldap/association/children.rb +21 -0
  358. data/lib/active_ldap/association/collection.rb +105 -0
  359. data/lib/active_ldap/association/has_many.rb +31 -0
  360. data/lib/active_ldap/association/has_many_utils.rb +44 -0
  361. data/lib/active_ldap/association/has_many_wrap.rb +62 -0
  362. data/lib/active_ldap/association/proxy.rb +107 -0
  363. data/lib/active_ldap/associations.rb +202 -0
  364. data/lib/active_ldap/attributes.rb +184 -0
  365. data/lib/active_ldap/base.rb +1594 -0
  366. data/lib/active_ldap/callbacks.rb +52 -0
  367. data/lib/active_ldap/command.rb +49 -0
  368. data/lib/active_ldap/compatible.rb +44 -0
  369. data/lib/active_ldap/configuration.rb +147 -0
  370. data/lib/active_ldap/connection.rb +294 -0
  371. data/lib/active_ldap/distinguished_name.rb +291 -0
  372. data/lib/active_ldap/entry_attribute.rb +78 -0
  373. data/lib/active_ldap/escape.rb +12 -0
  374. data/lib/active_ldap/get_text.rb +9 -0
  375. data/lib/active_ldap/get_text/parser.rb +161 -0
  376. data/lib/active_ldap/get_text_fallback.rb +60 -0
  377. data/lib/active_ldap/get_text_support.rb +20 -0
  378. data/lib/active_ldap/helper.rb +92 -0
  379. data/lib/active_ldap/human_readable.rb +132 -0
  380. data/lib/active_ldap/ldap_error.rb +74 -0
  381. data/lib/active_ldap/ldif.rb +930 -0
  382. data/lib/active_ldap/object_class.rb +95 -0
  383. data/lib/active_ldap/operations.rb +610 -0
  384. data/lib/active_ldap/populate.rb +53 -0
  385. data/lib/active_ldap/railtie.rb +31 -0
  386. data/lib/active_ldap/schema.rb +699 -0
  387. data/lib/active_ldap/schema/syntaxes.rb +417 -0
  388. data/lib/active_ldap/timeout.rb +75 -0
  389. data/lib/active_ldap/timeout_stub.rb +17 -0
  390. data/lib/active_ldap/user_password.rb +92 -0
  391. data/lib/active_ldap/validations.rb +229 -0
  392. data/lib/active_ldap/xml.rb +122 -0
  393. data/po/en/active-ldap.po +4029 -0
  394. data/po/ja/active-ldap.po +4060 -0
  395. data/rails_generators/model_active_ldap/USAGE +17 -0
  396. data/rails_generators/model_active_ldap/model_active_ldap_generator.rb +69 -0
  397. data/rails_generators/model_active_ldap/templates/model_active_ldap.rb +3 -0
  398. data/rails_generators/model_active_ldap/templates/unit_test.rb +8 -0
  399. data/rails_generators/scaffold_active_ldap/scaffold_active_ldap_generator.rb +7 -0
  400. data/rails_generators/scaffold_active_ldap/templates/ldap.yml +18 -0
  401. data/test/al-test-utils.rb +439 -0
  402. data/test/command.rb +112 -0
  403. data/test/config.yaml.sample +6 -0
  404. data/test/fixtures/lower_case_object_class_schema.rb +802 -0
  405. data/test/run-test.rb +44 -0
  406. data/test/test_acts_as_tree.rb +60 -0
  407. data/test/test_adapter.rb +121 -0
  408. data/test/test_associations.rb +664 -0
  409. data/test/test_attributes.rb +117 -0
  410. data/test/test_base.rb +1177 -0
  411. data/test/test_base_per_instance.rb +61 -0
  412. data/test/test_bind.rb +62 -0
  413. data/test/test_callback.rb +37 -0
  414. data/test/test_configuration.rb +40 -0
  415. data/test/test_connection.rb +82 -0
  416. data/test/test_connection_per_class.rb +112 -0
  417. data/test/test_connection_per_dn.rb +112 -0
  418. data/test/test_dn.rb +172 -0
  419. data/test/test_find.rb +176 -0
  420. data/test/test_groupadd.rb +50 -0
  421. data/test/test_groupdel.rb +46 -0
  422. data/test/test_groupls.rb +107 -0
  423. data/test/test_groupmod.rb +51 -0
  424. data/test/test_ldif.rb +1891 -0
  425. data/test/test_load.rb +133 -0
  426. data/test/test_lpasswd.rb +75 -0
  427. data/test/test_object_class.rb +74 -0
  428. data/test/test_reflection.rb +182 -0
  429. data/test/test_schema.rb +559 -0
  430. data/test/test_syntax.rb +383 -0
  431. data/test/test_user.rb +217 -0
  432. data/test/test_user_password.rb +101 -0
  433. data/test/test_useradd-binary.rb +62 -0
  434. data/test/test_useradd.rb +57 -0
  435. data/test/test_userdel.rb +48 -0
  436. data/test/test_userls.rb +91 -0
  437. data/test/test_usermod-binary-add-time.rb +65 -0
  438. data/test/test_usermod-binary-add.rb +64 -0
  439. data/test/test_usermod-binary-del.rb +66 -0
  440. data/test/test_usermod-lang-add.rb +60 -0
  441. data/test/test_usermod.rb +58 -0
  442. data/test/test_validation.rb +274 -0
  443. metadata +502 -0
@@ -0,0 +1,6 @@
1
+ test/config.yaml
2
+ .project
3
+ .source_index
4
+ test/.test-result
5
+ .idea
6
+ pkg/
data/CHANGES ADDED
@@ -0,0 +1,691 @@
1
+ = CHANGES
2
+
3
+ == 1.2.2: 2010-07-04
4
+
5
+ * Supported ActiveRecord 2.3.8 and Rails 2.3.8.
6
+ * [#37] Fixed gem dependencies in Rakefile. [zachwily]
7
+ * Fixed a bug that setting 'false' but 'nil' is returned. [Hideyuki Yasuda]
8
+ * Supported non-String attribute value as LDIF value. [Matt Mencel]
9
+ * Worked with a LDAP server that uses 'objectclass' not 'objectClass' as
10
+ objectClass attribute name. [Tim Hermans]
11
+ * [#41] Provide SASL-option support, primarily for authzid
12
+ [Anthony M. Martinez]
13
+ * [#43] Error with to_xml [ilusi0n.x]
14
+ * [#44] Accept '0' and '1' as boolean value [projekttabla]
15
+ * [#27429] Fixed inverted validatation by validate_excluded_classes
16
+ [Marc Dequènes]
17
+ * Supported DN attribute value for assosiation replacement.
18
+ [Jörg Herzinger]
19
+
20
+ == 1.2.1: 2009-12-15
21
+
22
+ * Supported ActiveRecord 2.3.5 and Rails 2.3.5.
23
+ * Supported GetText 2.1.0 and Locale 2.0.5.
24
+ * belongs_to(:many) support DN attribute.
25
+ * [#31] ActiveLdap::Base#attributes returns data that reflects
26
+ schema definition. [Alexey.Chebotar]
27
+ * blocks DN attribute change by mass assignment with :id => ....
28
+ * [#35] fix has_many association is broken. [culturespy]
29
+ * Supported nested attribute options. [Hideyuki Yasuda]
30
+
31
+ == 1.2.0: 2009-09-22
32
+
33
+ * Supported ActiveRecord 2.3.4 and Rails 2.3.4.
34
+ * [IMCOMPATIBLE]
35
+ [#23932] Inconsistant DN handling in object attributes [Marc Dequènes]
36
+ (ActiveLdap::Base#dn and ActiveLdap::Base#base return
37
+ ActiveLdap::DN not String)
38
+ * [#26824] support operational attributes detection [Marc Dequènes]
39
+ (added ActiveLdap::Schema::Attribute#directory_operation?)
40
+ * [#27] Error saving an ActiveLDAP user [brad@lucky-dip.net]
41
+ * [#29] Raised on modify_rdn_entry when rdn already exists [Alexey.Chebotar]
42
+ * Added ActiveLdap::DN.parent.
43
+ * Supported renaming an entry. Renaming other DTI is only supported by
44
+ JNDI backend.
45
+
46
+ == 1.1.0: 2009-07-18
47
+
48
+ * Improved tutorial. [Kazuaki Takase]
49
+ * Improvements:
50
+ * API:
51
+ * [#26] Supported to_xml for associations. [achemze]
52
+ * ActiveLdap::Base.delete_all(filter=nil, options={}) ->
53
+ ActiveLdap::Base.delete_all(filter_or_options={}).
54
+ Sure, old method signature is also still supported.
55
+ * belongs_to(:many) with :foreign_key is deprecated.
56
+ Use :primary_key instead of :foreign_key. [Kazuaki Takase]
57
+ * Means of has_many's :primary_key and :foreign_key are inverted.
58
+ [Kazuaki Takase]
59
+ * [experimental] Added ldap_field ActionView helper to
60
+ generate form fileds for a LDAP entry.
61
+ * Suppressed needless attributes updating.
62
+ * Dependencies:
63
+ * Re-supported GetText.
64
+ * ActiveRecord 2.3.2 is only supported.
65
+
66
+ == 1.0.9
67
+
68
+ * Added documents in Japanese. [Kazuaki Takase]
69
+ * Supported Ruby 1.9.1.
70
+ * [#20] [Ruby 1.9 Support] :: Running Tests [Alexey.Chebotar]
71
+ * Supported Rails 2.3.2.
72
+ * [#18] [Rails 2.3 Support] :: Running WEBrick Hangs [Alexey.Chebotar]
73
+ * Bug fixes:
74
+ * Fixed blank values detection. [David Morton]
75
+ * [#22] Ruby 1.8.6 p287 :: Undefined methods [Alexey.Chebotar]
76
+ * Fixed gem loading. [Tiago Fernandes]
77
+ * Fixed DN change via #base=. [David Morton]
78
+ * Fixed infinite retry on timeout.
79
+ * Fixed needless reconnection.
80
+ * API improvements:
81
+ * Removed needless instance methods: #prefix=,
82
+ #dn_attribute=, #sort_by=, #order=, #required_classes=,
83
+ #recommended_classes= and #excluded_classes. [David Morton]
84
+ * Removed obsolete scafoold_al generator.
85
+ * Reduced default :retry_limit.
86
+ * Supported association as parameter. [Joe Francis]
87
+ * Normalized schema attribute name. [Tim Hermans]
88
+ * Suppressed AuthenticationError -> ConnectionError
89
+ conversion on reconnection. [Kazuaki Takase]
90
+ * Added ActiveLdap::Schema#dump.
91
+ * ActiveLdap::Base.establish_connection ->
92
+ ActiveLdap::Base.setup_connection.
93
+ * Supported ActiveLdap::Base.find(:last).
94
+ * Added convenient methods:
95
+ * ActiveLdap::Base.first
96
+ * ActiveLdap::Base.last
97
+ * ActiveLdap::Base.all
98
+
99
+ == 1.0.2
100
+
101
+ * Removed Base64 module use.
102
+ * Improved LDIF parser.
103
+ * Improved scheme parser.
104
+ * Supported Base64 in XML serialization.
105
+ * Supported TLS options.
106
+ * Supported ActiveRecord 2.2.2.
107
+ * Supported Ruby on Rails 2.2.2.
108
+ * Used rails/init.rb and rails_generators/ directory structure convention
109
+ for Rails and gem. rails/ directory will be removed after 1.0.2 is released.
110
+ * AL-Admin migrated to Ruby on Rails 2.2.2 form 2.0.2.
111
+ * Improved ActiveDirectory integration.
112
+ * Accepted :class_name for belong_to and has_many option.
113
+ * Improved default port guess.
114
+ * Bug fixes:
115
+ * [#4] ModifyRecord#load doesn't operate atomic. [gwarf12]
116
+ * [#5] to_xml supports :except option. [baptiste.grenier]
117
+ * [#6] to_xml uses ActiveResource format. [baptiste.grenier]
118
+ * Out of ranged GeneralizedTime uses Time.at(0) as fallback value.
119
+ [Richard Nicholas]
120
+ * ActiveLdap::Base#to_s uses #to_ldif. [Kazuhiro NISHIYAMA]
121
+ * Fixed excess prefix extraction. [Grzegorz Marszałek]
122
+ * Skiped read only attribute validation. [しまさわらさん]
123
+ * Treated "" as empty value. [Ted Lepich]
124
+ * [#9][#16] Reduced raising when DN value is invalid.
125
+ [danger1986][Alexey.Chebotar]
126
+ * [#10][#12] Fixed needless ',' is appeared. [michael.j.konopka]
127
+ * [#11] Required missing 'active_ldap/user_password'. [michael.j.konopka]
128
+ * [#13] Returned entries if has_many :wrap has nonexistent entry.
129
+ [ingersoll]
130
+ * [#15] Fixed type error on computing DN. [ery.lee]
131
+ * ">=" filter operator doesn't work. [id:dicdak]
132
+ * [#17] ActiveLdap::Base.create doesn't raise exception. [Alexey.Chebotar]
133
+
134
+ == 1.0.1
135
+
136
+ * Fixed GetText integration.
137
+ * Fixed ActiveLdap::Base.find with ActiveLdap::DN. (Reported by Jeremy Pruitt)
138
+ * Fixed associated bugs. (Reported by CultureSpy)
139
+ * Supported ActiveLdap::Base#attribute_present? with nonexistence attribute.
140
+ (Reported by Matt Mencel)
141
+ * Added ActiveLdap::Base#.to_ldif_record.
142
+ * Improved inspect.
143
+ * Supported ActiveSupport 2.1.0.
144
+
145
+ == 1.0.0
146
+
147
+ * Fixed GSSAPI auth failure. [#18764] (Reported by Lennon Day-Reynolds)
148
+ * Supported Symbol as :dn_attribute_value. [#18921] (Requested by Nobody)
149
+ * Improved DN attribute detection. (Reported by Iain Pople)
150
+ * Avoided unnecesally modify operation. (Reported by Tilo)
151
+
152
+ == 0.10.0
153
+
154
+ * Implemented LDIF parser.
155
+ * Improved validation:
156
+ * Added some validations.
157
+ * Fixed SINGLE-VALUE validation. [#17763]
158
+ (Reported by Naoto Morishima)
159
+ * Supported JNDI as backend.
160
+ * Improved auto reconnection.
161
+ * Supported Rails 2.0.2.
162
+ * Improved performance. (4x)
163
+ * [API CHANGE]: removed "'binary' =>" from getter result.
164
+
165
+ e.g.:
166
+ before:
167
+ user.user_certificate # => {"binary" => "..."}
168
+ now:
169
+ user.user_certificate # => "..."
170
+ * Added :excluded_classed ldap_mapping option.
171
+ * Logged operation time used for LDAP operation.
172
+ * Improved API:
173
+ * Accepted non String value for find(:value => XXX).
174
+ (Suggested by Marc Dequèn)
175
+ * Accepted DN as ActiveLdap::Base.new(XXX).
176
+ (Reported by Jeremy Pruitt)
177
+ * Treated empty password for smiple bind as anonymous bind.
178
+ (Suggested by Bodaniel Jeans)
179
+ * Ensured adding "objectClass" for find's :attribute value. [#16946]
180
+ (Suggested by Nobody)
181
+ * Fixed a GeneralizedTime type casting bug.
182
+ (Reported by Bodaniel Jeanes)
183
+ * Supported :base and :prefix search/find option value escaping.
184
+ (Suggested by David Morton)
185
+
186
+ == 0.9.0
187
+
188
+ * Improved DN handling.
189
+ * Supported attribute value validation by LDAP schema.
190
+ * Changed RubyGems name: ruby-activeldap -> activeldap.
191
+ * Removed Log4r dependency.
192
+ * Supported lazy connection establishing.
193
+ * [API CHANGE]: establish_connection doesn't connect LDAP server.
194
+ * [API CHANGE]: Removed ActiveLdap::Base#establish_connection.
195
+ * Added ActiveLdap::Base#bind. (use this instead of #establish_connection)
196
+ * Supported implicit acts_as_tree.
197
+ * [API CHANGE]: Supported type casting.
198
+ * Supported :uri option in configuration.
199
+ * Improved Rails integration:
200
+ * Followed Rails 2.0 changes.
201
+ * AL-Admin:
202
+ * Supported lang parameter in URL.
203
+ * Improved design a bit. (Please someone help us!)
204
+ * Supported schema inspection.
205
+ * Supported objectClass modifiation.
206
+ * Rails plugin:
207
+ * Added ActiveLdap::VERSION check.
208
+ * Added model_active_ldap generator.
209
+ * Renamed scaffold_al generator to scaffold_active_ldap.
210
+
211
+ == 0.8.3
212
+
213
+ * Added AL-Admin Sample Rails app
214
+ * Added Ruby-GetText-Package support
215
+ * Added a Rails plugin
216
+ * Improved schema handling
217
+ * Improved performance
218
+ * Many bug fixes
219
+
220
+ == 0.8.2
221
+
222
+ * Added Net::LDAP support!
223
+ * supported SASL Digest-MD5 authentication with Net::LDAP.
224
+ * improved LDAP server support:
225
+ * improved Sun DS support.
226
+ * improved ActiveDirectory support. Thanks to Ernie Miller!
227
+ * improved Fedora-DS support. Thanks to Daniel Pfile!
228
+ * improved existing functions:
229
+ * improved DN handling. Thanks to James Hughes!
230
+ * improved SASL bind.
231
+ * improved old API check.
232
+ * improved schema handling. Thanks to Christoph Lipp!
233
+ * improved filter notification.
234
+ * updated documents:
235
+ * updated Rails realted documenation. Thanks to James Hughes!
236
+ * updated documentation for the changes between 0.7.1 and 0.8.0.
237
+ Thanks to Buzz Chopra!
238
+ * added new features:
239
+ * added scaffold_al generator for Rails.
240
+ * added required_classes to default filter value. Thanks to Jeff Hall!
241
+ * added :recommended_classes option to ldap_mapping.
242
+ * added :sort_by and :order options to find.
243
+ * added ActiveLdap::Base#to_param for ActionController.
244
+ * fixed some bugs:
245
+ * fixed rake install/uninstall.
246
+ * fixed typos. Thanks to Nobody!
247
+ * fixed required_classes initialization. Thanks to James Hughes!
248
+
249
+ == 0.8.1
250
+
251
+ * used Dependencies.load_paths.
252
+ * check whether attribute name is available or not.
253
+ * added test for find(:first, :attribute => 'xxx', :value => 'yyy').
254
+ * supported ActiveSupport 1.4.0.
255
+ * make the dual licensing of ruby-activeldap clear in the README.
256
+ * followed edge Rails: don't use Reloadable::Subclasses if doesn't need.
257
+ * added examples/.
258
+ * removed debug code.
259
+ * normalized attribute name to support wrong attribute names in MUST/MAY.
260
+ * supported getting dn value by Base#[].
261
+ * test/test_userls.rb: followed userls changes.
262
+ * update the doc href.
263
+ * provide a dumb example of how to use the old association(return_objects) style API with the new awesome API.
264
+ * followed new API.
265
+ * removed a finished task: support Reloadable::Subclasses.
266
+
267
+ == 0.8.0
268
+
269
+ * Makefile/gemspec system replaced with Rakefile + Hoe
270
+ * Bugfix: Allow base to be empty
271
+ * Add support for Date, DateTime, and Time objects (patch from Patrick Cole)
272
+ * Add support for a :filter argument to override the default attr=val LDAP search filter in find_all() and find() (patch from Patrick Cole)
273
+ * Add Base#update_attributes(hash) method which does bulk updates to attributes (patch from Patrick Cole) and saves immediately
274
+ * API CHANGE: #attributes now returns a Hash of attribute_name => clone(attribute_val)
275
+ * API CHANGE: #attribute_names now returns an alphabetically sorted list of attribute names
276
+ * API CHANGE;
277
+ * Added attributes=() as the implementation for update_attributes(hash) (without autosave)
278
+ * API TRANSITION: Base#write is now deprecated. Please use Base#save
279
+ * API TRANSITION: Added SaveError exception (which is a subclass of WriteError for now)
280
+ * API TRANSITION: Base.connect() is now deprecated. Please use Base.establish_connection()
281
+ * API TRANSITION: Base.close() is now deprecated. Please use Base.remove_connection()
282
+ * API TRANSITION: :bind_format and :user of Base.establish_connection() are now deprecated. Please use :bind_dn
283
+ * Added update_attribute(name, value) to update one attribute and save immediately
284
+ * #delete -> #destroy
285
+ * Base.destroy_all
286
+ * Base.delete(id) & Base.delete_all(filter)
287
+ * add Base.exists?(dnattr_val)
288
+ * attr_protected
289
+ * Base.update(dnattr_val, attributes_hash) - instantiate, update, save, return
290
+ * Base.update_all(updates_hash, filter)
291
+ * attribute_present?(attribute) - if not empty/nil
292
+ * has_attribute?(attr_name) - if in hash
293
+ * reload() (refetch from LDAP)
294
+ * make save() return false on fail
295
+ * make save!() raise EntryNotSaved exception
296
+ * to_xml()
297
+ * clear_active_connections!() -- Conn per class
298
+ - make @@active_connections and name them by
299
+ * base_class() (just return the ancestor)
300
+ * Separate ObjectClass changes to live in ActiveLDAP::ObjectClass
301
+ - add_objectclass
302
+ - remove_objectclass
303
+ - replace_objectclass
304
+ - disallow direct objectclass access?
305
+ * support ActiveRecord::Validations.
306
+ * support ActiveRecord::Callbacks.
307
+ * rename to ActiveLdap from ActiveLDAP to integrate RoR easily and enforce
308
+ many API changes.
309
+
310
+ == 0.7.4
311
+
312
+ * Bugfix: do not base LDAP::PrettyError on RuntimeError due to rescue evaluation.
313
+ * Bugfix: :return_objects was overriding :objects in find and find_all
314
+ * Rollup exception code into smaller space reusing similar code.
315
+
316
+ == 0.7.3
317
+
318
+ * Made has_many and belongs_to use :return_objects value
319
+ * Force generation of LDAP constants on import - currently broken
320
+
321
+ == 0.7.2
322
+
323
+ * Stopped overriding Conn.schema in ldap/schema - now use schema2
324
+ * Fix attributes being deleted when changing between objectclasses with shared attributes
325
+ * Added schema attribute case insensitivity
326
+ * Added case insensitivity to the attribute methods.
327
+ * Added LDAP scope override support to ldap_mapping via :scope argument. (ldap_mapping :scope => LDAP::LDAP_SCOPE_SUBTREE, ...)
328
+ * Fixed the bug where Klass.find() return nil (default arg for find/find_all now '*')
329
+ * Added :return_objects to Base.connect()/configuration.rb -- When true, sets the default behavior in Base.find/find_all to return objects instead of just the dnattr string.
330
+ * Hid away several exposed private class methods (do_bind, etc)
331
+ * Undefined dnattr for a class now raises a ConfigurationError
332
+ * Centralized all connection management code where possible
333
+ * Added Base.can_reconnect? which returns true if never connected or below the :retries limit
334
+ * Added block support to Base.connection to ensure "safe" connection usage. This is not just for internal library use. If you need to do something fancy with the connection object, use Base.connection do |conn| ...
335
+ * Fixed object instantiation in Base#initialize when using full DNs
336
+ * Added :parent_class option to ldap_mapping which allows for object.parent() to return an instantiated object using the parent DN. (ldap_mapping :parent_class => String, ...)
337
+ * Fixed reconnect bug in Base#initialize (didn't respect infinite retries)
338
+ * Added(*) :timeout argument to allow timeouts on hanging LDAP connections
339
+ * Added(*) :retry_on_timeout boolean option to allow disabling retries on timeouts
340
+ * Added TimeoutError
341
+ * Added(*) a forking timeout using SIGALRM to interrupt handling.
342
+ * (*) Only works when RUBY_PLATFORM has "linux" in it
343
+
344
+ == 0.7.1
345
+
346
+ * Fix broken -W0 arg in activeldap.rb
347
+ * attribute_method=: '' and nil converted to ldap-pleasing [] values
348
+ * Added checks in write and search for connection down (to reconnect)
349
+ * Fixed broken idea of LDAP::err2string exceptions. Instead took errcodes from ldap.c in Ruby/LDAP.
350
+
351
+ == 0.7.0
352
+
353
+ * ConnectionError thrown from #initialize when there is no connection and retry limit was exceeded
354
+ * ConnectionError thrown when retries exceeded when no connection was created
355
+ * Separated connection types: SSL, TLS, and plain using :method
356
+ * Localized reconnect logic into Base.reconnect(force=false)
357
+ * Fixed password_block evaluation bug in do_bind() which broke SIMPLE re-binds and broke reconnect
358
+ * Add support for config[:sasl_quiet] in Base.connect
359
+ * (Delayed a case sensitivity patch for object classes and attributes due to weird errors)
360
+ * Add :retry_wait to Base.connect to determine the timeout before retrying a connection
361
+ * Fixed ActiveLDAP::Base.create_object() - classes were enclosed in quotes
362
+ * Added :ldap_scope Base.connect() argument to allow risk-seeking users to change the LDAP scope to something other than ONELEVEL.
363
+ * Cleaned up Configuration.rb to supply all default values for ActiveLDAP::Base.connect() and to use a constant instead of overriding class variables for no good reason.
364
+ * Added scrubbing for :base argument into Base.connect() to make sure a ' doesn't get evaluated.
365
+ * Refactored Base.connect(). It is now much cleaner and easier to follow.
366
+ * Moved schema retrieval to after bind in case a server requires privileges to access it.
367
+ * Reworked the bind process to be a little prettier. A lot of work to do here still.
368
+ * Added LDAP::err2exception(errno) which is the groundwork of a coming overhaul in user friendly error handling.
369
+ * Added support for Base::connect(.., :password => String, ...) to avoid stupid Proc.new {'foo'} crap
370
+ * Add :store_password option. When this is set, :password is not cleared and :password_block is not re-evaluated on each rebind.
371
+
372
+ == 0.6.0
373
+
374
+ * Disallow blank DN attribute values on initialization
375
+ * Fix bug reported by Maik Schmidt regarding object creation
376
+ * Added error checking to disallow DN attribute value changes
377
+ * Added AttributeAssignmentError (for above)
378
+ * Import() and initialize() no longer call attribute_method=()
379
+ * Added error condition if connection fails inside initialize()
380
+ * Changes examples and tests to use "dc=localdomain"
381
+ * has_many() entries no longer return nil when empty
382
+
383
+ == 0.5.9
384
+
385
+ * Change default base to dc=localdomain (as per Debian default).
386
+ * schema2.rb:attr() now returns [] instead of '' when empty.
387
+ * Lookup of new objects does not put dnattr()=value into the Base on lookup.
388
+ * Scope is now use ONELEVEL instead of SUBTREE as it broke object boundaries.
389
+ * Fixed @max_retries misuse.
390
+ * Added do_connect retries.
391
+ * Fixed find and find_all for the case - find_all('*').
392
+ * Fixed broken creation of objects from anonymous classes.
393
+ * Fixed broken use of ldap_mapping with anonymous classes.
394
+
395
+ == 0.5.8: Bugfix galore
396
+
397
+ * Allow nil "prefix"
398
+ * Fixed the dup bug with Anonymous patch.
399
+ * (maybe) Fixed stale connection problems by attempting reconn/bind.
400
+ * Hiding redefine warnings (for now)
401
+
402
+ == 0.5.7
403
+
404
+ * Fixed the @data.default = [] bug that daniel@nightrunner.com pointed out
405
+ (and partially patched).
406
+
407
+ == 0.5.6
408
+
409
+ * Added support for foreign_key => 'dn' in has_many.
410
+
411
+ == 0.5.5
412
+
413
+ * Remove @@logger.debug entries during build
414
+ * Building -debug and regular gems and tarballs
415
+
416
+ == 0.5.4
417
+
418
+ * Added Base#import to streamline the Base.find and Base.find_all methods
419
+ - Speeds up find and find_all by not accessing LDAP multiple times
420
+ for data we already have.
421
+ * Added tests/benchmark which is a slightly modified version of excellent
422
+ benchmarking code contributed by
423
+ Ollivier Robert <roberto -_-AT-_- keltia.freenix.fr>.
424
+
425
+ == 0.5.3
426
+
427
+ * Changed attribute_method to send in associations
428
+ - fixes belongs_to (with local_kay) and inheritance around that
429
+
430
+ == 0.5.2
431
+
432
+ * Make sure values are .dup'd when they come from LDAP
433
+
434
+ == 0.5.1
435
+
436
+ * Changed Schema2#class_attributes to return {:must => [], :may => []}
437
+ * Fixed Base#must and Base#may to return with full SUPerclass requirements
438
+
439
+ == 0.5.0
440
+
441
+ * API CHANGE (as with all 0.x.0 changes) (towards ActiveRecord duck typing)
442
+ - Base#ldapattribute now always returns an array
443
+ - Base#ldapattribute(true) now returns a dup of an array, string, etc
444
+ when appropriate (old default) - This is just for convenience
445
+ - Base#ldapattribute returns the stored value, not just a .dup
446
+ - Associations methods return objects by default instead of just names.
447
+ Group.new('foo').members(false) will return names only.
448
+ - Base.connect returns true as one might expect
449
+ * Value validation and changing (binary, etc) occur prior to write, and
450
+ not immediately on attribute_method=(value).
451
+ * Attribute method validity is now determined /on-the-fly/.
452
+ * Default log level set to OFF speeds up 'speedtest' by 3 seconds!
453
+ (counters last point which added some slowness :)
454
+ * Added Schema2#class_attributes which caches and fully supertype expands
455
+ attribute lists.
456
+ * Integrated Schema2#class_attributes with apply_objectclass which automagically
457
+ does SUP traversal and automagically updates available methods on calls to
458
+ #attributes, #method_missing, #validate, and #write
459
+ * Added 'attributes' to 'methods' allowing for irb autocompletion and other
460
+ normal rubyisms
461
+ * Moved almost all validation to Base#validate to avoid unexpected exceptions
462
+ being raised in seemingly unrelated method calls. This means that invalid
463
+ objectClasses may be specified. This will only be caught on #write or
464
+ a pre-emptive #validate. This goes for all attribute errors though.
465
+ This also makes it possible to "break" objects by removing the 'top'
466
+ objectclass and therefore the #objectClass method...
467
+
468
+ == 0.4.4
469
+
470
+ * Fixed binary subtype forcing:
471
+ - was setting data as subtype ;binary even when not required
472
+ * Added first set of unit tests.
473
+ - These will be cleaned up in later releases as more tests are added.
474
+ * Fixed subtype clobber non-subtype (unittest!)
475
+ - cn and cn;lang-blah: the last loaded won
476
+ * Fixed multivalued subtypes from being shoved into a string (unittest!)
477
+ - an error with attribute_input_value
478
+
479
+ == 0.4.3
480
+
481
+ * Fixed write (add) bugs introduced with last change
482
+ - only bug fixes until unittests are in place
483
+
484
+ == 0.4.2
485
+
486
+ * Added ruby-activeldap.gemspec
487
+ * Integrated building a gem of 'ruby-activeldap' into Makefile.package
488
+ * Added attr parsing cache to speed up repetitive calls: approx 13x speedup
489
+ - 100 usermod-binary-add calls
490
+
491
+ Without attr parsing cache:
492
+ real 13m53.129s
493
+ user 13m11.350s
494
+ sys 0m7.030s
495
+ With attr parsing cache:
496
+ real 1m0.416s
497
+ user 0m28.390s
498
+ sys 0m2.380s
499
+
500
+ == 0.4.1:
501
+
502
+ * Schema2 was not correctly parsing objectClass entries.
503
+ - This is fixed for now but must be revisited.
504
+
505
+ == 0.4.0
506
+
507
+ * Added #<attribute>(arrays) argument which when true
508
+ always returns arrays. e.g.
509
+ irb> user.cn(true)
510
+ => ['My Common Name']
511
+ This makes things easier for larger programming tasks.
512
+ * Added subtype support:
513
+ - Uses Hash objects to specify the subtype
514
+ e.g. user.userCertificate = {'binary' => File.read('mycert.der')}
515
+ - Added recursive type enforcement along with the subtype handling
516
+ - This required overhauling the #write method.
517
+ - Please report any problems ASAP! :^)
518
+ * Added automagic binary support
519
+ - subtype wrapping done automatically
520
+ - relies on X-NOT-HUMAN-READABLE flag
521
+ * Added LDAP::Schema2 which is an extension of Ruby/LDAP::Schema
522
+ - made Schema#attr generic for easy type dereferencing
523
+ * Updated rdoc in activeldap.rb
524
+ * Updated examples (poorly) to reflect new functionality
525
+ * Added several private helper functions
526
+
527
+ == 0.3.6
528
+
529
+ * Fixed dn attribute value extraction on find and find_all
530
+ - these may have grabbed the wrong value if a DN attr has
531
+ multiple values.
532
+ * Fixed Base.search to return all values as arrays and update
533
+ multivalued ones correctly
534
+ * Lowered the amount of default logging to FATAL only
535
+
536
+ == 0.3.5
537
+
538
+ * Moved to rubyforge.org!
539
+
540
+ == 0.3.4
541
+
542
+ * Changed license to Ruby's
543
+
544
+ == 0.3.3
545
+
546
+ * Changed Base.search to return an array instead of a hash of hashes
547
+ * Change Base.search to take in a hash as its arguments
548
+
549
+ == 0.3.2
550
+
551
+ * Bug fix - fixed support for module'd extension classes (again!)
552
+
553
+ == 0.3.1
554
+
555
+ * Updated the documentation
556
+ * Fixed ignoring of attrs argument in Base.search
557
+ * Fixed mistake in groupls (using dnattr directly)
558
+ * Fixed a mistake with overzealous dup'ing
559
+
560
+ == 0.3.0
561
+
562
+ * MORE API CHANGES (configuration.rb, etc)
563
+ * Major overhaul to the internals!
564
+ - removed @@BLAH[@klass] in lieu of defining
565
+ class methods which contain the required values. This
566
+ allows for clean inheritance of Base subclasses! Whew!
567
+ - Added @@config to store the options currently in use
568
+ after a Base.connect
569
+ - Now cache passwords for doing reconnects
570
+ - dnattr now accessible to the outside as a class method only
571
+ * Added Base.search to wrap normal LDAP search for convenience.
572
+ - This returns a hash of hashes with the results indexed first by
573
+ full dn, then by attribute.
574
+
575
+ == 0.2.0
576
+
577
+ * API CHANGES:
578
+ - Extension classes must be defined using map_to_ldap instead of setting
579
+ random values in initialize
580
+ - Base#find is now Base.find_all and is a class method
581
+ - Base.find returns the first match a la Array#find
582
+ - force_reload is gone in belongs_to and has_many created methods
583
+ - hiding Base.new, Base.find, and Base.find_all from direct access
584
+ * added uniq to setting objectClass to avoid stupid errors
585
+ * fixed new object creation bug where attributes were added before the
586
+ objectclass resulting in a violation (Base#write)
587
+ * fixed attribute dereferencing in Base#write
588
+ * fixed bug with .dup on Fixnums
589
+ * methods created by has_many/belongs_to and find and find_all now take an
590
+ optional argument dnattr_only which will return the value of dnattr for
591
+ each result instead of a full object.
592
+ * Base.connection=(conn) added for multiplexing connections
593
+ * Added a manual to activeldap.rb which covers most usage of Ruby/ActiveLDAP
594
+ * Base.connect(:try_sasl => true) should now work with GSSAPI if you are
595
+ using OpenLDAP >= 2.1.29
596
+
597
+ == 0.1.8
598
+
599
+ * .dup all returned attribute values to avoid weirdness
600
+ * .dup all assigned values to avoid weirdness
601
+ * Changed default configuration.rb to use example.com
602
+
603
+ == 0.1.7
604
+
605
+ * Added support for non-unique DN attributes
606
+ * Added authoritative DN retrieval with 'object.dn'
607
+
608
+ == 0.1.6
609
+
610
+ * Added Base.close method for clearing the existing connection (despite Ruby/LDAP's lack of .close)
611
+
612
+ == 0.1.5
613
+
614
+ * Fixed incorrect usage of @klass in .find (should .find be a class method?)
615
+
616
+ == 0.1.4
617
+
618
+ * Change WARN to INFO in associations.rb for has_many
619
+
620
+ == 0.1.3
621
+
622
+ * Fixed class name mangling
623
+ * Added support for classes to take DNs as the initialization value
624
+
625
+ == 0.1.2
626
+
627
+ * Patch from Dick Davies: Try SSL before TLS
628
+ * Log4r support
629
+ * Better packaging (automated)
630
+ * Work-around for SSL stupidity
631
+ - SSLConn doesn't check if the port it connected to is really using SSL!
632
+
633
+ == 0.1.1
634
+
635
+ * Dynamic table class creation
636
+ * SASL/GSSAPI disabled by default - doesn't work consistently
637
+
638
+ == 0.1.0
639
+
640
+ * Added foreign_key to has_many
641
+ * Added local_key to belongs_to
642
+ * Added primary_members to Group example
643
+ * Added "nil" filtering to has_many
644
+ * Packaged up with setup.rb
645
+ * Added RDocs and better comments
646
+
647
+ == 0.0.9
648
+
649
+ * Separated extension classes from ActiveLDAP module
650
+ * Cleaned up examples with new requires
651
+
652
+ == 0.0.8
653
+
654
+ * Added user and group scripting examples
655
+ - usermod, userls, useradd, userdel
656
+ - groupmod, groupls
657
+
658
+ == 0.0.7
659
+
660
+ * Cleaner authentication loop:
661
+ - SASL (GSSAPI only), simple, anonymous
662
+ * Added allow_anonymous option added (default: false)
663
+
664
+ == 0.0.6
665
+
666
+ * Write support cleaned up
667
+ * Exception classes added
668
+
669
+ == 0.0.5
670
+
671
+ * LDAP write support added
672
+
673
+ == 0.0.4
674
+
675
+ * MUST and MAY data validation against schema using objectClasses
676
+
677
+ == 0.0.3
678
+
679
+ * LDAP attributes alias resolution and data mapping
680
+
681
+ == 0.0.2
682
+
683
+ * Associations: has_many and belongs_to Class methods added for Base
684
+
685
+ == 0.0.1
686
+
687
+ * Extension approach in place with example User and Group classes
688
+
689
+ == 0.0.0
690
+
691
+ * Basic LDAP read support in place with hard-coded OUs