Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class auth {
- 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",
- }
- }
Add Comment
Please, Sign In to add comment