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

RSS

openldap-server (3) Versions 0.9.0

Installs/Configures ldap

Berkshelf/Librarian
Policyfile
Knife
cookbook 'openldap-server', '= 0.9.0'
cookbook 'openldap-server', '= 0.9.0', :supermarket
knife cookbook site install openldap-server
knife cookbook site download openldap-server
README
Dependencies
Quality

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
    • 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[:ldap][:domain] = 'default.com'

Root password for the LDAP database
This can and should be hashed and salted, use slappasswd to generate
node[:ldap][:rootpw] = 'default'

User attribute to use for root user
This ends up as "cn=admin,dc=example,dc=com"
node[:ldap][:root_user_attr] = "cn=admin"

Where do you want the ldap DB to be stored
node[:ldap][: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[:ldap[:db_ldif] = 'db.ldif.erb'

Default Config Options (/etc/default/slapd)

default[:ldap][:default_config][:slapd_conf] = nil # SLAPD_CONF  
default[:ldap][:default_config][:slapd_user] = 'openldap' # SLAPD_USER  
default[:ldap][:default_config][:slapd_group] = 'openldap' # SLAPD_GROUP  
default[:ldap][:default_config][:slapd_pidfile] = nil # SLAPD_PIDFILE  
default[:ldap][:default_config][:slapd_services] = "ldap:/// ldapi:///" # SLAPD_SERVICES  
default[:ldap][:default_config][:slapd_nostart] = false # SLAPD_NO_START  
default[:ldap][:default_config][:slapd_sentinel_file] = '/etc/ldap/noslapd' # SLAPD_SENTINEL_FILE  
default[:ldap][:default_config][:slapd_kerb_file] = '/etc/krb5.keytab' # KRB_KTNAME  
default[:ldap][: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.

No quality metric results found