{ case $operatingsystem { "centos": { $wantedpackages = [ "openldap-clients","nss_ldap" ] $pamdfiles = [ "system-auth-ac" ] } "ubuntu": { $wantedpackages = [ "openldap-utils","libnss-ldap" ] $pamdfiles = [ "common-auth","common-account","common-password","common-session" ] } } ### ## modify pam.d authentication system to check LDAP for passwords ### file {"/etc/pam.d/$pamdfiles": owner => root, group => root, mode => 644, source => "puppet:///auth/pam.d/$operatingsystem/$pamdfiles", } }
