cookbook 'openldap-server', '~> 0.9.2'
openldap-server (3) Versions 0.9.2 Follow3
Installs/Configures ldap
cookbook 'openldap-server', '~> 0.9.2', :supermarket
knife supermarket install openldap-server
knife supermarket download openldap-server
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
- Installs OpenLDAP from the package repo
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
0.9.2 failed this 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
0.9.2 failed this metric
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
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
0.9.2 failed this 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