Added dependency on authconfig package to kerberos, ldap and pam modules
Fixes #2.
This commit is contained in:
parent
18af82f97f
commit
5924caabe1
3 changed files with 16 additions and 6 deletions
|
@ -14,6 +14,8 @@
|
|||
#
|
||||
class ldap::auth inherits ldap::client {
|
||||
|
||||
include pam::common
|
||||
|
||||
tag("bootstrap")
|
||||
|
||||
$ldap_uri = inline_template('<%= ldap_server.join(" ") -%>')
|
||||
|
@ -31,7 +33,7 @@ class ldap::auth inherits ldap::client {
|
|||
before => [ Augeas["nslcd-conf"],
|
||||
Augeas["pam-ldap-conf"],
|
||||
File["/etc/openldap/ldap.conf"], ],
|
||||
require => Package["nss-pam-ldapd"],
|
||||
require => Package["authconfig", "nss-pam-ldapd"],
|
||||
}
|
||||
augeas { "nslcd-conf":
|
||||
changes => [ "set pagesize 500",
|
||||
|
@ -69,7 +71,7 @@ class ldap::auth inherits ldap::client {
|
|||
unless => 'cat /etc/sysconfig/authconfig | egrep "^USELDAPAUTH=yes$|^USELDAP=yes$" | wc -l | egrep "^2$"',
|
||||
before => [ Augeas["pam-ldap-conf"],
|
||||
File["/etc/openldap/ldap.conf"], ],
|
||||
require => Package["nss_ldap"],
|
||||
require => Package["authconfig", "nss_ldap"],
|
||||
}
|
||||
augeas { "pam-ldap-conf":
|
||||
context => "/files/etc/ldap.conf",
|
||||
|
@ -100,7 +102,7 @@ class ldap::auth inherits ldap::client {
|
|||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => 'cat /etc/sysconfig/authconfig | egrep "^USELDAPAUTH=yes$|^USELDAP=yes$" | wc -l | egrep "^2$"',
|
||||
before => Augeas["sssd-conf"],
|
||||
require => [ Package["sssd"], Package["pam_ldap"], ],
|
||||
require => Package["authconfig", "sssd", "pam_ldap"],
|
||||
}
|
||||
augeas { "sssd-conf":
|
||||
changes => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue