Last Modified
2010-09-08 01:34:30 +0900
Requires
  • English
  • thread
  • erb
  • logger

Description

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

Author: Will Drewry License: See LICENSE and COPYING.txt Copyright 2004-2006 Will Drewry 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