1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
{ 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", } } |

