Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby interface to MIT Directory

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 mit-ldap.gemspec
README.md

mit-ldap

Ruby wrapper for the MIT LDAP server. Can only be used if on the MIT campus network. Leverages tpope's wonderful Ldaptic

Installation:

gem 'mit-ldap'

Usage:

require 'mit-ldap'
MIT::LDAP.connect! # => true
MIT::LDAP.search(:filter => '(uid=mrhalp)') # => any Ldaptic options/methods

# if the connection fails or expires

MIT::LDAP.connected? # => false
MIT::LDAP.connect! # => true (re-establishes connection)

Stubbing out the LDAP server in development can be difficult as it requires setting up a private LDAP server or continuously being on campus for development. This library maintains the expected interface (logger, search) that can be faked in the event where the connection cannot be made or has failed and cannot be made again.

Something went wrong with that request. Please try again.