diff options
-rw-r--r-- | modules/pam/manifests/init.pp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp index abe89b30..60efbbf3 100644 --- a/modules/pam/manifests/init.pp +++ b/modules/pam/manifests/init.pp @@ -26,7 +26,14 @@ class pam { content => template("pam/nsswitch.conf") } - $nssldap_password = extlookup("nssldap_password",'x') + $ldap_password = extlookup("${fqdn}_ldap_password",'x') + file { "ldap.secret": + path => "/etc/ldap.secret", + owner => root, + group => root, + mode => 600, + content => $ldap_password + } file { "ldap.conf": path => "/etc/ldap.conf", |