Skip to content

jeremyevans/simple_ldap_authenticator

Repository files navigation

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

About

Simple authentication for Ruby using LDAP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages