Sha256: e7e785fdcabfbfd2305b2f8da4724af63e40f687c595f3b9bbf8151bd18ffa00
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
# # Cookbook Name:: openldap # Recipe:: auth # # Copyright 2008-2009, Opscode, Inc. # # 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. # include_recipe "openldap::client" include_recipe "openssh" include_recipe "nscd" package "libnss-ldap" do action :upgrade end package "libpam-ldap" do action :upgrade end template "/etc/ldap.conf" do source "ldap.conf.erb" mode 00644 owner "root" group "root" end template "#{node['openldap']['dir']}/ldap.conf" do source "ldap-ldap.conf.erb" mode 00644 owner "root" group "root" end cookbook_file "/etc/nsswitch.conf" do source "nsswitch.conf" mode 00644 owner "root" group "root" notifies :run, "execute[nscd-clear-passwd]", :immediately notifies :run, "execute[nscd-clear-group]", :immediately notifies :restart, "service[nscd]", :immediately end %w{ account auth password session }.each do |pam| cookbook_file "/etc/pam.d/common-#{pam}" do source "common-#{pam}" mode 00644 owner "root" group "root" notifies :restart, "service[ssh]", :delayed end end template "/etc/security/login_access.conf" do source "login_access.conf.erb" mode 00644 owner "root" group "root" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infrataster-plugin-ldap-0.0.1 | spec/cookbooks/openldap/recipes/auth.rb |