Project

ldap-rails

0.01
No commit activity in last 3 years
No release in over 3 years
Generator that enabled LDAP authentication with a single command.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.3.1
~> 3.1.0
 Project Readme

LDAP-Rails

Radically simple LDAP authentication

ldap-rails is a Rails plugin that makes it easy to authenticate users against your organization's LDAP server.

It's designed for Rails 3.1 and above.

ldap-rails is developed and maintained by Ben Weissmann. If you have bug reports or feature requests, please file an issue or email me at ben@benweissmann.com.

Setup

  1. Add "gem ldap-rails" to your Gemfile.
  2. Run "bundle install" to install the new gem.
  3. Run "rails generate ldap_auth ldap.your-org.com"

That's it. You're done. Users will be presented with a login form when they visit your site, and will need to log in with LDAP before they can access your site.

Configuration

ldap-rails will try to guess your LDAP server's configuration based on the the URL you give to the rails generate command. Note that you can specify the for as part of the URL -- for example, if your LDAP server runs on port 1000, use "rails generate ldap_auth ldap.your-org.com:1000". ldap-rails will automatically try to use and SSL connection to your LDAP server if your LDAP server is on port 636.

You can customize the LDAP connection configuration after you've run the generator in config/initializer/ldap_auth.rb. See the instruction in that file for more detail.

Roadmap

Planned features:

  • Access control based on LDAP groups.
  • Integration with ActiveRecord to easily store authenticated users in your database.

License

ldap-rails is licensed under the MIT license. See LICENSE.txt for details.