ruby-activeldap 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/test/test_adapter.rb +17 -0
  2. data/test/test_associations.rb +19 -0
  3. data/test/test_attributes.rb +2 -1
  4. data/test/test_base.rb +28 -1
  5. data/test/test_base_per_instance.rb +2 -1
  6. data/test/test_callback.rb +2 -2
  7. data/test/test_connection.rb +2 -1
  8. data/test/test_connection_per_dn.rb +81 -0
  9. data/test/test_dn.rb +3 -2
  10. data/test/test_find.rb +35 -1
  11. data/test/test_object_class.rb +12 -1
  12. data/test/test_reflection.rb +16 -10
  13. data/test/test_schema.rb +141 -2
  14. data/test/test_user.rb +14 -4
  15. metadata +7 -104
  16. data/CHANGES +0 -397
  17. data/COPYING +0 -340
  18. data/LICENSE +0 -58
  19. data/Manifest.txt +0 -99
  20. data/README +0 -85
  21. data/Rakefile +0 -70
  22. data/TODO +0 -23
  23. data/benchmark/bench-al.rb +0 -152
  24. data/examples/config.yaml.example +0 -5
  25. data/examples/example.der +0 -0
  26. data/examples/example.jpg +0 -0
  27. data/examples/groupadd +0 -41
  28. data/examples/groupdel +0 -35
  29. data/examples/groupls +0 -49
  30. data/examples/groupmod +0 -42
  31. data/examples/lpasswd +0 -55
  32. data/examples/objects/group.rb +0 -13
  33. data/examples/objects/ou.rb +0 -4
  34. data/examples/objects/user.rb +0 -20
  35. data/examples/ouadd +0 -38
  36. data/examples/useradd +0 -45
  37. data/examples/useradd-binary +0 -50
  38. data/examples/userdel +0 -34
  39. data/examples/userls +0 -50
  40. data/examples/usermod +0 -42
  41. data/examples/usermod-binary-add +0 -47
  42. data/examples/usermod-binary-add-time +0 -51
  43. data/examples/usermod-binary-del +0 -48
  44. data/examples/usermod-lang-add +0 -43
  45. data/lib/active_ldap.rb +0 -964
  46. data/lib/active_ldap/adapter/base.rb +0 -461
  47. data/lib/active_ldap/adapter/ldap.rb +0 -232
  48. data/lib/active_ldap/adapter/ldap_ext.rb +0 -69
  49. data/lib/active_ldap/adapter/net_ldap.rb +0 -288
  50. data/lib/active_ldap/adapter/net_ldap_ext.rb +0 -29
  51. data/lib/active_ldap/association/belongs_to.rb +0 -40
  52. data/lib/active_ldap/association/belongs_to_many.rb +0 -39
  53. data/lib/active_ldap/association/collection.rb +0 -80
  54. data/lib/active_ldap/association/has_many.rb +0 -40
  55. data/lib/active_ldap/association/has_many_wrap.rb +0 -55
  56. data/lib/active_ldap/association/proxy.rb +0 -89
  57. data/lib/active_ldap/associations.rb +0 -162
  58. data/lib/active_ldap/attributes.rb +0 -203
  59. data/lib/active_ldap/base.rb +0 -1510
  60. data/lib/active_ldap/callbacks.rb +0 -19
  61. data/lib/active_ldap/command.rb +0 -46
  62. data/lib/active_ldap/configuration.rb +0 -106
  63. data/lib/active_ldap/connection.rb +0 -142
  64. data/lib/active_ldap/distinguished_name.rb +0 -246
  65. data/lib/active_ldap/ldap_error.rb +0 -74
  66. data/lib/active_ldap/object_class.rb +0 -74
  67. data/lib/active_ldap/schema.rb +0 -299
  68. data/lib/active_ldap/timeout.rb +0 -75
  69. data/lib/active_ldap/timeout_stub.rb +0 -17
  70. data/lib/active_ldap/user_password.rb +0 -92
  71. data/lib/active_ldap/validations.rb +0 -76
  72. data/rails/plugin/active_ldap/README +0 -54
  73. data/rails/plugin/active_ldap/generators/scaffold_al/scaffold_al_generator.rb +0 -7
  74. data/rails/plugin/active_ldap/generators/scaffold_al/templates/ldap.yml +0 -21
  75. data/rails/plugin/active_ldap/init.rb +0 -12
  76. data/test/TODO +0 -2
  77. data/test/al-test-utils.rb +0 -381
  78. data/test/command.rb +0 -62
  79. data/test/config.yaml.sample +0 -6
  80. data/test/run-test.rb +0 -29
  81. data/test/test-unit-ext.rb +0 -2
  82. data/test/test-unit-ext/always-show-result.rb +0 -28
  83. data/test/test-unit-ext/priority.rb +0 -163
