cookbook 'rest2ldap', '= 0.1.1'
rest2ldap (8) Versions 0.1.1 Follow1
Installs/Configures the OpenDJ Rest2Ldap LDAP Gateway
cookbook 'rest2ldap', '= 0.1.1', :supermarket
knife supermarket install rest2ldap
knife supermarket download rest2ldap
rest2ldap-cookbook
Installs and configures the OpenDJ Rest2Ldap Gateway in Tomcat
Supported Platforms
- Ubuntu
- 14.04
This is a fairly simple cookbook so it will likely work on other Ubuntu versions
as well as RHEL/CentOS platforms.
This allows you to to have a REST interface to an LDAP Directory server. Currently
tested with the following.
- OpenDJ
- Sun One Directory Server
Given the right configuration it should work with just about any directory server
including Active Directory.
Tunable Attributes
All tunable attributes are in the rest2ldap
hierarchy.
Key | Type | Description | Default |
---|---|---|---|
version |
String | Rest2Ldap version to download | 2.6.9 |
url |
String | Download URL | Calculated |
ldap_host |
String | LDAP Host | 'ldap.example.com' |
ldap_port |
Numeric | LDAP Port | 389 |
ldap_binddn |
String | LDAP Bind DN | 'cn=Directory Manager' |
ldap_bindpw |
String | LDAP Bind Password | empty |
ldap_searchbase |
String | LDAP Search Base | 'ou=people,dc=example,dc=com' |
ldap_searchscope |
String | LDAP Search Scope | 'sub' |
ldap_searchfilter |
String | LDAP Search Filter | '(&(objectClass=person)(uid=%s))' |
mappings |
String | List of URL mappings to create | See attribute example |
Important Note
The mappings look relatively complicated upon first inspection. The OpenDJ Admin
Guide has an appendix with some pretty good documentation.
http://opendj.forgerock.org/opendj-server/doc/admin-guide/#appendix-rest2ldap
Usage
rest2ldap
Installs and configures Rest2Ldap LDAP Gateway.
Configuration
Set the attributes to work in your environment.
License and Authors
- Author:: Matt Mencel (mr-mencel@wiu.edu)
Copyright:: 2014 Matt Mencel Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
tomcat ~> 0.16.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.1.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:117
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:66
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:129
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:130
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:131
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:169
FC044: Avoid bare attribute keys: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:117
0.1.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:117
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/recipes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:66
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:129
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:130
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:131
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/templates/default/opendj-rest2ldap-servlet.json.erb:169
FC044: Avoid bare attribute keys: /tmp/cook/6393f27a0fa134cfdefdd0ae/rest2ldap/attributes/default.rb:117