Supported ActiveRecord 2.3.8 and Rails 2.3.8.
Fixed gem dependencies in Rakefile. [zachwily]
Fixed a bug that setting ‘false’ but ‘nil’ is returned. [Hideyuki Yasuda]
Supported non-String attribute value as LDIF value. [Matt Mencel]
Worked with a LDAP server that uses ‘objectclass’ not ‘objectClass’ as objectClass attribute name. [Tim Hermans]
Provide SASL-option support, primarily for authzid
Error with to_xml [ilusi0n.x]
Accept ‘0’ and ‘1’ as boolean value [projekttabla]
Fixed inverted validatation by validate_excluded_classes
Supported DN attribute value for assosiation replacement.
Supported ActiveRecord 2.3.5 and Rails 2.3.5.
Supported GetText 2.1.0 and Locale 2.0.5.
belongs_to(:many) support DN attribute.
ActiveLdap::Base#attributes returns data that reflects
schema definition. [Alexey.Chebotar]
blocks DN attribute change by mass assignment with :id => .…
fix has_many association is broken. [culturespy]
Supported nested attribute options. [Hideyuki Yasuda]
Supported ActiveRecord 2.3.4 and Rails 2.3.4.
Inconsistant DN handling in object attributes [Marc Dequènes]
(ActiveLdap::Base#dn and ActiveLdap::Base#base return ActiveLdap::DN not String)
support operational attributes detection [Marc Dequènes]
Error saving an ActiveLDAP user [brad@lucky-dip.net]
Raised on modify_rdn_entry when rdn already exists [Alexey.Chebotar]
Added ActiveLdap::DN.parent.
Supported renaming an entry. Renaming other DTI is only supported by JNDI backend.
Improved tutorial. [Kazuaki Takase]
Improvements:
API:
Supported to_xml for associations. [achemze]
ActiveLdap::Base.delete_all(filter=nil, options={}) -> ActiveLdap::Base.delete_all(filter_or_options={}). Sure, old method signature is also still supported.
belongs_to(:many) with :foreign_key is deprecated. Use :primary_key instead of :foreign_key. [Kazuaki Takase]
Means of has_many’s :primary_key and :foreign_key are inverted.
Added ldap_field ActionView helper to
generate form fileds for a LDAP entry.
Suppressed needless attributes updating.
Dependencies:
Re-supported GetText.
ActiveRecord 2.3.2 is only supported.
Added documents in Japanese. [Kazuaki Takase]
Supported Ruby 1.9.1.
Running Tests [Alexey.Chebotar] |
Supported Rails 2.3.2.
Running WEBrick Hangs [Alexey.Chebotar] |
Bug fixes:
Fixed blank values detection. [David Morton]
Ruby 1.8.6 p287 | Undefined methods [Alexey.Chebotar] |
Fixed gem loading. [Tiago Fernandes]
Fixed DN change via #. [David Morton]
Fixed infinite retry on timeout.
Fixed needless reconnection.
API improvements:
Removed needless instance methods: #, #, #, #, #, # and #. [David Morton]
Removed obsolete scafoold_al generator.
Reduced default :retry_limit.
Supported association as parameter. [Joe Francis]
Normalized schema attribute name. [Tim Hermans]
Suppressed AuthenticationError -> ConnectionError conversion on reconnection. [Kazuaki Takase]
Added ActiveLdap::Schema#dump.
ActiveLdap::Base.establish_connection -> ActiveLdap::Base.setup_connection.
Supported ActiveLdap::Base.find(:last).
Added convenient methods:
ActiveLdap::Base.first
ActiveLdap::Base.last
ActiveLdap::Base.all
Removed Base64 module use.
Improved LDIF parser.
Improved scheme parser.
Supported Base64 in XML serialization.
Supported TLS options.
Supported ActiveRecord 2.2.2.
Supported Ruby on Rails 2.2.2.
Used rails/init.rb and rails_generators/ directory structure convention for Rails and gem. rails/ directory will be removed after 1.0.2 is released.
AL-Admin migrated to Ruby on Rails 2.2.2 form 2.0.2.
Improved ActiveDirectory integration.
Accepted :class_name for belong_to and has_many option.
Improved default port guess.
Bug fixes:
ModifyRecord#load doesn’t operate atomic. [gwarf12]
to_xml supports :except option. [baptiste.grenier]
to_xml uses ActiveResource format. [baptiste.grenier]
Out of ranged GeneralizedTime uses Time.at(0) as fallback value.
ActiveLdap::Base#to_s uses #. [Kazuhiro NISHIYAMA]
Fixed excess prefix extraction. [Grzegorz Marszałek]
Skiped read only attribute validation. [しまさわらさん]
Treated “” as empty value. [Ted Lepich]
Reduced raising when DN value is invalid.
Fixed needless ’,’ is appeared. [michael.j.konopka]
Required missing ‘active_ldap/user_password’. [michael.j.konopka]
Returned entries if has_many :wrap has nonexistent entry.
Fixed type error on computing DN. [ery.lee]
“>=” filter operator doesn’t work. [id:dicdak]
ActiveLdap::Base.create doesn’t raise exception. [Alexey.Chebotar]
Fixed GetText integration.
Fixed ActiveLdap::Base.find with ActiveLdap::DN. (Reported by Jeremy Pruitt)
Fixed associated bugs. (Reported by CultureSpy)
Supported ActiveLdap::Base#attribute_present? with nonexistence attribute. (Reported by Matt Mencel)
Added ActiveLdap::Base#.to_ldif_record.
Improved inspect.
Supported ActiveSupport 2.1.0.
Fixed GSSAPI auth failure. [#18764] (Reported by Lennon Day-Reynolds)
Supported Symbol as :dn_attribute_value. [#18921] (Requested by Nobody)
Improved DN attribute detection. (Reported by Iain Pople)
Avoided unnecesally modify operation. (Reported by Tilo)
Implemented LDIF parser.
Improved validation:
Added some validations.
Fixed SINGLE-VALUE validation. [#17763] (Reported by Naoto Morishima)
Supported JNDI as backend.
Improved auto reconnection.
Supported Rails 2.0.2.
Improved performance. (4x)
[API CHANGE]: removed “’binary’ =>” from getter result.
e.g.:
before: user.user_certificate # => {"binary" => "..."} now: user.user_certificate # => "..."
Added :excluded_classed ldap_mapping option.
Logged operation time used for LDAP operation.
Improved API:
Accepted non String value for find(:value => XXX). (Suggested by Marc Dequèn)
Accepted DN as ActiveLdap::Base.new(XXX). (Reported by Jeremy Pruitt)
Treated empty password for smiple bind as anonymous bind. (Suggested by Bodaniel Jeans)
Ensured adding “objectClass” for find’s :attribute value. [#16946] (Suggested by Nobody)
Fixed a GeneralizedTime type casting bug. (Reported by Bodaniel Jeanes)
Supported :base and :prefix search/find option value escaping. (Suggested by David Morton)
Improved DN handling.
Supported attribute value validation by LDAP schema.
Changed RubyGems name: ruby-activeldap -> activeldap.
Removed Log4r dependency.
Supported lazy connection establishing.
[API CHANGE]: establish_connection doesn’t connect LDAP server.
[API CHANGE]: Removed ActiveLdap::Base#establish_connection.
Added ActiveLdap::Base#bind. (use this instead of #)
Supported implicit acts_as_tree.
[API CHANGE]: Supported type casting.
Supported :uri option in configuration.
Improved Rails integration:
Followed Rails 2.0 changes.
AL-Admin:
Supported lang parameter in URL.
Improved design a bit. (Please someone help us!)
Supported schema inspection.
Supported objectClass modifiation.
Rails plugin:
Added ActiveLdap::VERSION check.
Added model_active_ldap generator.
Renamed scaffold_al generator to scaffold_active_ldap.
Added AL-Admin Sample Rails app
Added Ruby-GetText-Package support
Added a Rails plugin
Improved schema handling
Improved performance
Many bug fixes
Added Net::LDAP support!
supported SASL Digest-MD5 authentication with Net::LDAP.
improved LDAP server support:
improved Sun DS support.
improved ActiveDirectory support. Thanks to Ernie Miller!
improved Fedora-DS support. Thanks to Daniel Pfile!
improved existing functions:
improved DN handling. Thanks to James Hughes!
improved SASL bind.
improved old API check.
improved schema handling. Thanks to Christoph Lipp!
improved filter notification.
updated documents:
updated Rails realted documenation. Thanks to James Hughes!
updated documentation for the changes between 0.7.1 and 0.8.0. Thanks to Buzz Chopra!
added new features:
added scaffold_al generator for Rails.
added required_classes to default filter value. Thanks to Jeff Hall!
added :recommended_classes option to ldap_mapping.
added :sort_by and :order options to find.
added ActiveLdap::Base#to_param for ActionController.
fixed some bugs:
fixed rake install/uninstall.
fixed typos. Thanks to Nobody!
fixed required_classes initialization. Thanks to James Hughes!
used Dependencies.load_paths.
check whether attribute name is available or not.
added test for find(:first, :attribute => ‘xxx’, :value => ‘yyy’).
supported ActiveSupport 1.4.0.
make the dual licensing of ruby-activeldap clear in the README.
followed edge Rails: don’t use Reloadable::Subclasses if doesn’t need.
added examples/.
removed debug code.
normalized attribute name to support wrong attribute names in MUST/MAY.
supported getting dn value by Base#[].
test/test_userls.rb: followed userls changes.
update the doc href.
provide a dumb example of how to use the old association(return_objects) style API with the new awesome API.
followed new API.
removed a finished task: support Reloadable::Subclasses.
Makefile/gemspec system replaced with Rakefile + Hoe
Bugfix: Allow base to be empty
Add support for Date, DateTime, and Time objects (patch from Patrick Cole)
Add support for a :filter argument to override the default attr=val LDAP search filter in find_all() and find() (patch from Patrick Cole)
Add Base#update_attributes(hash) method which does bulk updates to attributes (patch from Patrick Cole) and saves immediately
API CHANGE: # now returns a Hash of attribute_name => clone(attribute_val)
API CHANGE: # now returns an alphabetically sorted list of attribute names
API CHANGE;
Added attributes=() as the implementation for update_attributes(hash) (without autosave)
API TRANSITION: Base#write is now deprecated. Please use Base#save
API TRANSITION: Added SaveError exception (which is a subclass of WriteError for now)
API TRANSITION: Base.connect() is now deprecated. Please use Base.establish_connection()
API TRANSITION: Base.close() is now deprecated. Please use Base.remove_connection()
API TRANSITION: :bind_format and :user of Base.establish_connection() are now deprecated. Please use :bind_dn
Added update_attribute(name, value) to update one attribute and save immediately
# -> #
Base.destroy_all
Base.delete(id) & Base.delete_all(filter)
add Base.exists?(dnattr_val)
attr_protected
Base.update(dnattr_val, attributes_hash) - instantiate, update, save, return
Base.update_all(updates_hash, filter)
attribute_present?(attribute) - if not empty/nil
has_attribute?(attr_name) - if in hash
reload() (refetch from LDAP)
make save() return false on fail
make save!() raise EntryNotSaved exception
to_xml()
clear_active_connections!() — Conn per class
make @@active_connections and name them by
base_class() (just return the ancestor)
Separate ObjectClass changes to live in ActiveLDAP::ObjectClass
add_objectclass
remove_objectclass
replace_objectclass
disallow direct objectclass access?
support ActiveRecord::Validations.
support ActiveRecord::Callbacks.
rename to ActiveLdap from ActiveLDAP to integrate RoR easily and enforce many API changes.
Bugfix: do not base LDAP::PrettyError on RuntimeError due to rescue evaluation.
Bugfix: :return_objects was overriding :objects in find and find_all
Rollup exception code into smaller space reusing similar code.
Made has_many and belongs_to use :return_objects value
Force generation of LDAP constants on import - currently broken
Stopped overriding Conn.schema in ldap/schema - now use schema2
Fix attributes being deleted when changing between objectclasses with shared attributes
Added schema attribute case insensitivity
Added case insensitivity to the attribute methods.
Added LDAP scope override support to ldap_mapping via :scope argument. (ldap_mapping :scope => LDAP::LDAP_SCOPE_SUBTREE, …)
Fixed the bug where Klass.find() return nil (default arg for find/find_all now ’*’)
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.
Hid away several exposed private class methods (do_bind, etc)
Undefined dnattr for a class now raises a ConfigurationError
Centralized all connection management code where possible
Added Base.can_reconnect? which returns true if never connected or below the :retries limit
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| …
Fixed object instantiation in Base#initialize when using full DNs
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, …)
Fixed reconnect bug in Base#initialize (didn’t respect infinite retries)
Added(*) :timeout argument to allow timeouts on hanging LDAP connections
Added(*) :retry_on_timeout boolean option to allow disabling retries on timeouts
Added TimeoutError
Added(*) a forking timeout using SIGALRM to interrupt handling.
(*) Only works when RUBY_PLATFORM has “linux” in it
Fix broken -W0 arg in activeldap.rb
attribute_method=: ’’ and nil converted to ldap-pleasing [] values
Added checks in write and search for connection down (to reconnect)
Fixed broken idea of LDAP::err2string exceptions. Instead took errcodes from ldap.c in Ruby/LDAP.
ConnectionError thrown from # when there is no connection and retry limit was exceeded
ConnectionError thrown when retries exceeded when no connection was created
Separated connection types: SSL, TLS, and plain using :method
Localized reconnect logic into Base.reconnect(force=false)
Fixed password_block evaluation bug in do_bind() which broke SIMPLE re-binds and broke reconnect
Add support for config[:sasl_quiet] in Base.connect
(Delayed a case sensitivity patch for object classes and attributes due to weird errors)
Add :retry_wait to Base.connect to determine the timeout before retrying a connection
Fixed ActiveLDAP::Base.create_object() - classes were enclosed in quotes
Added :ldap_scope Base.connect() argument to allow risk-seeking users to change the LDAP scope to something other than ONELEVEL.
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.
Added scrubbing for :base argument into Base.connect() to make sure a ’ doesn’t get evaluated.
Refactored Base.connect(). It is now much cleaner and easier to follow.
Moved schema retrieval to after bind in case a server requires privileges to access it.
Reworked the bind process to be a little prettier. A lot of work to do here still.
Added LDAP::err2exception(errno) which is the groundwork of a coming overhaul in user friendly error handling.
Added support for Base::connect(.., :password => String, …) to avoid stupid Proc.new {‘foo’} crap
Add :store_password option. When this is set, :password is not cleared and :password_block is not re-evaluated on each rebind.
Disallow blank DN attribute values on initialization
Fix bug reported by Maik Schmidt regarding object creation
Added error checking to disallow DN attribute value changes
Added AttributeAssignmentError (for above)
Import() and initialize() no longer call attribute_method=()
Added error condition if connection fails inside initialize()
Changes examples and tests to use “dc=localdomain“
has_many() entries no longer return nil when empty
Change default base to dc=localdomain (as per Debian default).
schema2.rb:attr() now returns [] instead of ’’ when empty.
Lookup of new objects does not put dnattr()=value into the Base on lookup.
Scope is now use ONELEVEL instead of SUBTREE as it broke object boundaries.
Fixed @max_retries misuse.
Added do_connect retries.
Fixed find and find_all for the case - find_all(’*’).
Fixed broken creation of objects from anonymous classes.
Fixed broken use of ldap_mapping with anonymous classes.
Allow nil “prefix“
Fixed the dup bug with Anonymous patch.
(maybe) Fixed stale connection problems by attempting reconn/bind.
Hiding redefine warnings (for now)
Fixed the @data.default = [] bug that daniel@nightrunner.com pointed out (and partially patched).
Added support for foreign_key => ‘dn’ in has_many.
Remove @@logger.debug entries during build
Building -debug and regular gems and tarballs
Added Base#import to streamline the Base.find and Base.find_all methods
Speeds up find and find_all by not accessing LDAP multiple times for data we already have.
Added tests/benchmark which is a slightly modified version of excellent
benchmarking code contributed by Ollivier Robert
Changed attribute_method to send in associations
fixes belongs_to (with local_kay) and inheritance around that
Make sure values are .dup’d when they come from LDAP
Changed Schema2#class_attributes to return {:must => [], :may => []}
Fixed Base#must and Base#may to return with full SUPerclass requirements
API CHANGE (as with all 0.x.0 changes) (towards ActiveRecord duck typing)
Base#ldapattribute now always returns an array
Base#ldapattribute(true) now returns a dup of an array, string, etc when appropriate (old default) - This is just for convenience
Base#ldapattribute returns the stored value, not just a .dup
Associations methods return objects by default instead of just names. Group.new(‘foo’).members(false) will return names only.
Base.connect returns true as one might expect
Value validation and changing (binary, etc) occur prior to write, and not immediately on attribute_method=(value).
Attribute method validity is now determined /on-the-fly/.
Default log level set to OFF speeds up ‘speedtest’ by 3 seconds! (counters last point which added some slowness :)
Added Schema2#class_attributes which caches and fully supertype expands attribute lists.
Integrated Schema2#class_attributes with apply_objectclass which automagically does SUP traversal and automagically updates available methods on calls to #, #, #, and #
Added ‘attributes’ to ‘methods’ allowing for irb autocompletion and other normal rubyisms
Moved almost all validation to Base#validate to avoid unexpected exceptions being raised in seemingly unrelated method calls. This means that invalid objectClasses may be specified. This will only be caught on # or a pre-emptive #. This goes for all attribute errors though. This also makes it possible to “break” objects by removing the ‘top’ objectclass and therefore the # method...
Fixed binary subtype forcing:
was setting data as subtype ;binary even when not required
Added first set of unit tests.
These will be cleaned up in later releases as more tests are added.
Fixed subtype clobber non-subtype (unittest!)
cn and cn;lang-blah: the last loaded won
Fixed multivalued subtypes from being shoved into a string (unittest!)
an error with attribute_input_value
Fixed write (add) bugs introduced with last change
only bug fixes until unittests are in place
Added ruby-activeldap.gemspec
Integrated building a gem of ‘ruby-activeldap’ into Makefile.package
Added attr parsing cache to speed up repetitive calls: approx 13x speedup
100 usermod-binary-add calls
Without attr parsing cache: real 13m53.129s user 13m11.350s sys 0m7.030s With attr parsing cache: real 1m0.416s user 0m28.390s sys 0m2.380s
Schema2 was not correctly parsing objectClass entries.
This is fixed for now but must be revisited.
Added #
irb> user.cn(true) => ['My Common Name']
This makes things easier for larger programming tasks.
Added subtype support:
Uses Hash objects to specify the subtype e.g. user.userCertificate = {‘binary’ => File.read(‘mycert.der’)}
Added recursive type enforcement along with the subtype handling
This required overhauling the # method.
Please report any problems ASAP! :^)
Added automagic binary support
subtype wrapping done automatically
relies on X-NOT-HUMAN-READABLE flag
Added LDAP::Schema2 which is an extension of Ruby/LDAP::Schema
made Schema#attr generic for easy type dereferencing
Updated rdoc in activeldap.rb
Updated examples (poorly) to reflect new functionality
Added several private helper functions
Fixed dn attribute value extraction on find and find_all
these may have grabbed the wrong value if a DN attr has multiple values.
Fixed Base.search to return all values as arrays and update multivalued ones correctly
Lowered the amount of default logging to FATAL only
Moved to rubyforge.org!
Changed license to Ruby’s
Changed Base.search to return an array instead of a hash of hashes
Change Base.search to take in a hash as its arguments
Bug fix - fixed support for module’d extension classes (again!)
Updated the documentation
Fixed ignoring of attrs argument in Base.search
Fixed mistake in groupls (using dnattr directly)
Fixed a mistake with overzealous dup’ing
MORE API CHANGES (configuration.rb, etc)
Major overhaul to the internals!
removed @@BLAH[@klass] in lieu of defining class methods which contain the required values. This allows for clean inheritance of Base subclasses! Whew!
Added @@config to store the options currently in use after a Base.connect
Now cache passwords for doing reconnects
dnattr now accessible to the outside as a class method only
Added Base.search to wrap normal LDAP search for convenience.
This returns a hash of hashes with the results indexed first by full dn, then by attribute.
API CHANGES:
Extension classes must be defined using map_to_ldap instead of setting random values in initialize
Base#find is now Base.find_all and is a class method
Base.find returns the first match a la Array#find
force_reload is gone in belongs_to and has_many created methods
hiding Base.new, Base.find, and Base.find_all from direct access
added uniq to setting objectClass to avoid stupid errors
fixed new object creation bug where attributes were added before the objectclass resulting in a violation (Base#write)
fixed attribute dereferencing in Base#write
fixed bug with .dup on Fixnums
methods created by has_many/belongs_to and find and find_all now take an optional argument dnattr_only which will return the value of dnattr for each result instead of a full object.
Base.connection=(conn) added for multiplexing connections
Added a manual to activeldap.rb which covers most usage of Ruby/ActiveLDAP
Base.connect(:try_sasl => true) should now work with GSSAPI if you are using OpenLDAP >= 2.1.29
.dup all returned attribute values to avoid weirdness
.dup all assigned values to avoid weirdness
Changed default configuration.rb to use example.com
Added support for non-unique DN attributes
Added authoritative DN retrieval with ‘object.dn‘
Added Base.close method for clearing the existing connection (despite Ruby/LDAP’s lack of .close)
Fixed incorrect usage of @klass in .find (should .find be a class method?)
Change WARN to INFO in associations.rb for has_many
Fixed class name mangling
Added support for classes to take DNs as the initialization value
Patch from Dick Davies: Try SSL before TLS
Log4r support
Better packaging (automated)
Work-around for SSL stupidity
SSLConn doesn’t check if the port it connected to is really using SSL!
Dynamic table class creation
SASL/GSSAPI disabled by default - doesn’t work consistently
Added foreign_key to has_many
Added local_key to belongs_to
Added primary_members to Group example
Added “nil” filtering to has_many
Packaged up with setup.rb
Added RDocs and better comments
Separated extension classes from ActiveLDAP module
Cleaned up examples with new requires
Added user and group scripting examples
usermod, userls, useradd, userdel
groupmod, groupls
Cleaner authentication loop:
SASL (GSSAPI only), simple, anonymous
Added allow_anonymous option added (default: false)
Write support cleaned up
Exception classes added
LDAP write support added
MUST and MAY data validation against schema using objectClasses
LDAP attributes alias resolution and data mapping
Associations: has_many and belongs_to Class methods added for Base
Extension approach in place with example User and Group classes
Basic LDAP read support in place with hard-coded OUs
Generated with the Darkfish Rdoc Generator 1.1.6.