This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install jeremyevans-simple_ldap_authenticator
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Nov 03 19:29:28 -0800 2008 | |
| |
LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
simple_ldap_authenticator.gemspec | Mon Jul 07 10:43:38 -0700 2008 |
SimpleLdapAuthenticator
=======================
Allows for simple authentication to an LDAP server with a minimum of
configuration. Requires either Ruby/LDAP or Net::LDAP.
Usage is fairly simple:
require 'simple_ldap_authenticator'
SimpleLdapAuthenticator.servers = %w'dc1.domain.com dc2.domain.com'
SimpleLdapAuthenticator.use_ssl = true
SimpleLdapAuthenticator.login_format = '%s @domain.com'
SimpleLdapAuthenticator.logger = RAILS_DEFAULT_LOGGER
class LoginController < ApplicationController
def login
return redirect_to(:action=>'try_again') unless \
SimpleLdapAuthenticator.valid?(params[:username], \
params[:password])
session[:username] = params[:username]
end
end
github: http://github.com/jeremyevans/simple_ldap_authenticator/tree/master












