Guest User

Untitled

a guest
Jul 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. class auth {
  2. case $operatingsystem {
  3. "centos": {
  4. $wantedpackages = [ "openldap-clients","nss_ldap" ]
  5. $pamdfiles = [ "system-auth-ac" ]
  6. } "ubuntu": {
  7. $wantedpackages = [ "openldap-utils","libnss-ldap" ] $pamdfiles = [ "common-auth","common-account","common-password","common-session" ]
  8. }
  9. }
  10. ###
  11. ## modify pam.d authentication system to check LDAP for passwords
  12. ###
  13. file { "/etc/pam.d/$pamdfiles":
  14. owner => root,
  15. group => root,
  16. mode => 644,
  17. source => "puppet:///auth/pam.d/$operatingsystem/$pamdfiles",
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment