dyninc/infrataster-plugin-ldap

Name: infrataster-plugin-ldap

Owner: Dyn Inc

Description: LDAP Test Plugin for Infrataster

Created: 2014-12-10 21:07:25.0

Updated: 2014-12-17 14:47:56.0

Pushed: 2014-12-17 14:47:55.0

Homepage: null

Size: 146

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

infrataster-plugin-ldap

LDAP plugin for Infrataster

Installation

Add this line to your Gemfile:

gem 'infrataster-plugin-ldap'

And then add the following line to your spec_helper.rb:

require 'infrataster-plugin-ldap'
Usage
ribe server(:master) do
scribe ldap("dc=mydomain,dc=com") do
it "accepts bind requests" do
  expect(bind.code).to eq 0
end
it "can create a top level object" do
  result = add_result("dc=mydomain,dc=com",
                       {
                         :objectclass => [ "top", "dcObject", "organization"],
                         :o => "mydomain"
                       }
                     )
  expect(result.code).to eq 0
end
d

You can specify LDAP by options passed to Infrataster::Server.define:

ataster::Server.define(
...
ap: { basedn: "dc=mydomain,dc=com", username: "cn=admin,dc=mydomain,dc=com", password: "mypassword" }

Contributing
  1. Fork it ( https://github.com/[my-github-username]/infrataster-plugin-ldap/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.