aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/pam/manifests/init.pp10
-rw-r--r--modules/pam/templates/nsswitch.conf16
2 files changed, 25 insertions, 1 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp
index 07f2214a..0accd63a 100644
--- a/modules/pam/manifests/init.pp
+++ b/modules/pam/manifests/init.pp
@@ -10,7 +10,15 @@ class pam {
owner => root,
group => root,
mode => 644,
- content => template("openldap/system-auth")
+ content => template("pam/system-auth")
+ }
+
+ file { "nsswitch.conf":
+ path => "/etc/nsswitch.conf",
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("pam/system-auth")
}
}
diff --git a/modules/pam/templates/nsswitch.conf b/modules/pam/templates/nsswitch.conf
new file mode 100644
index 00000000..f797885d
--- /dev/null
+++ b/modules/pam/templates/nsswitch.conf
@@ -0,0 +1,16 @@
+passwd: files ldap [UNAVAIL=return]
+shadow: files ldap [UNAVAIL=return]
+group: files ldap [UNAVAIL=return]
+hosts: files mdns4_minimal [NOTFOUND=return] dns
+bootparams: files
+ethers: files
+netmasks: files
+networks: files
+protocols: files
+rpc: files
+services: files
+netgroup: files ldap
+publickey: files
+automount: files
+aliases: files
+