Skip to content
ActiveLdap provides an object oriented interface to LDAP. http://rubyforge.org/projects/ruby-activeldap/
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
benchmark
examples
lib
rails/plugin/active_ldap
test
CHANGES
COPYING
LICENSE
Manifest.txt
README
Rakefile
TODO

README

Ruby/ActiveLdap -- ruby library for object-oriented LDAP interction
Copyright (C) 2004-2006 Will Drewry <will@alum.bu.edu>, Kouhei Sutou <kou@cozmixng.org>
Contributors:
 * Dick Davies <rasputnik@hellooperator.net>
 * Nathan Kinder <quicksilver02@mac.com>
 * Patrick Cole <pac@independent.com.au>
 * Google Inc.

DESCRIPTION
'Ruby/ActiveLdap' is a ruby extension library which provides a clean objected
oriented interface to the Ruby/LDAP[0] library.  It was inspired by
ActivRecord[2]. This is not nearly as clean or as flexible as ActiveRecord, but
it is still trivial to define new objects and manipulate them with minimal
difficulty.

For example and usage - read the rdoc in doc/ from lib/activeldap.rb.
It is also available on the web at:

http://ruby-activeldap.rubyforge.org/

PREREQUISITES

  * Ruby 1.8.x [1]
  * Ruby/LDAP [0]
  * Log4r [4]
  * ActiveRecord [2]
  * (Optional) Ruby/LDAP+GSSAPI [3]
  * An LDAP server compatible with Ruby/LDAP: OpenLDAP, etc


NOTES

  * Only GSSAPI SASL support exists due to Ruby/LDAP limitations
  * The API is subject to change as this package slowly approaches 1.0.0


INSTALL

  - Edit active_ldap/configuration.rb with your LDAP preferences
  - Run -
    sudo rake install

RAILS

There is a small rails plugin included that allows the use of a file named
'ldap.yml' in the config directory of your rails app. This file has a similar
function to the 'database.yml' file that allows you to set your database 
connection settings per environment. Similarly, the ldap.yml file allows 
settings to be set for development, test, and production environments. For 
instance, the development entry would look something like the following:

          development:
            host: 127.0.0.1
            port: 389
            base: dc=localhost
            bind_dn: cn=admin,dc=localhost
            password: secret


To install, simply copy the rails/plugin/active_ldap folder into the
vendor/plugins directory of your rails application and create config/ldap.yml.
When your application starts up, the plugin will call #establish_connection
using the parameters specified for your current environment.
          

LICENCE

This program is free software; you can redistribute it and/or modify it.  It is
dual licensed under Ruby's license and under the terms of the GNU General
Public License as published by the Free Software Foundation; either version 2,
or (at your option) any later version.

Please see the file LICENSE for the terms of the licence.


REFERENCES

[0] - http://ruby-ldap.sourceforge.net
[1] - http://www.ruby-lang.org
[2] - http://activerecord.rubyonrails.org
[3] - http://caliban.org/files/redhat/RPMS/i386/ruby-ldap-0.8.2-4.i386.rpm
[4] - http://log4r.sourceforge.net/



Something went wrong with that request. Please try again.