aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-22 13:15:24 +0000
committerMichael Scherer <misc@mageia.org>2010-11-22 13:15:24 +0000
commitb0f50a11a982cf1d2288b8252a7c8cb53e4f0782 (patch)
tree0347f6036a3d15d875de52e97cd5c7e935d8a84c
parent8c050d2b88955a122b019ee314d6311e66947d4e (diff)
downloadpuppet-b0f50a11a982cf1d2288b8252a7c8cb53e4f0782.tar
puppet-b0f50a11a982cf1d2288b8252a7c8cb53e4f0782.tar.gz
puppet-b0f50a11a982cf1d2288b8252a7c8cb53e4f0782.tar.bz2
puppet-b0f50a11a982cf1d2288b8252a7c8cb53e4f0782.tar.xz
puppet-b0f50a11a982cf1d2288b8252a7c8cb53e4f0782.zip
- set the ldap password in /etc/ldap.secret
-rw-r--r--modules/pam/manifests/init.pp9
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",