activeldap 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/CHANGES +648 -567
  2. data/README +53 -48
  3. data/Rakefile +25 -53
  4. data/TODO +2 -0
  5. data/data/locale/en/LC_MESSAGES/active-ldap.mo +0 -0
  6. data/data/locale/ja/LC_MESSAGES/active-ldap.mo +0 -0
  7. data/examples/al-admin/app/controllers/application_controller.rb +1 -1
  8. data/examples/al-admin/app/views/_entry/_attributes_information.html.erb +7 -1
  9. data/examples/al-admin/app/views/users/_attributes_update_form.html.erb +13 -1
  10. data/examples/al-admin/config/environment.rb +2 -3
  11. data/lib/active_ldap.rb +103 -98
  12. data/lib/active_ldap/association/belongs_to_many.rb +7 -7
  13. data/lib/active_ldap/association/has_many.rb +4 -4
  14. data/lib/active_ldap/associations.rb +29 -5
  15. data/lib/active_ldap/attributes.rb +5 -1
  16. data/lib/active_ldap/base.rb +17 -13
  17. data/lib/active_ldap/configuration.rb +3 -4
  18. data/lib/active_ldap/connection.rb +3 -3
  19. data/lib/active_ldap/get_text/parser.rb +4 -2
  20. data/lib/active_ldap/helper.rb +59 -0
  21. data/lib/active_ldap/operations.rb +15 -10
  22. data/lib/active_ldap/xml.rb +22 -30
  23. data/po/en/active-ldap.po +221 -154
  24. data/po/ja/active-ldap.po +237 -178
  25. data/test-unit/History.txt +26 -0
  26. data/test-unit/Manifest.txt +1 -1
  27. data/test-unit/README.txt +1 -0
  28. data/test-unit/Rakefile +6 -1
  29. data/test-unit/lib/test/unit/autorunner.rb +6 -0
  30. data/test-unit/lib/test/unit/testcase.rb +101 -36
  31. data/test-unit/test/{test_testcase.rb → test-testcase.rb} +30 -1
  32. data/test-unit/test/test_assertions.rb +1 -1
  33. data/test/al-test-utils.rb +3 -1
  34. data/test/test_associations.rb +75 -6
  35. data/test/test_base.rb +45 -3
  36. metadata +75 -45
  37. data/examples/al-admin/config/initializers/gettext.rb +0 -15
data/CHANGES CHANGED
@@ -1,567 +1,648 @@
1
- 1.0.9:
2
- * Added documents in Japanese. [Kazuaki Takase]
3
- * Supported Ruby 1.9.1.
4
- * [#20] [Ruby 1.9 Support] :: Running Tests [Alexey.Chebotar]
5
- * Supported Rails 2.3.2.
6
- * [#18] [Rails 2.3 Support] :: Running WEBrick Hangs [Alexey.Chebotar]
7
- * Bug fixes:
8
- * Fixed blank values detection. [David Morton]
9
- * [#22] Ruby 1.8.6 p287 :: Undefined methods [Alexey.Chebotar]
10
- * Fixed gem loading. [Tiago Fernandes]
11
- * Fixed DN change via #base=. [David Morton]
12
- * Fixed infinite retry on timeout.
13
- * Fixed needless reconnection.
14
- * API improvements:
15
- * Removed needless instance methods: #prefix=,
16
- #dn_attribute=, #sort_by=, #order=, #required_classes=,
17
- #recommended_classes= and #excluded_classes. [David Morton]
18
- * Removed obsolete scafoold_al generator.
19
- * Reduced default :retry_limit.
20
- * Supported association as parameter. [Joe Francis]
21
- * Normalized schema attribute name. [Tim Hermans]
22
- * Suppressed AuthenticationError -> ConnectionError
23
- conversion on reconnection. [Kazuaki Takase]
24
- * Added ActiveLdap::Schema#dump.
25
- * ActiveLdap::Base.establish_connection ->
26
- ActiveLdap::Base.setup_connection.
27
- * Supported ActiveLdap::Base.find(:last).
28
- * Added convenient methods:
29
- * ActiveLdap::Base.first
30
- * ActiveLdap::Base.last
31
- * ActiveLdap::Base.all
32
-
33
- 1.0.2:
34
- * Removed Base64 module use.
35
- * Improved LDIF parser.
36
- * Improved scheme parser.
37
- * Supported Base64 in XML serialization.
38
- * Supported TLS options.
39
- * Supported ActiveRecord 2.2.2.
40
- * Supported Ruby on Rails 2.2.2.
41
- * Used rails/init.rb and rails_generators/ directory structure convention
42
- for Rails and gem. rails/ directory will be removed after 1.0.2 is released.
43
- * AL-Admin migrated to Ruby on Rails 2.2.2 form 2.0.2.
44
- * Improved ActiveDirectory integration.
45
- * Accepted :class_name for belong_to and has_many option.
46
- * Improved default port guess.
47
- * Bug fixes:
48
- * [#4] ModifyRecord#load doesn't operate atomic. [gwarf12]
49
- * [#5] to_xml supports :except option. [baptiste.grenier]
50
- * [#6] to_xml uses ActiveResource format. [baptiste.grenier]
51
- * Out of ranged GeneralizedTime uses Time.at(0) as fallback value.
52
- [Richard Nicholas]
53
- * ActiveLdap::Base#to_s uses #to_ldif. [Kazuhiro NISHIYAMA]
54
- * Fixed excess prefix extraction. [Grzegorz Marszałek]
55
- * Skiped read only attribute validation. [しまさわらさん]
56
- * Treated "" as empty value. [Ted Lepich]
57
- * [#9][#16] Reduced raising when DN value is invalid.
58
- [danger1986][Alexey.Chebotar]
59
- * [#10][#12] Fixed needless ',' is appeared. [michael.j.konopka]
60
- * [#11] Required missing 'active_ldap/user_password'. [michael.j.konopka]
61
- * [#13] Returned entries if has_many :wrap has nonexistent entry.
62
- [ingersoll]
63
- * [#15] Fixed type error on computing DN. [ery.lee]
64
- * ">=" filter operator doesn't work. [id:dicdak]
65
- * [#17] ActiveLdap::Base.create doesn't raise exception. [Alexey.Chebotar]
66
-
67
- 1.0.1:
68
- * Fixed GetText integration.
69
- * Fixed ActiveLdap::Base.find with ActiveLdap::DN. (Reported by Jeremy Pruitt)
70
- * Fixed associated bugs. (Reported by CultureSpy)
71
- * Supported ActiveLdap::Base#attribute_present? with nonexistence attribute.
72
- (Reported by Matt Mencel)
73
- * Added ActiveLdap::Base#.to_ldif_record.
74
- * Improved inspect.
75
- * Supported ActiveSupport 2.1.0.
76
-
77
- 1.0.0:
78
- * Fixed GSSAPI auth failure. [#18764] (Reported by Lennon Day-Reynolds)
79
- * Supported Symbol as :dn_attribute_value. [#18921] (Requested by Nobody)
80
- * Improved DN attribute detection. (Reported by Iain Pople)
81
- * Avoided unnecesally modify operation. (Reported by Tilo)
82
-
83
- 0.10.0:
84
- * Implemented LDIF parser.
85
- * Improved validation:
86
- * Added some validations.
87
- * Fixed SINGLE-VALUE validation. [#17763]
88
- (Reported by Naoto Morishima)
89
- * Supported JNDI as backend.
90
- * Improved auto reconnection.
91
- * Supported Rails 2.0.2.
92
- * Improved performance. (4x)
93
- * [API CHANGE]: removed "'binary' =>" from getter result.
94
- e.g., before:
95
- user.user_certificate # => {"binary" => "..."}
96
- now:
97
- user.user_certificate # => "..."
98
- * Added :excluded_classed ldap_mapping option.
99
- * Logged operation time used for LDAP operation.
100
- * Improved API:
101
- * Accepted non String value for find(:value => XXX).
102
- (Suggested by Marc Dequèn)
103
- * Accepted DN as ActiveLdap::Base.new(XXX).
104
- (Reported by Jeremy Pruitt)
105
- * Treated empty password for smiple bind as anonymous bind.
106
- (Suggested by Bodaniel Jeans)
107
- * Ensured adding "objectClass" for find's :attribute value. [#16946]
108
- (Suggested by Nobody)
109
- * Fixed a GeneralizedTime type casting bug.
110
- (Reported by Bodaniel Jeanes)
111
- * Supported :base and :prefix search/find option value escaping.
112
- (Suggested by David Morton)
113
-
114
- 0.9.0:
115
- * Improved DN handling.
116
- * Supported attribute value validation by LDAP schema.
117
- * Changed RubyGems name: ruby-activeldap -> activeldap.
118
- * Removed Log4r dependency.
119
- * Supported lazy connection establishing.
120
- * [API CHANGE]: establish_connection doesn't connect LDAP server.
121
- * [API CHANGE]: Removed ActiveLdap::Base#establish_connection.
122
- * Added ActiveLdap::Base#bind. (use this instead of #establish_connection)
123
- * Supported implicit acts_as_tree.
124
- * [API CHANGE]: Supported type casting.
125
- * Supported :uri option in configuration.
126
- * Improved Rails integration:
127
- * Followed Rails 2.0 changes.
128
- * AL-Admin:
129
- * Supported lang parameter in URL.
130
- * Improved design a bit. (Please someone help us!)
131
- * Supported schema inspection.
132
- * Supported objectClass modifiation.
133
- * Rails plugin:
134
- * Added ActiveLdap::VERSION check.
135
- * Added model_active_ldap generator.
136
- * Renamed scaffold_al generator to scaffold_active_ldap.
137
-
138
- 0.8.3:
139
- * Added AL-Admin Sample Rails app
140
- * Added Ruby-GetText-Package support
141
- * Added a Rails plugin
142
- * Improved schema handling
143
- * Improved performance
144
- * Many bug fixes
145
-
146
- 0.8.2:
147
- * Added Net::LDAP support!
148
- * supported SASL Digest-MD5 authentication with Net::LDAP.
149
- * improved LDAP server support:
150
- * improved Sun DS support.
151
- * improved ActiveDirectory support. Thanks to Ernie Miller!
152
- * improved Fedora-DS support. Thanks to Daniel Pfile!
153
- * improved existing functions:
154
- * improved DN handling. Thanks to James Hughes!
155
- * improved SASL bind.
156
- * improved old API check.
157
- * improved schema handling. Thanks to Christoph Lipp!
158
- * improved filter notification.
159
- * updated documents:
160
- * updated Rails realted documenation. Thanks to James Hughes!
161
- * updated documentation for the changes between 0.7.1 and 0.8.0.
162
- Thanks to Buzz Chopra!
163
- * added new features:
164
- * added scaffold_al generator for Rails.
165
- * added required_classes to default filter value. Thanks to Jeff Hall!
166
- * added :recommended_classes option to ldap_mapping.
167
- * added :sort_by and :order options to find.
168
- * added ActiveLdap::Base#to_param for ActionController.
169
- * fixed some bugs:
170
- * fixed rake install/uninstall.
171
- * fixed typos. Thanks to Nobody!
172
- * fixed required_classes initialization. Thanks to James Hughes!
173
-
174
- 0.8.1:
175
- * used Dependencies.load_paths.
176
- * check whether attribute name is available or not.
177
- * added test for find(:first, :attribute => 'xxx', :value => 'yyy').
178
- * supported ActiveSupport 1.4.0.
179
- * make the dual licensing of ruby-activeldap clear in the README.
180
- * followed edge Rails: don't use Reloadable::Subclasses if doesn't need.
181
- * added examples/.
182
- * removed debug code.
183
- * normalized attribute name to support wrong attribute names in MUST/MAY.
184
- * supported getting dn value by Base#[].
185
- * test/test_userls.rb: followed userls changes.
186
- * update the doc href.
187
- * provide a dumb example of how to use the old association(return_objects) style API with the new awesome API.
188
- * followed new API.
189
- * removed a finished task: support Reloadable::Subclasses.
190
-
191
- 0.8.0:
192
- * Makefile/gemspec system replaced with Rakefile + Hoe
193
- * Bugfix: Allow base to be empty
194
- * Add support for Date, DateTime, and Time objects (patch from Patrick Cole)
195
- * Add support for a :filter argument to override the default attr=val LDAP search filter in find_all() and find() (patch from Patrick Cole)
196
- * Add Base#update_attributes(hash) method which does bulk updates to attributes (patch from Patrick Cole) and saves immediately
197
- * API CHANGE: #attributes now returns a Hash of attribute_name => clone(attribute_val)
198
- * API CHANGE: #attribute_names now returns an alphabetically sorted list of attribute names
199
- * API CHANGE;
200
- * Added attributes=() as the implementation for update_attributes(hash) (without autosave)
201
- * API TRANSITION: Base#write is now deprecated. Please use Base#save
202
- * API TRANSITION: Added SaveError exception (which is a subclass of WriteError for now)
203
- * API TRANSITION: Base.connect() is now deprecated. Please use Base.establish_connection()
204
- * API TRANSITION: Base.close() is now deprecated. Please use Base.remove_connection()
205
- * API TRANSITION: :bind_format and :user of Base.establish_connection() are now deprecated. Please use :bind_dn
206
- * Added update_attribute(name, value) to update one attribute and save immediately
207
- * #delete -> #destroy
208
- * Base.destroy_all
209
- * Base.delete(id) & Base.delete_all(filter)
210
- * add Base.exists?(dnattr_val)
211
- * attr_protected
212
- * Base.update(dnattr_val, attributes_hash) - instantiate, update, save, return
213
- * Base.update_all(updates_hash, filter)
214
- * attribute_present?(attribute) - if not empty/nil
215
- * has_attribute?(attr_name) - if in hash
216
- * reload() (refetch from LDAP)
217
- * make save() return false on fail
218
- * make save!() raise EntryNotSaved exception
219
- * to_xml()
220
- * clear_active_connections!() -- Conn per class
221
- - make @@active_connections and name them by
222
- * base_class() (just return the ancestor)
223
- * Separate ObjectClass changes to live in ActiveLDAP::ObjectClass
224
- - add_objectclass
225
- - remove_objectclass
226
- - replace_objectclass
227
- - disallow direct objectclass access?
228
- # - e.g. Person.reset_column_information
229
- # - this would mean cleaner loading I think
230
- * support ActiveRecord::Validations.
231
- * support ActiveRecord::Callbacks.
232
- * rename to ActiveLdap from ActiveLDAP to integrate RoR easily and enforce
233
- many API changes.
234
-
235
- 0.7.4:
236
- * Bugfix: do not base LDAP::PrettyError on RuntimeError due to rescue evaluation.
237
- * Bugfix: :return_objects was overriding :objects in find and find_all
238
- * Rollup exception code into smaller space reusing similar code.
239
-
240
- 0.7.3:
241
- * Made has_many and belongs_to use :return_objects value
242
- * Force generation of LDAP constants on import - currently broken
243
-
244
- 0.7.2:
245
- * Stopped overriding Conn.schema in ldap/schema - now use schema2
246
- * Fix attributes being deleted when changing between objectclasses with shared attributes
247
- * Added schema attribute case insensitivity
248
- * Added case insensitivity to the attribute methods.
249
- * Added LDAP scope override support to ldap_mapping via :scope argument. (ldap_mapping :scope => LDAP::LDAP_SCOPE_SUBTREE, ...)
250
- * Fixed the bug where Klass.find() return nil (default arg for find/find_all now '*')
251
- * 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.
252
- * Hid away several exposed private class methods (do_bind, etc)
253
- * Undefined dnattr for a class now raises a ConfigurationError
254
- * Centralized all connection management code where possible
255
- * Added Base.can_reconnect? which returns true if never connected or below the :retries limit
256
- * 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| ...
257
- * Fixed object instantiation in Base#initialize when using full DNs
258
- * 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, ...)
259
- * Fixed reconnect bug in Base#initialize (didn't respect infinite retries)
260
- * Added(*) :timeout argument to allow timeouts on hanging LDAP connections
261
- * Added(*) :retry_on_timeout boolean option to allow disabling retries on timeouts
262
- * Added TimeoutError
263
- * Added(*) a forking timeout using SIGALRM to interrupt handling.
264
- * (*) Only works when RUBY_PLATFORM has "linux" in it
265
-
266
- 0.7.1:
267
- * Fix broken -W0 arg in activeldap.rb
268
- * attribute_method=: '' and nil converted to ldap-pleasing [] values
269
- * Added checks in write and search for connection down (to reconnect)
270
- * Fixed broken idea of LDAP::err2string exceptions. Instead took errcodes from ldap.c in Ruby/LDAP.
271
-
272
- 0.7.0:
273
- * ConnectionError thrown from #initialize when there is no connection and retry limit was exceeded
274
- * ConnectionError thrown when retries exceeded when no connection was created
275
- * Separated connection types: SSL, TLS, and plain using :method
276
- * Localized reconnect logic into Base.reconnect(force=false)
277
- * Fixed password_block evaluation bug in do_bind() which broke SIMPLE re-binds and broke reconnect
278
- * Add support for config[:sasl_quiet] in Base.connect
279
- * (Delayed a case sensitivity patch for object classes and attributes due to weird errors)
280
- * Add :retry_wait to Base.connect to determine the timeout before retrying a connection
281
- * Fixed ActiveLDAP::Base.create_object() - classes were enclosed in quotes
282
- * Added :ldap_scope Base.connect() argument to allow risk-seeking users to change the LDAP scope to something other than ONELEVEL.
283
- * 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.
284
- * Added scrubbing for :base argument into Base.connect() to make sure a ' doesn't get evaluated.
285
- * Refactored Base.connect(). It is now much cleaner and easier to follow.
286
- * Moved schema retrieval to after bind in case a server requires privileges to access it.
287
- * Reworked the bind process to be a little prettier. A lot of work to do here still.
288
- * Added LDAP::err2exception(errno) which is the groundwork of a coming overhaul in user friendly error handling.
289
- * Added support for Base::connect(.., :password => String, ...) to avoid stupid Proc.new {'foo'} crap
290
- * Add :store_password option. When this is set, :password is not cleared and :password_block is not re-evaluated on each rebind.
291
-
292
- 0.6.0:
293
- * Disallow blank DN attribute values on initialization
294
- * Fix bug reported by Maik Schmidt regarding object creation
295
- * Added error checking to disallow DN attribute value changes
296
- * Added AttributeAssignmentError (for above)
297
- * Import() and initialize() no longer call attribute_method=()
298
- * Added error condition if connection fails inside initialize()
299
- * Changes examples and tests to use "dc=localdomain"
300
- * has_many() entries no longer return nil when empty
301
-
302
- 0.5.9:
303
- * Change default base to dc=localdomain (as per Debian default).
304
- * schema2.rb:attr() now returns [] instead of '' when empty.
305
- * Lookup of new objects does not put dnattr()=value into the Base on lookup.
306
- * Scope is now use ONELEVEL instead of SUBTREE as it broke object boundaries.
307
- * Fixed @max_retries misuse.
308
- * Added do_connect retries.
309
- * Fixed find and find_all for the case - find_all('*').
310
- * Fixed broken creation of objects from anonymous classes.
311
- * Fixed broken use of ldap_mapping with anonymous classes.
312
-
313
- 0.5.8: Bugfix galore
314
- * Allow nil "prefix"
315
- * Fixed the dup bug with Anonymous patch.
316
- * (maybe) Fixed stale connection problems by attempting reconn/bind.
317
- * Hiding redefine warnings (for now)
318
-
319
- 0.5.7:
320
- * Fixed the @data.default = [] bug that daniel@nightrunner.com pointed out
321
- (and partially patched).
322
-
323
- 0.5.6:
324
- * Added support for foreign_key => 'dn' in has_many.
325
-
326
- 0.5.5:
327
- * Remove @@logger.debug entries during build
328
- * Building -debug and regular gems and tarballs
329
-
330
- 0.5.4:
331
- * Added Base#import to streamline the Base.find and Base.find_all methods
332
- - Speeds up find and find_all by not accessing LDAP multiple times
333
- for data we already have.
334
- * Added tests/benchmark which is a slightly modified version of excellent
335
- benchmarking code contributed by
336
- Ollivier Robert <roberto -_-AT-_- keltia.freenix.fr>.
337
-
338
- 0.5.3:
339
- * Changed attribute_method to send in associations
340
- - fixes belongs_to (with local_kay) and inheritance around that
341
-
342
- 0.5.2:
343
- * Make sure values are .dup'd when they come from LDAP
344
-
345
- 0.5.1:
346
- * Changed Schema2#class_attributes to return {:must => [], :may => []}
347
- * Fixed Base#must and Base#may to return with full SUPerclass requirements
348
-
349
- 0.5.0:
350
- * API CHANGE (as with all 0.x.0 changes) (towards ActiveRecord duck typing)
351
- - Base#ldapattribute now always returns an array
352
- - Base#ldapattribute(true) now returns a dup of an array, string, etc
353
- when appropriate (old default) - This is just for convenience
354
- - Base#ldapattribute returns the stored value, not just a .dup
355
- - Associations methods return objects by default instead of just names.
356
- Group.new('foo').members(false) will return names only.
357
- - Base.connect returns true as one might expect
358
- * Value validation and changing (binary, etc) occur prior to write, and
359
- not immediately on attribute_method=(value).
360
- * Attribute method validity is now determined /on-the-fly/.
361
- * Default log level set to OFF speeds up 'speedtest' by 3 seconds!
362
- (counters last point which added some slowness :)
363
- * Added Schema2#class_attributes which caches and fully supertype expands
364
- attribute lists.
365
- * Integrated Schema2#class_attributes with apply_objectclass which automagically
366
- does SUP traversal and automagically updates available methods on calls to
367
- #attributes, #method_missing, #validate, and #write
368
- * Added 'attributes' to 'methods' allowing for irb autocompletion and other
369
- normal rubyisms
370
- * Moved almost all validation to Base#validate to avoid unexpected exceptions
371
- being raised in seemingly unrelated method calls. This means that invalid
372
- objectClasses may be specified. This will only be caught on #write or
373
- a pre-emptive #validate. This goes for all attribute errors though.
374
- This also makes it possible to "break" objects by removing the 'top'
375
- objectclass and therefore the #objectClass method...
376
-
377
- 0.4.4:
378
- * Fixed binary subtype forcing:
379
- - was setting data as subtype ;binary even when not required
380
- * Added first set of unit tests.
381
- - These will be cleaned up in later releases as more tests are added.
382
- * Fixed subtype clobber non-subtype (unittest!)
383
- - cn and cn;lang-blah: the last loaded won
384
- * Fixed multivalued subtypes from being shoved into a string (unittest!)
385
- - an error with attribute_input_value
386
-
387
- 0.4.3:
388
- * Fixed write (add) bugs introduced with last change
389
- - only bug fixes until unittests are in place
390
-
391
- 0.4.2:
392
- * Added ruby-activeldap.gemspec
393
- * Integrated building a gem of 'ruby-activeldap' into Makefile.package
394
- * Added attr parsing cache to speed up repetitive calls: approx 13x speedup
395
- = 100 usermod-binary-add calls
396
- - Without attr parsing cache:
397
- real 13m53.129s
398
- user 13m11.350s
399
- sys 0m7.030s
400
- - With attr parsing cache:
401
- real 1m0.416s
402
- user 0m28.390s
403
- sys 0m2.380s
404
-
405
- 0.4.1:
406
- * Schema2 was not correctly parsing objectClass entries.
407
- - This is fixed for now but must be revisited.
408
-
409
- 0.4.0:
410
- * Added #<attribute>(arrays) argument which when true
411
- always returns arrays. e.g.
412
- irb> user.cn(true)
413
- => ['My Common Name']
414
- This makes things easier for larger programming tasks.
415
- * Added subtype support:
416
- - Uses Hash objects to specify the subtype
417
- e.g. user.userCertificate = {'binary' => File.read('mycert.der')}
418
- - Added recursive type enforcement along with the subtype handling
419
- - This required overhauling the #write method.
420
- - Please report any problems ASAP! :^)
421
- * Added automagic binary support
422
- - subtype wrapping done automatically
423
- - relies on X-NOT-HUMAN-READABLE flag
424
- * Added LDAP::Schema2 which is an extension of Ruby/LDAP::Schema
425
- - made Schema#attr generic for easy type dereferencing
426
- * Updated rdoc in activeldap.rb
427
- * Updated examples (poorly) to reflect new functionality
428
- * Added several private helper functions
429
-
430
- 0.3.6:
431
- * Fixed dn attribute value extraction on find and find_all
432
- - these may have grabbed the wrong value if a DN attr has
433
- multiple values.
434
- * Fixed Base.search to return all values as arrays and update
435
- multivalued ones correctly
436
- * Lowered the amount of default logging to FATAL only
437
-
438
- 0.3.5:
439
- * Moved to rubyforge.org!
440
-
441
- 0.3.4:
442
- * Changed license to Ruby's
443
-
444
- 0.3.3:
445
- * Changed Base.search to return an array instead of a hash of hashes
446
- * Change Base.search to take in a hash as its arguments
447
-
448
- 0.3.2:
449
- * Bug fix - fixed support for module'd extension classes (again!)
450
-
451
- 0.3.1:
452
- * Updated the documentation
453
- * Fixed ignoring of attrs argument in Base.search
454
- * Fixed mistake in groupls (using dnattr directly)
455
- * Fixed a mistake with overzealous dup'ing
456
-
457
- 0.3.0:
458
- * MORE API CHANGES (configuration.rb, etc)
459
- * Major overhaul to the internals!
460
- - removed @@BLAH[@klass] in lieu of defining
461
- class methods which contain the required values. This
462
- allows for clean inheritance of Base subclasses! Whew!
463
- - Added @@config to store the options currently in use
464
- after a Base.connect
465
- - Now cache passwords for doing reconnects
466
- - dnattr now accessible to the outside as a class method only
467
- * Added Base.search to wrap normal LDAP search for convenience.
468
- - This returns a hash of hashes with the results indexed first by
469
- full dn, then by attribute.
470
-
471
- 0.2.0:
472
- * API CHANGES:
473
- - Extension classes must be defined using map_to_ldap instead of setting
474
- random values in initialize
475
- - Base#find is now Base.find_all and is a class method
476
- - Base.find returns the first match a la Array#find
477
- - force_reload is gone in belongs_to and has_many created methods
478
- - hiding Base.new, Base.find, and Base.find_all from direct access
479
- * added uniq to setting objectClass to avoid stupid errors
480
- * fixed new object creation bug where attributes were added before the
481
- objectclass resulting in a violation (Base#write)
482
- * fixed attribute dereferencing in Base#write
483
- * fixed bug with .dup on Fixnums
484
- * methods created by has_many/belongs_to and find and find_all now take an
485
- optional argument dnattr_only which will return the value of dnattr for
486
- each result instead of a full object.
487
- * Base.connection=(conn) added for multiplexing connections
488
- * Added a manual to activeldap.rb which covers most usage of Ruby/ActiveLDAP
489
- * Base.connect(:try_sasl => true) should now work with GSSAPI if you are
490
- using OpenLDAP >= 2.1.29
491
-
492
- 0.1.8:
493
- * .dup all returned attribute values to avoid weirdness
494
- * .dup all assigned values to avoid weirdness
495
- * Changed default configuration.rb to use example.com
496
-
497
- 0.1.7:
498
- * Added support for non-unique DN attributes
499
- * Added authoritative DN retrieval with 'object.dn'
500
-
501
- 0.1.6:
502
- * Added Base.close method for clearing the existing connection (despite Ruby/LDAP's lack of .close)
503
-
504
- 0.1.5:
505
- * Fixed incorrect usage of @klass in .find (should .find be a class method?)
506
-
507
- 0.1.4:
508
- * Change WARN to INFO in associations.rb for has_many
509
-
510
- 0.1.3:
511
- * Fixed class name mangling
512
- * Added support for classes to take DNs as the initialization value
513
-
514
- 0.1.2:
515
- * Patch from Dick Davies: Try SSL before TLS
516
- * Log4r support
517
- * Better packaging (automated)
518
- * Work-around for SSL stupidity
519
- - SSLConn doesn't check if the port it connected to is really using SSL!
520
-
521
- 0.1.1:
522
- * Dynamic table class creation
523
- * SASL/GSSAPI disabled by default - doesn't work consistently
524
-
525
- 0.1.0:
526
- * Added foreign_key to has_many
527
- * Added local_key to belongs_to
528
- * Added primary_members to Group example
529
- * Added "nil" filtering to has_many
530
- * Packaged up with setup.rb
531
- * Added RDocs and better comments
532
-
533
- 0.0.9:
534
- * Separated extension classes from ActiveLDAP module
535
- * Cleaned up examples with new requires
536
-
537
- 0.0.8:
538
- * Added user and group scripting examples
539
- - usermod, userls, useradd, userdel
540
- - groupmod, groupls
541
-
542
- 0.0.7:
543
- * Cleaner authentication loop:
544
- - SASL (GSSAPI only), simple, anonymous
545
- * Added allow_anonymous option added (default: false)
546
-
547
- 0.0.6:
548
- * Write support cleaned up
549
- * Exception classes added
550
-
551
- 0.0.5:
552
- * LDAP write support added
553
-
554
- 0.0.4:
555
- * MUST and MAY data validation against schema using objectClasses
556
-
557
- 0.0.3:
558
- * LDAP attributes alias resolution and data mapping
559
-
560
- 0.0.2:
561
- * Associations: has_many and belongs_to Class methods added for Base
562
-
563
- 0.0.1:
564
- * Extension approach in place with example User and Group classes
565
-
566
- 0.0.0:
567
- * Basic LDAP read support in place with hard-coded OUs
1
+ = CHANGES
2
+
3
+ == 1.1.0: 2009-07-18
4
+
5
+ * Improved tutorial. [Kazuaki Takase]
6
+ * Improvements:
7
+ * API:
8
+ * [#26] Supported to_xml for associations. [achemze]
9
+ * ActiveLdap::Base.delete_all(filter=nil, options={}) ->
10
+ ActiveLdap::Base.delete_all(filter_or_options={}).
11
+ Sure, old method signature is also still supported.
12
+ * belongs_to(:many) with :foreign_key is deprecated.
13
+ Use :primary_key instead of :foreign_key. [Kazuaki Takase]
14
+ * Means of has_many's :primary_key and :foreign_key are inverted.
15
+ [Kazuaki Takase]
16
+ * [experimental] Added ldap_field ActionView helper to
17
+ generate form fileds for a LDAP entry.
18
+ * Suppressed needless attributes updating.
19
+ * Dependencies:
20
+ * Re-supported GetText.
21
+ * ActiveRecord 2.3.2 is only supported.
22
+
23
+ == 1.0.9
24
+
25
+ * Added documents in Japanese. [Kazuaki Takase]
26
+ * Supported Ruby 1.9.1.
27
+ * [#20] [Ruby 1.9 Support] :: Running Tests [Alexey.Chebotar]
28
+ * Supported Rails 2.3.2.
29
+ * [#18] [Rails 2.3 Support] :: Running WEBrick Hangs [Alexey.Chebotar]
30
+ * Bug fixes:
31
+ * Fixed blank values detection. [David Morton]
32
+ * [#22] Ruby 1.8.6 p287 :: Undefined methods [Alexey.Chebotar]
33
+ * Fixed gem loading. [Tiago Fernandes]
34
+ * Fixed DN change via #base=. [David Morton]
35
+ * Fixed infinite retry on timeout.
36
+ * Fixed needless reconnection.
37
+ * API improvements:
38
+ * Removed needless instance methods: #prefix=,
39
+ #dn_attribute=, #sort_by=, #order=, #required_classes=,
40
+ #recommended_classes= and #excluded_classes. [David Morton]
41
+ * Removed obsolete scafoold_al generator.
42
+ * Reduced default :retry_limit.
43
+ * Supported association as parameter. [Joe Francis]
44
+ * Normalized schema attribute name. [Tim Hermans]
45
+ * Suppressed AuthenticationError -> ConnectionError
46
+ conversion on reconnection. [Kazuaki Takase]
47
+ * Added ActiveLdap::Schema#dump.
48
+ * ActiveLdap::Base.establish_connection ->
49
+ ActiveLdap::Base.setup_connection.
50
+ * Supported ActiveLdap::Base.find(:last).
51
+ * Added convenient methods:
52
+ * ActiveLdap::Base.first
53
+ * ActiveLdap::Base.last
54
+ * ActiveLdap::Base.all
55
+
56
+ == 1.0.2
57
+
58
+ * Removed Base64 module use.
59
+ * Improved LDIF parser.
60
+ * Improved scheme parser.
61
+ * Supported Base64 in XML serialization.
62
+ * Supported TLS options.
63
+ * Supported ActiveRecord 2.2.2.
64
+ * Supported Ruby on Rails 2.2.2.
65
+ * Used rails/init.rb and rails_generators/ directory structure convention
66
+ for Rails and gem. rails/ directory will be removed after 1.0.2 is released.
67
+ * AL-Admin migrated to Ruby on Rails 2.2.2 form 2.0.2.
68
+ * Improved ActiveDirectory integration.
69
+ * Accepted :class_name for belong_to and has_many option.
70
+ * Improved default port guess.
71
+ * Bug fixes:
72
+ * [#4] ModifyRecord#load doesn't operate atomic. [gwarf12]
73
+ * [#5] to_xml supports :except option. [baptiste.grenier]
74
+ * [#6] to_xml uses ActiveResource format. [baptiste.grenier]
75
+ * Out of ranged GeneralizedTime uses Time.at(0) as fallback value.
76
+ [Richard Nicholas]
77
+ * ActiveLdap::Base#to_s uses #to_ldif. [Kazuhiro NISHIYAMA]
78
+ * Fixed excess prefix extraction. [Grzegorz Marszałek]
79
+ * Skiped read only attribute validation. [しまさわらさん]
80
+ * Treated "" as empty value. [Ted Lepich]
81
+ * [#9][#16] Reduced raising when DN value is invalid.
82
+ [danger1986][Alexey.Chebotar]
83
+ * [#10][#12] Fixed needless ',' is appeared. [michael.j.konopka]
84
+ * [#11] Required missing 'active_ldap/user_password'. [michael.j.konopka]
85
+ * [#13] Returned entries if has_many :wrap has nonexistent entry.
86
+ [ingersoll]
87
+ * [#15] Fixed type error on computing DN. [ery.lee]
88
+ * ">=" filter operator doesn't work. [id:dicdak]
89
+ * [#17] ActiveLdap::Base.create doesn't raise exception. [Alexey.Chebotar]
90
+
91
+ == 1.0.1
92
+
93
+ * Fixed GetText integration.
94
+ * Fixed ActiveLdap::Base.find with ActiveLdap::DN. (Reported by Jeremy Pruitt)
95
+ * Fixed associated bugs. (Reported by CultureSpy)
96
+ * Supported ActiveLdap::Base#attribute_present? with nonexistence attribute.
97
+ (Reported by Matt Mencel)
98
+ * Added ActiveLdap::Base#.to_ldif_record.
99
+ * Improved inspect.
100
+ * Supported ActiveSupport 2.1.0.
101
+
102
+ == 1.0.0
103
+
104
+ * Fixed GSSAPI auth failure. [#18764] (Reported by Lennon Day-Reynolds)
105
+ * Supported Symbol as :dn_attribute_value. [#18921] (Requested by Nobody)
106
+ * Improved DN attribute detection. (Reported by Iain Pople)
107
+ * Avoided unnecesally modify operation. (Reported by Tilo)
108
+
109
+ == 0.10.0
110
+
111
+ * Implemented LDIF parser.
112
+ * Improved validation:
113
+ * Added some validations.
114
+ * Fixed SINGLE-VALUE validation. [#17763]
115
+ (Reported by Naoto Morishima)
116
+ * Supported JNDI as backend.
117
+ * Improved auto reconnection.
118
+ * Supported Rails 2.0.2.
119
+ * Improved performance. (4x)
120
+ * [API CHANGE]: removed "'binary' =>" from getter result.
121
+
122
+ e.g.:
123
+ before:
124
+ user.user_certificate # => {"binary" => "..."}
125
+ now:
126
+ user.user_certificate # => "..."
127
+ * Added :excluded_classed ldap_mapping option.
128
+ * Logged operation time used for LDAP operation.
129
+ * Improved API:
130
+ * Accepted non String value for find(:value => XXX).
131
+ (Suggested by Marc Dequèn)
132
+ * Accepted DN as ActiveLdap::Base.new(XXX).
133
+ (Reported by Jeremy Pruitt)
134
+ * Treated empty password for smiple bind as anonymous bind.
135
+ (Suggested by Bodaniel Jeans)
136
+ * Ensured adding "objectClass" for find's :attribute value. [#16946]
137
+ (Suggested by Nobody)
138
+ * Fixed a GeneralizedTime type casting bug.
139
+ (Reported by Bodaniel Jeanes)
140
+ * Supported :base and :prefix search/find option value escaping.
141
+ (Suggested by David Morton)
142
+
143
+ == 0.9.0
144
+
145
+ * Improved DN handling.
146
+ * Supported attribute value validation by LDAP schema.
147
+ * Changed RubyGems name: ruby-activeldap -> activeldap.
148
+ * Removed Log4r dependency.
149
+ * Supported lazy connection establishing.
150
+ * [API CHANGE]: establish_connection doesn't connect LDAP server.
151
+ * [API CHANGE]: Removed ActiveLdap::Base#establish_connection.
152
+ * Added ActiveLdap::Base#bind. (use this instead of #establish_connection)
153
+ * Supported implicit acts_as_tree.
154
+ * [API CHANGE]: Supported type casting.
155
+ * Supported :uri option in configuration.
156
+ * Improved Rails integration:
157
+ * Followed Rails 2.0 changes.
158
+ * AL-Admin:
159
+ * Supported lang parameter in URL.
160
+ * Improved design a bit. (Please someone help us!)
161
+ * Supported schema inspection.
162
+ * Supported objectClass modifiation.
163
+ * Rails plugin:
164
+ * Added ActiveLdap::VERSION check.
165
+ * Added model_active_ldap generator.
166
+ * Renamed scaffold_al generator to scaffold_active_ldap.
167
+
168
+ == 0.8.3
169
+
170
+ * Added AL-Admin Sample Rails app
171
+ * Added Ruby-GetText-Package support
172
+ * Added a Rails plugin
173
+ * Improved schema handling
174
+ * Improved performance
175
+ * Many bug fixes
176
+
177
+ == 0.8.2
178
+
179
+ * Added Net::LDAP support!
180
+ * supported SASL Digest-MD5 authentication with Net::LDAP.
181
+ * improved LDAP server support:
182
+ * improved Sun DS support.
183
+ * improved ActiveDirectory support. Thanks to Ernie Miller!
184
+ * improved Fedora-DS support. Thanks to Daniel Pfile!
185
+ * improved existing functions:
186
+ * improved DN handling. Thanks to James Hughes!
187
+ * improved SASL bind.
188
+ * improved old API check.
189
+ * improved schema handling. Thanks to Christoph Lipp!
190
+ * improved filter notification.
191
+ * updated documents:
192
+ * updated Rails realted documenation. Thanks to James Hughes!
193
+ * updated documentation for the changes between 0.7.1 and 0.8.0.
194
+ Thanks to Buzz Chopra!
195
+ * added new features:
196
+ * added scaffold_al generator for Rails.
197
+ * added required_classes to default filter value. Thanks to Jeff Hall!
198
+ * added :recommended_classes option to ldap_mapping.
199
+ * added :sort_by and :order options to find.
200
+ * added ActiveLdap::Base#to_param for ActionController.
201
+ * fixed some bugs:
202
+ * fixed rake install/uninstall.
203
+ * fixed typos. Thanks to Nobody!
204
+ * fixed required_classes initialization. Thanks to James Hughes!
205
+
206
+ == 0.8.1
207
+
208
+ * used Dependencies.load_paths.
209
+ * check whether attribute name is available or not.
210
+ * added test for find(:first, :attribute => 'xxx', :value => 'yyy').
211
+ * supported ActiveSupport 1.4.0.
212
+ * make the dual licensing of ruby-activeldap clear in the README.
213
+ * followed edge Rails: don't use Reloadable::Subclasses if doesn't need.
214
+ * added examples/.
215
+ * removed debug code.
216
+ * normalized attribute name to support wrong attribute names in MUST/MAY.
217
+ * supported getting dn value by Base#[].
218
+ * test/test_userls.rb: followed userls changes.
219
+ * update the doc href.
220
+ * provide a dumb example of how to use the old association(return_objects) style API with the new awesome API.
221
+ * followed new API.
222
+ * removed a finished task: support Reloadable::Subclasses.
223
+
224
+ == 0.8.0
225
+
226
+ * Makefile/gemspec system replaced with Rakefile + Hoe
227
+ * Bugfix: Allow base to be empty
228
+ * Add support for Date, DateTime, and Time objects (patch from Patrick Cole)
229
+ * Add support for a :filter argument to override the default attr=val LDAP search filter in find_all() and find() (patch from Patrick Cole)
230
+ * Add Base#update_attributes(hash) method which does bulk updates to attributes (patch from Patrick Cole) and saves immediately
231
+ * API CHANGE: #attributes now returns a Hash of attribute_name => clone(attribute_val)
232
+ * API CHANGE: #attribute_names now returns an alphabetically sorted list of attribute names
233
+ * API CHANGE;
234
+ * Added attributes=() as the implementation for update_attributes(hash) (without autosave)
235
+ * API TRANSITION: Base#write is now deprecated. Please use Base#save
236
+ * API TRANSITION: Added SaveError exception (which is a subclass of WriteError for now)
237
+ * API TRANSITION: Base.connect() is now deprecated. Please use Base.establish_connection()
238
+ * API TRANSITION: Base.close() is now deprecated. Please use Base.remove_connection()
239
+ * API TRANSITION: :bind_format and :user of Base.establish_connection() are now deprecated. Please use :bind_dn
240
+ * Added update_attribute(name, value) to update one attribute and save immediately
241
+ * #delete -> #destroy
242
+ * Base.destroy_all
243
+ * Base.delete(id) & Base.delete_all(filter)
244
+ * add Base.exists?(dnattr_val)
245
+ * attr_protected
246
+ * Base.update(dnattr_val, attributes_hash) - instantiate, update, save, return
247
+ * Base.update_all(updates_hash, filter)
248
+ * attribute_present?(attribute) - if not empty/nil
249
+ * has_attribute?(attr_name) - if in hash
250
+ * reload() (refetch from LDAP)
251
+ * make save() return false on fail
252
+ * make save!() raise EntryNotSaved exception
253
+ * to_xml()
254
+ * clear_active_connections!() -- Conn per class
255
+ - make @@active_connections and name them by
256
+ * base_class() (just return the ancestor)
257
+ * Separate ObjectClass changes to live in ActiveLDAP::ObjectClass
258
+ - add_objectclass
259
+ - remove_objectclass
260
+ - replace_objectclass
261
+ - disallow direct objectclass access?
262
+ * support ActiveRecord::Validations.
263
+ * support ActiveRecord::Callbacks.
264
+ * rename to ActiveLdap from ActiveLDAP to integrate RoR easily and enforce
265
+ many API changes.
266
+
267
+ == 0.7.4
268
+
269
+ * Bugfix: do not base LDAP::PrettyError on RuntimeError due to rescue evaluation.
270
+ * Bugfix: :return_objects was overriding :objects in find and find_all
271
+ * Rollup exception code into smaller space reusing similar code.
272
+
273
+ == 0.7.3
274
+
275
+ * Made has_many and belongs_to use :return_objects value
276
+ * Force generation of LDAP constants on import - currently broken
277
+
278
+ == 0.7.2
279
+
280
+ * Stopped overriding Conn.schema in ldap/schema - now use schema2
281
+ * Fix attributes being deleted when changing between objectclasses with shared attributes
282
+ * Added schema attribute case insensitivity
283
+ * Added case insensitivity to the attribute methods.
284
+ * Added LDAP scope override support to ldap_mapping via :scope argument. (ldap_mapping :scope => LDAP::LDAP_SCOPE_SUBTREE, ...)
285
+ * Fixed the bug where Klass.find() return nil (default arg for find/find_all now '*')
286
+ * 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.
287
+ * Hid away several exposed private class methods (do_bind, etc)
288
+ * Undefined dnattr for a class now raises a ConfigurationError
289
+ * Centralized all connection management code where possible
290
+ * Added Base.can_reconnect? which returns true if never connected or below the :retries limit
291
+ * 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| ...
292
+ * Fixed object instantiation in Base#initialize when using full DNs
293
+ * 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, ...)
294
+ * Fixed reconnect bug in Base#initialize (didn't respect infinite retries)
295
+ * Added(*) :timeout argument to allow timeouts on hanging LDAP connections
296
+ * Added(*) :retry_on_timeout boolean option to allow disabling retries on timeouts
297
+ * Added TimeoutError
298
+ * Added(*) a forking timeout using SIGALRM to interrupt handling.
299
+ * (*) Only works when RUBY_PLATFORM has "linux" in it
300
+
301
+ == 0.7.1
302
+
303
+ * Fix broken -W0 arg in activeldap.rb
304
+ * attribute_method=: '' and nil converted to ldap-pleasing [] values
305
+ * Added checks in write and search for connection down (to reconnect)
306
+ * Fixed broken idea of LDAP::err2string exceptions. Instead took errcodes from ldap.c in Ruby/LDAP.
307
+
308
+ == 0.7.0
309
+
310
+ * ConnectionError thrown from #initialize when there is no connection and retry limit was exceeded
311
+ * ConnectionError thrown when retries exceeded when no connection was created
312
+ * Separated connection types: SSL, TLS, and plain using :method
313
+ * Localized reconnect logic into Base.reconnect(force=false)
314
+ * Fixed password_block evaluation bug in do_bind() which broke SIMPLE re-binds and broke reconnect
315
+ * Add support for config[:sasl_quiet] in Base.connect
316
+ * (Delayed a case sensitivity patch for object classes and attributes due to weird errors)
317
+ * Add :retry_wait to Base.connect to determine the timeout before retrying a connection
318
+ * Fixed ActiveLDAP::Base.create_object() - classes were enclosed in quotes
319
+ * Added :ldap_scope Base.connect() argument to allow risk-seeking users to change the LDAP scope to something other than ONELEVEL.
320
+ * 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.
321
+ * Added scrubbing for :base argument into Base.connect() to make sure a ' doesn't get evaluated.
322
+ * Refactored Base.connect(). It is now much cleaner and easier to follow.
323
+ * Moved schema retrieval to after bind in case a server requires privileges to access it.
324
+ * Reworked the bind process to be a little prettier. A lot of work to do here still.
325
+ * Added LDAP::err2exception(errno) which is the groundwork of a coming overhaul in user friendly error handling.
326
+ * Added support for Base::connect(.., :password => String, ...) to avoid stupid Proc.new {'foo'} crap
327
+ * Add :store_password option. When this is set, :password is not cleared and :password_block is not re-evaluated on each rebind.
328
+
329
+ == 0.6.0
330
+
331
+ * Disallow blank DN attribute values on initialization
332
+ * Fix bug reported by Maik Schmidt regarding object creation
333
+ * Added error checking to disallow DN attribute value changes
334
+ * Added AttributeAssignmentError (for above)
335
+ * Import() and initialize() no longer call attribute_method=()
336
+ * Added error condition if connection fails inside initialize()
337
+ * Changes examples and tests to use "dc=localdomain"
338
+ * has_many() entries no longer return nil when empty
339
+
340
+ == 0.5.9
341
+
342
+ * Change default base to dc=localdomain (as per Debian default).
343
+ * schema2.rb:attr() now returns [] instead of '' when empty.
344
+ * Lookup of new objects does not put dnattr()=value into the Base on lookup.
345
+ * Scope is now use ONELEVEL instead of SUBTREE as it broke object boundaries.
346
+ * Fixed @max_retries misuse.
347
+ * Added do_connect retries.
348
+ * Fixed find and find_all for the case - find_all('*').
349
+ * Fixed broken creation of objects from anonymous classes.
350
+ * Fixed broken use of ldap_mapping with anonymous classes.
351
+
352
+ == 0.5.8: Bugfix galore
353
+
354
+ * Allow nil "prefix"
355
+ * Fixed the dup bug with Anonymous patch.
356
+ * (maybe) Fixed stale connection problems by attempting reconn/bind.
357
+ * Hiding redefine warnings (for now)
358
+
359
+ == 0.5.7
360
+
361
+ * Fixed the @data.default = [] bug that daniel@nightrunner.com pointed out
362
+ (and partially patched).
363
+
364
+ == 0.5.6
365
+
366
+ * Added support for foreign_key => 'dn' in has_many.
367
+
368
+ == 0.5.5
369
+
370
+ * Remove @@logger.debug entries during build
371
+ * Building -debug and regular gems and tarballs
372
+
373
+ == 0.5.4
374
+
375
+ * Added Base#import to streamline the Base.find and Base.find_all methods
376
+ - Speeds up find and find_all by not accessing LDAP multiple times
377
+ for data we already have.
378
+ * Added tests/benchmark which is a slightly modified version of excellent
379
+ benchmarking code contributed by
380
+ Ollivier Robert <roberto -_-AT-_- keltia.freenix.fr>.
381
+
382
+ == 0.5.3
383
+
384
+ * Changed attribute_method to send in associations
385
+ - fixes belongs_to (with local_kay) and inheritance around that
386
+
387
+ == 0.5.2
388
+
389
+ * Make sure values are .dup'd when they come from LDAP
390
+
391
+ == 0.5.1
392
+
393
+ * Changed Schema2#class_attributes to return {:must => [], :may => []}
394
+ * Fixed Base#must and Base#may to return with full SUPerclass requirements
395
+
396
+ == 0.5.0
397
+
398
+ * API CHANGE (as with all 0.x.0 changes) (towards ActiveRecord duck typing)
399
+ - Base#ldapattribute now always returns an array
400
+ - Base#ldapattribute(true) now returns a dup of an array, string, etc
401
+ when appropriate (old default) - This is just for convenience
402
+ - Base#ldapattribute returns the stored value, not just a .dup
403
+ - Associations methods return objects by default instead of just names.
404
+ Group.new('foo').members(false) will return names only.
405
+ - Base.connect returns true as one might expect
406
+ * Value validation and changing (binary, etc) occur prior to write, and
407
+ not immediately on attribute_method=(value).
408
+ * Attribute method validity is now determined /on-the-fly/.
409
+ * Default log level set to OFF speeds up 'speedtest' by 3 seconds!
410
+ (counters last point which added some slowness :)
411
+ * Added Schema2#class_attributes which caches and fully supertype expands
412
+ attribute lists.
413
+ * Integrated Schema2#class_attributes with apply_objectclass which automagically
414
+ does SUP traversal and automagically updates available methods on calls to
415
+ #attributes, #method_missing, #validate, and #write
416
+ * Added 'attributes' to 'methods' allowing for irb autocompletion and other
417
+ normal rubyisms
418
+ * Moved almost all validation to Base#validate to avoid unexpected exceptions
419
+ being raised in seemingly unrelated method calls. This means that invalid
420
+ objectClasses may be specified. This will only be caught on #write or
421
+ a pre-emptive #validate. This goes for all attribute errors though.
422
+ This also makes it possible to "break" objects by removing the 'top'
423
+ objectclass and therefore the #objectClass method...
424
+
425
+ == 0.4.4
426
+
427
+ * Fixed binary subtype forcing:
428
+ - was setting data as subtype ;binary even when not required
429
+ * Added first set of unit tests.
430
+ - These will be cleaned up in later releases as more tests are added.
431
+ * Fixed subtype clobber non-subtype (unittest!)
432
+ - cn and cn;lang-blah: the last loaded won
433
+ * Fixed multivalued subtypes from being shoved into a string (unittest!)
434
+ - an error with attribute_input_value
435
+
436
+ == 0.4.3
437
+
438
+ * Fixed write (add) bugs introduced with last change
439
+ - only bug fixes until unittests are in place
440
+
441
+ == 0.4.2
442
+
443
+ * Added ruby-activeldap.gemspec
444
+ * Integrated building a gem of 'ruby-activeldap' into Makefile.package
445
+ * Added attr parsing cache to speed up repetitive calls: approx 13x speedup
446
+ - 100 usermod-binary-add calls
447
+
448
+ Without attr parsing cache:
449
+ real 13m53.129s
450
+ user 13m11.350s
451
+ sys 0m7.030s
452
+ With attr parsing cache:
453
+ real 1m0.416s
454
+ user 0m28.390s
455
+ sys 0m2.380s
456
+
457
+ == 0.4.1:
458
+
459
+ * Schema2 was not correctly parsing objectClass entries.
460
+ - This is fixed for now but must be revisited.
461
+
462
+ == 0.4.0
463
+
464
+ * Added #<attribute>(arrays) argument which when true
465
+ always returns arrays. e.g.
466
+ irb> user.cn(true)
467
+ => ['My Common Name']
468
+ This makes things easier for larger programming tasks.
469
+ * Added subtype support:
470
+ - Uses Hash objects to specify the subtype
471
+ e.g. user.userCertificate = {'binary' => File.read('mycert.der')}
472
+ - Added recursive type enforcement along with the subtype handling
473
+ - This required overhauling the #write method.
474
+ - Please report any problems ASAP! :^)
475
+ * Added automagic binary support
476
+ - subtype wrapping done automatically
477
+ - relies on X-NOT-HUMAN-READABLE flag
478
+ * Added LDAP::Schema2 which is an extension of Ruby/LDAP::Schema
479
+ - made Schema#attr generic for easy type dereferencing
480
+ * Updated rdoc in activeldap.rb
481
+ * Updated examples (poorly) to reflect new functionality
482
+ * Added several private helper functions
483
+
484
+ == 0.3.6
485
+
486
+ * Fixed dn attribute value extraction on find and find_all
487
+ - these may have grabbed the wrong value if a DN attr has
488
+ multiple values.
489
+ * Fixed Base.search to return all values as arrays and update
490
+ multivalued ones correctly
491
+ * Lowered the amount of default logging to FATAL only
492
+
493
+ == 0.3.5
494
+
495
+ * Moved to rubyforge.org!
496
+
497
+ == 0.3.4
498
+
499
+ * Changed license to Ruby's
500
+
501
+ == 0.3.3
502
+
503
+ * Changed Base.search to return an array instead of a hash of hashes
504
+ * Change Base.search to take in a hash as its arguments
505
+
506
+ == 0.3.2
507
+
508
+ * Bug fix - fixed support for module'd extension classes (again!)
509
+
510
+ == 0.3.1
511
+
512
+ * Updated the documentation
513
+ * Fixed ignoring of attrs argument in Base.search
514
+ * Fixed mistake in groupls (using dnattr directly)
515
+ * Fixed a mistake with overzealous dup'ing
516
+
517
+ == 0.3.0
518
+
519
+ * MORE API CHANGES (configuration.rb, etc)
520
+ * Major overhaul to the internals!
521
+ - removed @@BLAH[@klass] in lieu of defining
522
+ class methods which contain the required values. This
523
+ allows for clean inheritance of Base subclasses! Whew!
524
+ - Added @@config to store the options currently in use
525
+ after a Base.connect
526
+ - Now cache passwords for doing reconnects
527
+ - dnattr now accessible to the outside as a class method only
528
+ * Added Base.search to wrap normal LDAP search for convenience.
529
+ - This returns a hash of hashes with the results indexed first by
530
+ full dn, then by attribute.
531
+
532
+ == 0.2.0
533
+
534
+ * API CHANGES:
535
+ - Extension classes must be defined using map_to_ldap instead of setting
536
+ random values in initialize
537
+ - Base#find is now Base.find_all and is a class method
538
+ - Base.find returns the first match a la Array#find
539
+ - force_reload is gone in belongs_to and has_many created methods
540
+ - hiding Base.new, Base.find, and Base.find_all from direct access
541
+ * added uniq to setting objectClass to avoid stupid errors
542
+ * fixed new object creation bug where attributes were added before the
543
+ objectclass resulting in a violation (Base#write)
544
+ * fixed attribute dereferencing in Base#write
545
+ * fixed bug with .dup on Fixnums
546
+ * methods created by has_many/belongs_to and find and find_all now take an
547
+ optional argument dnattr_only which will return the value of dnattr for
548
+ each result instead of a full object.
549
+ * Base.connection=(conn) added for multiplexing connections
550
+ * Added a manual to activeldap.rb which covers most usage of Ruby/ActiveLDAP
551
+ * Base.connect(:try_sasl => true) should now work with GSSAPI if you are
552
+ using OpenLDAP >= 2.1.29
553
+
554
+ == 0.1.8
555
+
556
+ * .dup all returned attribute values to avoid weirdness
557
+ * .dup all assigned values to avoid weirdness
558
+ * Changed default configuration.rb to use example.com
559
+
560
+ == 0.1.7
561
+
562
+ * Added support for non-unique DN attributes
563
+ * Added authoritative DN retrieval with 'object.dn'
564
+
565
+ == 0.1.6
566
+
567
+ * Added Base.close method for clearing the existing connection (despite Ruby/LDAP's lack of .close)
568
+
569
+ == 0.1.5
570
+
571
+ * Fixed incorrect usage of @klass in .find (should .find be a class method?)
572
+
573
+ == 0.1.4
574
+
575
+ * Change WARN to INFO in associations.rb for has_many
576
+
577
+ == 0.1.3
578
+
579
+ * Fixed class name mangling
580
+ * Added support for classes to take DNs as the initialization value
581
+
582
+ == 0.1.2
583
+
584
+ * Patch from Dick Davies: Try SSL before TLS
585
+ * Log4r support
586
+ * Better packaging (automated)
587
+ * Work-around for SSL stupidity
588
+ - SSLConn doesn't check if the port it connected to is really using SSL!
589
+
590
+ == 0.1.1
591
+
592
+ * Dynamic table class creation
593
+ * SASL/GSSAPI disabled by default - doesn't work consistently
594
+
595
+ == 0.1.0
596
+
597
+ * Added foreign_key to has_many
598
+ * Added local_key to belongs_to
599
+ * Added primary_members to Group example
600
+ * Added "nil" filtering to has_many
601
+ * Packaged up with setup.rb
602
+ * Added RDocs and better comments
603
+
604
+ == 0.0.9
605
+
606
+ * Separated extension classes from ActiveLDAP module
607
+ * Cleaned up examples with new requires
608
+
609
+ == 0.0.8
610
+
611
+ * Added user and group scripting examples
612
+ - usermod, userls, useradd, userdel
613
+ - groupmod, groupls
614
+
615
+ == 0.0.7
616
+
617
+ * Cleaner authentication loop:
618
+ - SASL (GSSAPI only), simple, anonymous
619
+ * Added allow_anonymous option added (default: false)
620
+
621
+ == 0.0.6
622
+
623
+ * Write support cleaned up
624
+ * Exception classes added
625
+
626
+ == 0.0.5
627
+
628
+ * LDAP write support added
629
+
630
+ == 0.0.4
631
+
632
+ * MUST and MAY data validation against schema using objectClasses
633
+
634
+ == 0.0.3
635
+
636
+ * LDAP attributes alias resolution and data mapping
637
+
638
+ == 0.0.2
639
+
640
+ * Associations: has_many and belongs_to Class methods added for Base
641
+
642
+ == 0.0.1
643
+
644
+ * Extension approach in place with example User and Group classes
645
+
646
+ == 0.0.0
647
+
648
+ * Basic LDAP read support in place with hard-coded OUs