/simple_ldap_authenticator

Simple authentication for Ruby using LDAP

Primary LanguageRubyOtherNOASSERTION

SimpleLdapAuthenticator
=======================

Allows for simple authentication to an LDAP server with a minimum of
configuration.  Requires either Ruby/LDAP or Net::LDAP.   

Example Usage:

  require 'simple_ldap_authenticator'
  require 'logger'

  SimpleLdapAuthenticator.servers = %w'dc1.domain.com dc2.domain.com'
  SimpleLdapAuthenticator.use_ssl = true
  SimpleLdapAuthenticator.login_format = '%s@domain.com'
  SimpleLdapAuthenticator.logger = Logger.new($stdout)

  SimpleLdapAuthenticator.valid?(username, password)
  # => true or false (or raise if there is an issue connecting to the server)

github: http://github.com/jeremyevans/simple_ldap_authenticator