base.rb

Path: lib/active_ldap/base.rb
Last Update: Fri Nov 16 15:28:47 +0000 2007
Error DeleteError LdapError AdapterNotSpecified OperationNotPermitted RequiredAttributeMissed LdifInvalid AttributeAssignmentError RequiredObjectClassMissed DistinguishedNameNotSetError StrongAuthenticationRequired ConnectionError SaveError EntryNotFound AuthenticationError EntryNotSaved UnknownAttribute ConnectionNotEstablished TimeoutError ConfigurationError AdapterNotFound DistinguishedNameInvalid ObjectClassError EntryInvalid EntryAlreadyExist Base DistinguishedName Ldif Reloadable::Deprecated Reloadable::Subclasses Enumerable Collection StandardError Children HasMany HasManyWrap BelongsToMany Proxy BelongsTo Common Find LDIF Delete Update GetText Parser GetTextSupport Base\n[lib/active_ldap/adapter/base.rb\nlib/active_ldap/adapter/ldap.rb\nlib/active_ldap/adapter/net_ldap.rb] Ldap NetLdap Normalize ActiveRecord::Callbacks ActiveRecord::Validations Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] lib/active_ldap/base.rb lib/active_ldap/schema.rb lib/active_ldap/ldif.rb lib/active_ldap/distinguished_name.rb lib/active_ldap/ldap_error.rb ClassMethods Associations ClassMethods HumanReadable lib/active_ldap/association/has_many_wrap.rb lib/active_ldap/association/has_many.rb lib/active_ldap/association/proxy.rb lib/active_ldap/association/children.rb lib/active_ldap/association/collection.rb lib/active_ldap/association/belongs_to_many.rb lib/active_ldap/association/belongs_to.rb HasManyUtils Association ClassMethods Tree Acts Common LDIF Delete Find Update Operations lib/active_ldap/get_text/parser.rb GetText ClassMethods Configuration Command lib/active_ldap/adapter/net_ldap.rb lib/active_ldap/adapter/ldap.rb Adapter GetTextSupport Normalize ClassMethods Attributes Escape Callbacks ClassMethods ObjectClass Helper Validations ClassMethods Connection GetTextFallback Populate Salt UserPassword ActiveLdap dot/f_1.png

activeldap - an OO-interface to LDAP objects inspired by ActiveRecord

Author: Will Drewry <will@alum.bu.edu> License: See LICENSE and COPYING.txt Copyright 2004-2006 Will Drewry <will@alum.bu.edu> Some portions Copyright 2006 Google Inc

Summary

ActiveLdap lets you read and update LDAP entries in a completely object oriented fashion, even handling attributes with multiple names seamlessly. It was inspired by ActiveRecord so extending it to deal with custom LDAP schemas is as effortless as knowing the ‘ou’ of the objects, and the primary key. (fix this up some)

Example

  irb> require 'active_ldap'
  > true
  irb> user = ActiveLdap::User.new("drewry")
  > #<ActiveLdap::User:0x402e...
  irb> user.cn
  > "foo"
  irb> user.common_name
  > "foo"
  irb> user.cn = "Will Drewry"
  > "Will Drewry"
  irb> user.cn
  > "Will Drewry"
  irb> user.save

Required files

English   thread   logger  

[Validate]