ldap: Removed IPv6 support from server if IPv6 is not enabled on host.
This commit is contained in:
parent
f6cc316cb1
commit
871a98bc2a
2 changed files with 2 additions and 2 deletions
|
@ -464,7 +464,7 @@ class ldap::server {
|
||||||
if $::operatinsystemrelease !~ /^5\./ {
|
if $::operatinsystemrelease !~ /^5\./ {
|
||||||
file { "/etc/sysconfig/ldap":
|
file { "/etc/sysconfig/ldap":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => "puppet:///modules/ldap/ldap.sysconfig",
|
content => template("ldap/ldap.sysconfig.erb"),
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Options of slapd (see man slapd)
|
# Options of slapd (see man slapd)
|
||||||
SLAPD_OPTIONS="-f /etc/openldap/slapd.conf"
|
SLAPD_OPTIONS="-f /etc/openldap/slapd.conf<% if @ipv6enabled == 'false' %> -4<% end %>"
|
||||||
|
|
||||||
# At least one of SLAPD_LDAP, SLAPD_LDAPI and SLAPD_LDAPS must be set to 'yes'!
|
# At least one of SLAPD_LDAP, SLAPD_LDAPI and SLAPD_LDAPS must be set to 'yes'!
|
||||||
#
|
#
|
Loading…
Add table
Reference in a new issue