Initial version of ldap::auth for Fedora.
This commit is contained in:
parent
209c0b2450
commit
f400a5817c
1 changed files with 15 additions and 0 deletions
|
@ -90,6 +90,21 @@ class ldap::auth inherits ldap::client {
|
|||
require => Package["nscd"],
|
||||
}
|
||||
}
|
||||
Fedora: {
|
||||
package { "sssd":
|
||||
ensure => installed,
|
||||
}
|
||||
exec { "authconfig --enableldap --enableldapauth --ldapserver='${ldap_uri}' --ldapbasedn='${ldap_basedn}' --enablesssd --update":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => 'cat /etc/sysconfig/authconfig | egrep "^USELDAPAUTH=yes$|^USELDAP=yes$" | wc -l | egrep "^2$"',
|
||||
before => Service["sssd"],
|
||||
require => Package["sssd"],
|
||||
}
|
||||
service { "sssd":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
Ubuntu: {
|
||||
package { "ldap-auth-client":
|
||||
ensure => installed,
|
||||
|
|
Loading…
Add table
Reference in a new issue