Changed CentOS 6 LDAP server to use config file instead config in LDAP database.
This commit is contained in:
parent
07443fc349
commit
46ec53353d
1 changed files with 14 additions and 2 deletions
|
@ -374,18 +374,30 @@ class ldap::server {
|
||||||
require => Package["openldap-server"],
|
require => Package["openldap-server"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $operatingsystem == "CentOS" and $operatinsystemrelease !~ /^5\./ {
|
||||||
|
file { "/etc/sysconfig/ldap":
|
||||||
|
ensure => present,
|
||||||
|
source => "puppet:///modules/ldap/ldap.sysconfig",
|
||||||
|
mode => 0644,
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
notify => Service["slapd"],
|
||||||
|
require => Package["openldap-server"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
file { "/srv/ldap/DB_CONFIG":
|
file { "/srv/ldap/DB_CONFIG":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => [ "puppet:///files/ldap/DB_CONFIG.${fqdn}",
|
source => [ "puppet:///files/ldap/DB_CONFIG.${fqdn}",
|
||||||
"puppet:///files/ldap/DB_CONFIG",
|
"puppet:///files/ldap/DB_CONFIG",
|
||||||
"puppet:///modules/ldap/DB_CONFIG", ],
|
"puppet:///modules/ldap/DB_CONFIG", ],
|
||||||
mode => 0644,
|
mode => 0644,
|
||||||
owner => root,
|
owner => "root",
|
||||||
group => $operatingsystem ? {
|
group => $operatingsystem ? {
|
||||||
"openbsd" => "wheel",
|
"openbsd" => "wheel",
|
||||||
default => "root",
|
default => "root",
|
||||||
},
|
},
|
||||||
require => Package["openldap-server"],
|
require => File["/srv/ldap"]
|
||||||
}
|
}
|
||||||
|
|
||||||
ldap::server::schema { "apple-auth": }
|
ldap::server::schema { "apple-auth": }
|
||||||
|
|
Loading…
Add table
Reference in a new issue