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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
LDAP plugin for Infrataster
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'
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" }
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)