diff --git a/manifests/pamd/debian.pp b/manifests/pamd/debian.pp index 985ea8a..95d62c7 100644 --- a/manifests/pamd/debian.pp +++ b/manifests/pamd/debian.pp @@ -8,7 +8,7 @@ ensure => present, owner => 'root', group => 'root', - mode => '0644' + mode => '0644', } file { "${pam::params::prefix_pamd}/common-account": @@ -33,12 +33,9 @@ if($pam::pamd::pam_ldap) { - #Class['ldap'] -> Class['pam::pamd::debian'] - file { '/etc/pam_ldap.conf': ensure => link, target => $pam::params::ldap_conf, - require => [ Class['ldap'], File[$pam::params::ldap_conf] ], } } diff --git a/manifests/params.pp b/manifests/params.pp index 70dd48c..35be0e7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,7 +4,7 @@ case $::osfamily { - 'Debian' : { + /(Debian|Ubuntu)/ : { $packages = [ 'libpam-ldap' ] $prefix_pamd = '/etc/pam.d' $owner = 'root'