Path: | lib/active_ldap/base.rb |
Last Update: | Sun Jun 15 15:48:49 +0000 2008 |
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
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)
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