aboutsummaryrefslogtreecommitdiffstats
path: root/modules/pam/manifests/base.pp
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-22 01:53:27 +0100
committerOlivier Blin <dev@blino.org>2015-11-30 01:32:43 +0100
commitef7743c51e52ae5e142d592c6dae5df97f79194e (patch)
tree43cb7a9c35c9b7248ede982e071e2026b138e98d /modules/pam/manifests/base.pp
parent2a8e0a01982554b43a48b1e41cc2b965fdc4b5e0 (diff)
downloadpuppet-ef7743c51e52ae5e142d592c6dae5df97f79194e.tar
puppet-ef7743c51e52ae5e142d592c6dae5df97f79194e.tar.gz
puppet-ef7743c51e52ae5e142d592c6dae5df97f79194e.tar.bz2
puppet-ef7743c51e52ae5e142d592c6dae5df97f79194e.tar.xz
puppet-ef7743c51e52ae5e142d592c6dae5df97f79194e.zip
pam: use nss-pam-ldapd on Mageia >= 2
As detected by tmb on new valstar
Diffstat (limited to 'modules/pam/manifests/base.pp')
-rw-r--r--modules/pam/manifests/base.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/pam/manifests/base.pp b/modules/pam/manifests/base.pp
index d4143b78..cfeff23d 100644
--- a/modules/pam/manifests/base.pp
+++ b/modules/pam/manifests/base.pp
@@ -1,6 +1,12 @@
class pam::base {
include pam::multiple_ldap_access
- package { ['pam_ldap','nss_ldap','nscd']: }
+ package { ['nscd']: }
+
+ if versioncmp($::lsbdistrelease, '2') < 0 {
+ package { ['pam_ldap','nss_ldap']: }
+ } else {
+ package { ['nss-pam-ldapd']: }
+ }
service { 'nscd':
require => Package['nscd'],