$ldap_password = generate_password(24, $password_seed, "ldap")
$ldap_attribute = "uid"
- ensure_packages(["pam_ldap"])
+ ensure_packages(["pam_ldap", "ruby-augeas"])
file { "/etc/pam_ldap.conf":
ensure => "present",
mode => "0400",
module => "pam_ldap.so",
arguments => "ignore_unknown_user",
position => 'before *[type="password" and module="pam_unix.so"]',
+ require => Package["ruby-augeas"],
}
}
module => "pam_ldap.so",
arguments => "ignore_unknown_user",
position => "before *[type=\"$type\" and module=\"pam_unix.so\"]",
+ require => Package["ruby-augeas"],
}
}
}