data/test/test_user.rb CHANGED
@@ -61,8 +61,18 @@ class TestUser < Test::Unit::TestCase
61
61
  assert(user.errors.invalid?(:sn))
62
62
  errors = %w(person organizationalPerson
63
63
  inetOrgPerson).collect do |object_class|
64
- "is required attribute (aliases: surname) by " +
65
- "objectClass '#{object_class}'"
64
+ if ActiveLdap.const_defined?(:GetTextFallback)
65
+ format = "is required attribute by objectClass '%s': aliases: %s"
66
+ user.gettext(format) % [object_class, "surname"]
67
+ else
68
+ format = _("%{fn} is required attribute by objectClass '%s': " \
69
+ "aliases: %s")
70
+ format = user.gettext(format)
71
+ format = format.gsub(/%\{fn\}/,
72
+ user.class.human_attribute_name("sn"))
73
+ format % [user.class.human_object_class_name(object_class),
74
+ user.class.human_attribute_name("surname")]
75
+ end
66
76
  end
67
77
  assert_equal(errors.sort, user.errors.on(:sn).sort)
68
78
  user.sn = ['User']
@@ -74,10 +84,10 @@ class TestUser < Test::Unit::TestCase
74
84
  user.user_certificate = certificate
75
85
  user.jpeg_photo = jpeg_photo
76
86
 
