1 |
class pam { |
class pam { |
2 |
|
|
3 |
package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]: |
class base { |
4 |
ensure => installed, |
package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]: |
5 |
} |
ensure => installed, |
6 |
|
} |
7 |
|
|
8 |
file { "system-auth": |
file { "system-auth": |
9 |
path => "/etc/pam.d/system-auth", |
path => "/etc/pam.d/system-auth", |
10 |
owner => root, |
owner => root, |
11 |
group => root, |
group => root, |
12 |
mode => 644, |
mode => 644, |
13 |
content => template("openldap/system-auth") |
content => template("openldap/system-auth") |
14 |
} |
} |
15 |
|
} |
16 |
|
|
17 |
# for server where only admin can connect |
# for server where only admin can connect |
18 |
class admin_access { |
class admin_access inherits base { |
19 |
$access_class = "admin" |
$access_class = "admin" |
20 |
|
# not sure if this line is needed anymore, wil check later |
21 |
file { "system-auth": } |
file { "system-auth": } |
22 |
} |
} |
23 |
|
|
24 |
# for server where people can connect with ssh ( git, svn ) |
# for server where people can connect with ssh ( git, svn ) |
25 |
class commiters_access { |
class commiters_access inherits base { |
26 |
$access_class = "commiters" |
$access_class = "commiters" |
27 |
file { "system-auth": } |
file { "system-auth": } |
28 |
} |
} |