diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-22 02:04:04 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-22 02:04:04 +0000 |
commit | 9395c9d231dd4849d8ceaa33c687bf006212592d (patch) | |
tree | 17e15415d47691ed537ed25e01b1b42a0772031e /modules/pam | |
parent | 79028a21adb37cf4873edee55a305d2d777f6504 (diff) | |
download | puppet-9395c9d231dd4849d8ceaa33c687bf006212592d.tar puppet-9395c9d231dd4849d8ceaa33c687bf006212592d.tar.gz puppet-9395c9d231dd4849d8ceaa33c687bf006212592d.tar.bz2 puppet-9395c9d231dd4849d8ceaa33c687bf006212592d.tar.xz puppet-9395c9d231dd4849d8ceaa33c687bf006212592d.zip |
- add nssldap password handling
Diffstat (limited to 'modules/pam')
-rw-r--r-- | modules/pam/manifests/init.pp | 3 | ||||
-rw-r--r-- | modules/pam/templates/ldap.conf | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp index 210526c9..20a8f58a 100644 --- a/modules/pam/manifests/init.pp +++ b/modules/pam/manifests/init.pp @@ -20,6 +20,9 @@ class pam { mode => 644, content => template("pam/nsswitch.conf") } + + $nssldap_password = extlookup("nssldap_password") + file { "ldap.conf": path => "/etc/ldap.conf", owner => root, diff --git a/modules/pam/templates/ldap.conf b/modules/pam/templates/ldap.conf index 35575845..61f1bee7 100644 --- a/modules/pam/templates/ldap.conf +++ b/modules/pam/templates/ldap.conf @@ -1,4 +1,5 @@ - +binddn uid=nssldap,ou=System Accounts,<%= dc_suffix %> +bindpw <%= nssldap_password %> uri ldaps://ldap.<%= domain %> base <%= dc_suffix %> pam_lookup_policy no |