77
- assert(ActiveLdap::Base.schema.binary?('jpegPhoto'),
87
+ assert(ActiveLdap::Base.schema.attribute('jpegPhoto').binary?,
78
88
  'jpegPhoto is binary?')
79
89
 
80
- assert(ActiveLdap::Base.schema.binary?('userCertificate'),
90
+ assert(ActiveLdap::Base.schema.attribute('userCertificate').binary?,
81
91
  'userCertificate is binary?')
82
92
  assert_nothing_raised {user.save!}
83
93
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ruby-activeldap
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.2
7
- date: 2007-05-15 00:00:00 -07:00
6
+ version: 0.8.3
7
+ date: 2007-08-26 00:00:00 -07:00
8
8
  summary: Ruby/ActiveLdap is a object-oriented API to LDAP
9
9
  require_paths:
10
10
  - lib
@@ -31,112 +31,15 @@ post_install_message:
31
31
  authors:
32
32
  - Will Drewry
33
33
  - Kouhei Sutou
34
- files:
35
- - CHANGES
36
- - COPYING
37
- - LICENSE
38
- - Manifest.txt
39
- - README
40
- - Rakefile
41
- - TODO
42
- - benchmark/bench-al.rb
43
- - examples/config.yaml.example
44
- - examples/example.der
45
- - examples/example.jpg
46
- - examples/groupadd
47
- - examples/groupdel
48
- - examples/groupls
49
- - examples/groupmod
50
- - examples/lpasswd
51
- - examples/objects/group.rb
52
- - examples/objects/ou.rb
53
- - examples/objects/user.rb
54
- - examples/ouadd
55
- - examples/useradd
56
- - examples/useradd-binary
57
- - examples/userdel
58
- - examples/userls
59
- - examples/usermod
60
- - examples/usermod-binary-add
61
- - examples/usermod-binary-add-time
62
- - examples/usermod-binary-del
63
- - examples/usermod-lang-add
64
- - lib/active_ldap.rb
65
- - lib/active_ldap/adapter/base.rb
66
- - lib/active_ldap/adapter/ldap.rb
67
- - lib/active_ldap/adapter/ldap_ext.rb
68
- - lib/active_ldap/adapter/net_ldap.rb
69
- - lib/active_ldap/adapter/net_ldap_ext.rb
70
- - lib/active_ldap/association/belongs_to.rb
71
- - lib/active_ldap/association/belongs_to_many.rb
72
- - lib/active_ldap/association/collection.rb
73
- - lib/active_ldap/association/has_many.rb
74
- - lib/active_ldap/association/has_many_wrap.rb
75
- - lib/active_ldap/association/proxy.rb
76
- - lib/active_ldap/associations.rb
77
- - lib/active_ldap/attributes.rb
78
- - lib/active_ldap/base.rb
79
- - lib/active_ldap/callbacks.rb
80
- - lib/active_ldap/command.rb
81
- - lib/active_ldap/configuration.rb
82
- - lib/active_ldap/connection.rb
83
- - lib/active_ldap/distinguished_name.rb
84
- - lib/active_ldap/ldap_error.rb
85
- - lib/active_ldap/object_class.rb
86
- - lib/active_ldap/schema.rb
87
- - lib/active_ldap/timeout.rb
88
- - lib/active_ldap/timeout_stub.rb
89
- - lib/active_ldap/user_password.rb
90
- - lib/active_ldap/validations.rb
91
- - rails/plugin/active_ldap/README
92
- - rails/plugin/active_ldap/generators/scaffold_al/scaffold_al_generator.rb
93
- - rails/plugin/active_ldap/generators/scaffold_al/templates/ldap.yml
94
- - rails/plugin/active_ldap/init.rb
95
- - test/TODO
96
- - test/al-test-utils.rb
97
- - test/command.rb
98
- - test/config.yaml.sample
99
- - test/run-test.rb
100
- - test/test-unit-ext.rb
101
- - test/test-unit-ext/always-show-result.rb
102
- - test/test-unit-ext/priority.rb
103
- - test/test_adapter.rb
104
- - test/test_associations.rb
105
- - test/test_attributes.rb
106
- - test/test_base.rb
107
- - test/test_base_per_instance.rb
108
- - test/test_bind.rb
109
- - test/test_callback.rb
110
- - test/test_connection.rb
111
- - test/test_connection_per_class.rb
112
- - test/test_dn.rb
113
- - test/test_find.rb
114
- - test/test_groupadd.rb
115
- - test/test_groupdel.rb
116
- - test/test_groupls.rb
117
- - test/test_groupmod.rb
118
- - test/test_lpasswd.rb
119
- - test/test_object_class.rb
120
- - test/test_reflection.rb
121
- - test/test_schema.rb
122
- - test/test_user.rb
123
- - test/test_user_password.rb
124
- - test/test_useradd-binary.rb
125
- - test/test_useradd.rb
126
- - test/test_userdel.rb
127
- - test/test_userls.rb
128
- - test/test_usermod-binary-add-time.rb
129
- - test/test_usermod-binary-add.rb
130
- - test/test_usermod-binary-del.rb
131
- - test/test_usermod-lang-add.rb
132
- - test/test_usermod.rb
133
- - test/test_validation.rb
34
+ files: []
35
+
134
36
  test_files:
135
37
  - test/test_user.rb
136
38
  - test/test_usermod-binary-add-time.rb
137
39
  - test/test_usermod-lang-add.rb
138
40
  - test/test_attributes.rb
139
41
  - test/test_usermod-binary-add.rb
42
+ - test/test_connection_per_dn.rb
140
43
  - test/test_useradd.rb
141
44
  - test/test_validation.rb
142
45
  - test/test_object_class.rb
@@ -147,11 +50,11 @@ test_files:
147
50
  - test/test_useradd-binary.rb
148
51
  - test/test_bind.rb
149
52
  - test/test_usermod.rb
150
- - test/test_find.rb
151
53
  - test/test_adapter.rb
54
+ - test/test_find.rb
152
55
  - test/test_groupdel.rb
153
- - test/test_connection_per_class.rb
154
56
  - test/test_reflection.rb
57
+ - test/test_connection_per_class.rb
155
58
  - test/test_groupls.rb
156
59
  - test/test_callback.rb
157
60
  - test/test_connection.rb
data/CHANGES DELETED
@@ -1,397 +0,0 @@
1
- 0.8.2:
2
- * Added Net::LDAP support!
3
- * Loads of bug fixes and enhancements -- see SVN for a complete history!
4
- 0.8.1:
5
- * used Dependencies.load_paths.
6
- * check whether attribute name is available or not.
7
- * added test for find(:first, :attribute => 'xxx', :value => 'yyy').
8
- * supported ActiveSupport 1.4.0.
9
- * make the dual licensing of ruby-activeldap clear in the README.
10
- * followed edge Rails: don't use Reloadable::Subclasses if doesn't need.
11
- * added examples/.
12
- * removed debug code.
13
- * normalized attribute name to support wrong attribute names in MUST/MAY.
14
- * supported getting dn value by Base#[].
15
- * test/test_userls.rb: followed userls changes.
16
- * update the doc href.
17
- * provide a dumb example of how to use the old association(return_objects) style API with the new awesome API.
18
- * followed new API.
19
- * removed a finished task: support Reloadable::Subclasses.
20
-
21
- 0.8.0:
22
- * Makefile/gemspec system replaced with Rakefile + Hoe
23
- * Bugfix: Allow base to be empty
24
- * Add support for Date, DateTime, and Time objects (patch from Patrick Cole)
25
- * Add support for a :filter argument to override the default attr=val LDAP search filter in find_all() and find() (patch from Patrick Cole)
26
- * Add Base#update_attributes(hash) method which does bulk updates to attributes (patch from Patrick Cole) and saves immediately
27
- * API CHANGE: #attributes now returns a Hash of attribute_name => clone(attribute_val)
28
- * API CHANGE: #attribute_names now returns an alphabetically sorted list of attribute names
29
- * API CHANGE;
30
- * Added attributes=() as the implementation for update_attributes(hash) (without autosave)
31
- * API TRANSITION: Base#write is now deprecated. Please use Base#save
32
- * API TRANSITION: Added SaveError exception (which is a subclass of WriteError for now)
33
- * API TRANSITION: Base.connect() is now deprecated. Please use Base.establish_connection()
34
- * API TRANSITION: Base.close() is now deprecated. Please use Base.remove_connection()
35
- * API TRANSITION: :bind_format and :user of Base.establish_connection() are now deprecated. Please use :bind_dn
36
- * Added update_attribute(name, value) to update one attribute and save immediately
37
- * #delete -> #destroy
38
- * Base.destroy_all
39
- * Base.delete(id) & Base.delete_all(filter)
40
- * add Base.exists?(dnattr_val)
41
- * attr_protected
42
- * Base.update(dnattr_val, attributes_hash) - instantiate, update, save, return
43
- * Base.update_all(updates_hash, filter)
44
- * attribute_present?(attribute) - if not empty/nil
45
- * has_attribute?(attr_name) - if in hash
46
- * reload() (refetch from LDAP)
47
- * make save() return false on fail
48
- * make save!() raise EntryNotSaved exception
49
- * to_xml()
50
- * clear_active_connections!() -- Conn per class
51
- - make @@active_connections and name them by
52
- * base_class() (just return the ancestor)
53
- * Separate ObjectClass changes to live in ActiveLDAP::ObjectClass
54
- - add_objectclass
55
- - remove_objectclass
56
- - replace_objectclass
57
- - disallow direct objectclass access?
58
- # - e.g. Person.reset_column_information
59
- # - this would mean cleaner loading I think
60
- * support ActiveRecord::Validations.
61
- * support ActiveRecord::Callbacks.
62
- * rename to ActiveLdap from ActiveLDAP to integrate RoR easily and enforce
63
- many API changes.
64
-
65
- 0.7.4:
66
- * Bugfix: do not base LDAP::PrettyError on RuntimeError due to rescue evaluation.
67
- * Bugfix: :return_objects was overriding :objects in find and find_all
68
- * Rollup exception code into smaller space reusing similar code.
69
-
70
- 0.7.3:
71
- * Made has_many and belongs_to use :return_objects value
72
- * Force generation of LDAP constants on import - currently broken
73
-
74
- 0.7.2:
75
- * Stopped overriding Conn.schema in ldap/schema - now use schema2
76
- * Fix attributes being deleted when changing between objectclasses with shared attributes
77
- * Added schema attribute case insensitivity
78
- * Added case insensitivity to the attribute methods.
79
- * Added LDAP scope override support to ldap_mapping via :scope argument. (ldap_mapping :scope => LDAP::LDAP_SCOPE_SUBTREE, ...)
80
- * Fixed the bug where Klass.find() return nil (default arg for find/find_all now '*')
81
- * 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.
82
- * Hid away several exposed private class methods (do_bind, etc)
83
- * Undefined dnattr for a class now raises a ConfigurationError
84
- * Centralized all connection management code where possible
85
- * Added Base.can_reconnect? which returns true if never connected or below the :retries limit
86
- * 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| ...
87
- * Fixed object instantiation in Base#initialize when using full DNs
88
- * 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, ...)
89
- * Fixed reconnect bug in Base#initialize (didn't respect infinite retries)
90
- * Added(*) :timeout argument to allow timeouts on hanging LDAP connections
91
- * Added(*) :retry_on_timeout boolean option to allow disabling retries on timeouts
92
- * Added TimeoutError
93
- * Added(*) a forking timeout using SIGALRM to interrupt handling.
94
- * (*) Only works when RUBY_PLATFORM has "linux" in it
95
-
96
- 0.7.1:
97
- * Fix broken -W0 arg in activeldap.rb
98
- * attribute_method=: '' and nil converted to ldap-pleasing [] values
99
- * Added checks in write and search for connection down (to reconnect)
100
- * Fixed broken idea of LDAP::err2string exceptions. Instead took errcodes from ldap.c in Ruby/LDAP.
101
-
102
- 0.7.0:
103
- * ConnectionError thrown from #initialize when there is no connection and retry limit was exceeded
104
- * ConnectionError thrown when retries exceeded when no connection was created
105
- * Separated connection types: SSL, TLS, and plain using :method
106
- * Localized reconnect logic into Base.reconnect(force=false)
107
- * Fixed password_block evaluation bug in do_bind() which broke SIMPLE re-binds and broke reconnect
108
- * Add support for config[:sasl_quiet] in Base.connect
109
- * (Delayed a case sensitivity patch for object classes and attributes due to weird errors)
110
- * Add :retry_wait to Base.connect to determine the timeout before retrying a connection
111
- * Fixed ActiveLDAP::Base.create_object() - classes were enclosed in quotes
112
- * Added :ldap_scope Base.connect() argument to allow risk-seeking users to change the LDAP scope to something other than ONELEVEL.
113
- * 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.
114
- * Added scrubbing for :base argument into Base.connect() to make sure a ' doesn't get evaluated.
115
- * Refactored Base.connect(). It is now much cleaner and easier to follow.
116
- * Moved schema retrieval to after bind in case a server requires privileges to access it.
117
- * Reworked the bind process to be a little prettier. A lot of work to do here still.
118
- * Added LDAP::err2exception(errno) which is the groundwork of a coming overhaul in user friendly error handling.
119
- * Added support for Base::connect(.., :password => String, ...) to avoid stupid Proc.new {'foo'} crap
120
- * Add :store_password option. When this is set, :password is not cleared and :password_block is not re-evaluated on each rebind.
121
-
122
- 0.6.0:
123
- * Disallow blank DN attribute values on initialization
124
- * Fix bug reported by Maik Schmidt regarding object creation
125
- * Added error checking to disallow DN attribute value changes
126
- * Added AttributeAssignmentError (for above)
127
- * Import() and initialize() no longer call attribute_method=()
128
- * Added error condition if connection fails inside initialize()
129
- * Changes examples and tests to use "dc=localdomain"
130
- * has_many() entries no longer return nil when empty
131
-
132
- 0.5.9:
133
- * Change default base to dc=localdomain (as per Debian default).
134
- * schema2.rb:attr() now returns [] instead of '' when empty.
135
- * Lookup of new objects does not put dnattr()=value into the Base on lookup.
136
- * Scope is now use ONELEVEL instead of SUBTREE as it broke object boundaries.
137
- * Fixed @max_retries misuse.
138
- * Added do_connect retries.
139
- * Fixed find and find_all for the case - find_all('*').
140
- * Fixed broken creation of objects from anonymous classes.
141
- * Fixed broken use of ldap_mapping with anonymous classes.
142
-
143
- 0.5.8: Bugfix galore
144
- * Allow nil "prefix"
145
- * Fixed the dup bug with Anonymous patch.
146
- * (maybe) Fixed stale connection problems by attempting reconn/bind.
147
- * Hiding redefine warnings (for now)
148
-
149
- 0.5.7:
150
- * Fixed the @data.default = [] bug that daniel@nightrunner.com pointed out
151
- (and partially patched).
152
-
153
- 0.5.6:
154
- * Added support for foreign_key => 'dn' in has_many.
155
-
156
- 0.5.5:
157
- * Remove @@logger.debug entries during build
158
- * Building -debug and regular gems and tarballs
159
-
160
- 0.5.4:
161
- * Added Base#import to streamline the Base.find and Base.find_all methods
162
- - Speeds up find and find_all by not accessing LDAP multiple times
163
- for data we already have.
164
- * Added tests/benchmark which is a slightly modified version of excellent
165
- benchmarking code contributed by
166
- Ollivier Robert <roberto -_-AT-_- keltia.freenix.fr>.
167
-
168
- 0.5.3:
169
- * Changed attribute_method to send in associations
170
- - fixes belongs_to (with local_kay) and inheritance around that
171
-
172
- 0.5.2:
173
- * Make sure values are .dup'd when they come from LDAP
174
-
175
- 0.5.1:
176
- * Changed Schema2#class_attributes to return {:must => [], :may => []}
177
- * Fixed Base#must and Base#may to return with full SUPerclass requirements
178
-
179
- 0.5.0:
180
- * API CHANGE (as with all 0.x.0 changes) (towards ActiveRecord duck typing)
181
- - Base#ldapattribute now always returns an array
182
- - Base#ldapattribute(true) now returns a dup of an array, string, etc
183
- when appropriate (old default) - This is just for convenience
184
- - Base#ldapattribute returns the stored value, not just a .dup
185
- - Associations methods return objects by default instead of just names.
186
- Group.new('foo').members(false) will return names only.
187
- - Base.connect returns true as one might expect
188
- * Value validation and changing (binary, etc) occur prior to write, and
189
- not immediately on attribute_method=(value).
190
- * Attribute method validity is now determined /on-the-fly/.
191
- * Default log level set to OFF speeds up 'speedtest' by 3 seconds!
192
- (counters last point which added some slowness :)
193
- * Added Schema2#class_attributes which caches and fully supertype expands
194
- attribute lists.
195
- * Integrated Schema2#class_attributes with apply_objectclass which automagically
196
- does SUP traversal and automagically updates available methods on calls to
197
- #attributes, #method_missing, #validate, and #write
198
- * Added 'attributes' to 'methods' allowing for irb autocompletion and other
199
- normal rubyisms
200
- * Moved almost all validation to Base#validate to avoid unexpected exceptions
201
- being raised in seemingly unrelated method calls. This means that invalid
202
- objectClasses may be specified. This will only be caught on #write or
203
- a pre-emptive #validate. This goes for all attribute errors though.
204
- This also makes it possible to "break" objects by removing the 'top'
205
- objectclass and therefore the #objectClass method...
206
-
207
- 0.4.4:
208
- * Fixed binary subtype forcing:
209
- - was setting data as subtype ;binary even when not required
210
- * Added first set of unit tests.
211
- - These will be cleaned up in later releases as more tests are added.
212
- * Fixed subtype clobber non-subtype (unittest!)
213
- - cn and cn;lang-blah: the last loaded won
214
- * Fixed multivalued subtypes from being shoved into a string (unittest!)
215
- - an error with attribute_input_value
216
-
217
- 0.4.3:
218
- * Fixed write (add) bugs introduced with last change
219
- - only bug fixes until unittests are in place
220
-
221
- 0.4.2:
222
- * Added ruby-activeldap.gemspec
223
- * Integrated building a gem of 'ruby-activeldap' into Makefile.package
224
- * Added attr parsing cache to speed up repetitive calls: approx 13x speedup
225
- = 100 usermod-binary-add calls
226
- - Without attr parsing cache:
227
- real 13m53.129s
228
- user 13m11.350s
229
- sys 0m7.030s
230
- - With attr parsing cache:
231
- real 1m0.416s
232
- user 0m28.390s
233
- sys 0m2.380s
234
-
235
- 0.4.1:
236
- * Schema2 was not correctly parsing objectClass entries.
237
- - This is fixed for now but must be revisited.
238
-
239
- 0.4.0:
240
- * Added #<attribute>(arrays) argument which when true
241
- always returns arrays. e.g.
242
- irb> user.cn(true)
243
- => ['My Common Name']
244
- This makes things easier for larger programming tasks.
245
- * Added subtype support:
246
- - Uses Hash objects to specify the subtype
247
- e.g. user.userCertificate = {'binary' => File.read('mycert.der')}
248
- - Added recursive type enforcement along with the subtype handling
249
- - This required overhauling the #write method.
250
- - Please report any problems ASAP! :^)
251
- * Added automagic binary support
252
- - subtype wrapping done automatically
253
- - relies on X-NOT-HUMAN-READABLE flag
254
- * Added LDAP::Schema2 which is an extension of Ruby/LDAP::Schema
255
- - made Schema#attr generic for easy type dereferencing
256
- * Updated rdoc in activeldap.rb
257
- * Updated examples (poorly) to reflect new functionality
258
- * Added several private helper functions
259
-
260
- 0.3.6:
261
- * Fixed dn attribute value extraction on find and find_all
262
- - these may have grabbed the wrong value if a DN attr has
263
- multiple values.
264
- * Fixed Base.search to return all values as arrays and update
265
- multivalued ones correctly
266
- * Lowered the amount of default logging to FATAL only
267
-
268
- 0.3.5:
269
- * Moved to rubyforge.org!
270
-
271
- 0.3.4:
272
- * Changed license to Ruby's
273
-
274
- 0.3.3:
275
- * Changed Base.search to return an array instead of a hash of hashes
276
- * Change Base.search to take in a hash as its arguments
277
-
278
- 0.3.2:
279
- * Bug fix - fixed support for module'd extension classes (again!)
280
-
281
- 0.3.1:
282
- * Updated the documentation
283
- * Fixed ignoring of attrs argument in Base.search
284
- * Fixed mistake in groupls (using dnattr directly)
285
- * Fixed a mistake with overzealous dup'ing
286
-
287
- 0.3.0:
288
- * MORE API CHANGES (configuration.rb, etc)
289
- * Major overhaul to the internals!
290
- - removed @@BLAH[@klass] in lieu of defining
291
- class methods which contain the required values. This
292
- allows for clean inheritance of Base subclasses! Whew!
293
- - Added @@config to store the options currently in use
294
- after a Base.connect
295
- - Now cache passwords for doing reconnects
296
- - dnattr now accessible to the outside as a class method only
297
- * Added Base.search to wrap normal LDAP search for convenience.
298
- - This returns a hash of hashes with the results indexed first by
299
- full dn, then by attribute.
300
-
301
- 0.2.0:
302
- * API CHANGES:
303
- - Extension classes must be defined using map_to_ldap instead of setting
304
- random values in initialize
305
- - Base#find is now Base.find_all and is a class method
306
- - Base.find returns the first match a la Array#find
307
- - force_reload is gone in belongs_to and has_many created methods
308
- - hiding Base.new, Base.find, and Base.find_all from direct access
309
- * added uniq to setting objectClass to avoid stupid errors
310
- * fixed new object creation bug where attributes were added before the
311
- objectclass resulting in a violation (Base#write)
312
- * fixed attribute dereferencing in Base#write
313
- * fixed bug with .dup on Fixnums
314
- * methods created by has_many/belongs_to and find and find_all now take an
315
- optional argument dnattr_only which will return the value of dnattr for
316
- each result instead of a full object.
317
- * Base.connection=(conn) added for multiplexing connections
318
- * Added a manual to activeldap.rb which covers most usage of Ruby/ActiveLDAP
319
- * Base.connect(:try_sasl => true) should now work with GSSAPI if you are
320
- using OpenLDAP >= 2.1.29
321
-
322
- 0.1.8:
323
- * .dup all returned attribute values to avoid weirdness
324
- * .dup all assigned values to avoid weirdness
325
- * Changed default configuration.rb to use example.com
326
-
327
- 0.1.7:
328
- * Added support for non-unique DN attributes
329
- * Added authoritative DN retrieval with 'object.dn'
330
-
331
- 0.1.6:
332
- * Added Base.close method for clearing the existing connection (despite Ruby/LDAP's lack of .close)
333
-
334
- 0.1.5:
335
- * Fixed incorrect usage of @klass in .find (should .find be a class method?)
336
-
337
- 0.1.4:
338
- * Change WARN to INFO in associations.rb for has_many
339
-
340
- 0.1.3:
341
- * Fixed class name mangling
342
- * Added support for classes to take DNs as the initialization value
343
-
344
- 0.1.2:
345
- * Patch from Dick Davies: Try SSL before TLS
346
- * Log4r support
347
- * Better packaging (automated)
348
- * Work-around for SSL stupidity
349
- - SSLConn doesn't check if the port it connected to is really using SSL!
350
-
351
- 0.1.1:
352
- * Dynamic table class creation
353
- * SASL/GSSAPI disabled by default - doesn't work consistently
354
-
355
- 0.1.0:
356
- * Added foreign_key to has_many
357
- * Added local_key to belongs_to
358
- * Added primary_members to Group example
359
- * Added "nil" filtering to has_many
360
- * Packaged up with setup.rb
361
- * Added RDocs and better comments
362
-
363
- 0.0.9:
364
- * Separated extension classes from ActiveLDAP module
365
- * Cleaned up examples with new requires
366
-
367
- 0.0.8:
368
- * Added user and group scripting examples
369
- - usermod, userls, useradd, userdel
370
- - groupmod, groupls
371
-
372
- 0.0.7:
373
- * Cleaner authentication loop:
374
- - SASL (GSSAPI only), simple, anonymous
375
- * Added allow_anonymous option added (default: false)
376
-
377
- 0.0.6:
378
- * Write support cleaned up
379
- * Exception classes added
380
-
381
- 0.0.5:
382
- * LDAP write support added
383
-
384
- 0.0.4:
385
- * MUST and MAY data validation against schema using objectClasses
386
-
387
- 0.0.3:
388
- * LDAP attributes alias resolution and data mapping
389
-
390
- 0.0.2:
391
- * Associations: has_many and belongs_to Class methods added for Base
392
-
393
- 0.0.1:
394
- * Extension approach in place with example User and Group classes
395
-
396
- 0.0.0:
397
- * Basic LDAP read support in place with hard-coded OUs