Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

openldap-server (3) Versions 0.9.2

Installs/Configures ldap

Policyfile
Berkshelf
Knife
cookbook 'openldap-server', '~> 0.9.2', :supermarket
cookbook 'openldap-server', '~> 0.9.2'
knife supermarket install openldap-server
knife supermarket download openldap-server
README
Dependencies
Quality 0%

openldap-server cookbook

Requirements

Ubuntu >= 10.04 or Debian >= 7.0.0

Requirement is based on slapd package minimum requirement of 2.4.

OpenLDAP 2.4 included the dynamic config option, which is what this cookbook uses

Usage

  • include_recipe 'openldap-server::default'

    • Installs OpenLDAP from the package repo
    • Configures a basic ldap database
    • Includes People, Groups, and Services OU containers
    • Includes the memberOf overlay
    • Includes ppolicy overlay
    • Sets up access controls/no unauthenticated access
  • Setup attributes listed below *

  • You can optionally supply your own ldif instead of using the provided *

Attributes

Main Options

Domain name to use which creates the suffix

node['openldap-server'][:domain] = 'default.com'

Root password for the LDAP database

This can and should be hashed and salted, use slappasswd to generate

node['openldap-server'][:rootpw] = 'default'

User attribute to use for root user

This ends up as "cn=admin,dc=example,dc=com"

node['openldap-server'][:root_user_attr] = "cn=admin"

Where do you want the ldap DB to be stored

node['openldap-server'][:db_dir] = '/var/lib/ldap'

You can use these options in your own template if you like

To supply your own ldif template/file to use

node['openldap-server'][:db_ldif] = 'db.ldif.erb'

Default Config Options (/etc/default/slapd)

default['openldap-server'][:default_config][:slapd_conf] = nil # SLAPD_CONF  
default['openldap-server'][:default_config][:slapd_user] = 'openldap' # SLAPD_USER  
default['openldap-server'][:default_config][:slapd_group] = 'openldap' # SLAPD_GROUP  
default['openldap-server'][:default_config][:slapd_pidfile] = nil # SLAPD_PIDFILE  
default['openldap-server'][:default_config][:slapd_services] = "ldap:/// ldapi:///" # SLAPD_SERVICES  
default['openldap-server'][:default_config][:slapd_nostart] = false # SLAPD_NO_START  
default['openldap-server'][:default_config][:slapd_sentinel_file] = '/etc/ldap/noslapd' # SLAPD_SENTINEL_FILE  
default['openldap-server'][:default_config][:slapd_kerb_file] = '/etc/krb5.keytab' # KRB_KTNAME  
default['openldap-server'][:default_config][:slapd_options] = nil # SLAPD_OPTIONS  

Recipes

openldap-server::install - Installs OpenLDAP

openldap-server::createdb - Creates basic DB

openldap-server::default - includes both install and createdb reciepes

Author

Author:: cpuguy83 (cpuguy83@gmail.com)

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.9.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.9.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.9.2 failed this metric

FC009: Resource attribute not recognised: openldap-server/recipes/install.rb:1
FC064: Ensure issues_url is set in metadata: openldap-server/metadata.rb:1
FC065: Ensure source_url is set in metadata: openldap-server/metadata.rb:1
FC066: Ensure chef_version is set in metadata: openldap-server/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.9.2 failed this metric

Failure: Cookbook should not contain binaries. Found:
openldap-server/files/default/slapd.tar.gz

Testing File Metric
            

0.9.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.9.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number