aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openldap')
-rw-r--r--modules/openldap/manifests/config.pp2
-rw-r--r--modules/openldap/manifests/init.pp2
-rw-r--r--modules/openldap/manifests/slave_instance.pp2
-rw-r--r--modules/openldap/manifests/var.pp6
-rw-r--r--modules/openldap/templates/mandriva-dit-access.conf2
-rw-r--r--modules/openldap/templates/slapd.conf2
6 files changed, 6 insertions, 10 deletions
diff --git a/modules/openldap/manifests/config.pp b/modules/openldap/manifests/config.pp
index ee8a3187..336f8a23 100644
--- a/modules/openldap/manifests/config.pp
+++ b/modules/openldap/manifests/config.pp
@@ -2,6 +2,6 @@ define openldap::config($content) {
file { $name:
require => Package['openldap-servers'],
content => $content,
- notify => Exec["/etc/init.d/${openldap::var::service} check"],
+ notify => Exec["slaptest"],
}
}
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp
index 7f97aa59..34a214a2 100644
--- a/modules/openldap/manifests/init.pp
+++ b/modules/openldap/manifests/init.pp
@@ -8,7 +8,7 @@ class openldap {
require => Openssl::Self_signed_cert["ldap.${::domain}"],
}
- exec { "/etc/init.d/${openldap::var::service} check":
+ exec { "slaptest":
refreshonly => true,
notify => Service[$openldap::var::service],
}
diff --git a/modules/openldap/manifests/slave_instance.pp b/modules/openldap/manifests/slave_instance.pp
index 0d66d607..fbf998c6 100644
--- a/modules/openldap/manifests/slave_instance.pp
+++ b/modules/openldap/manifests/slave_instance.pp
@@ -1,5 +1,5 @@
# TODO create the user for sync in ldap
-# this define is mainly syntaxic sugar
+# this define is mainly syntactic sugar
define openldap::slave_instance($rid) {
include openldap
class { 'openldap::slave':
diff --git a/modules/openldap/manifests/var.pp b/modules/openldap/manifests/var.pp
index 772ac22b..d6947eb8 100644
--- a/modules/openldap/manifests/var.pp
+++ b/modules/openldap/manifests/var.pp
@@ -1,7 +1,3 @@
class openldap::var {
- if versioncmp($::lsbdistrelease, '4') < 0 {
- $service = 'ldap'
- } else {
- $service = 'slapd'
- }
+ $service = 'slapd'
}
diff --git a/modules/openldap/templates/mandriva-dit-access.conf b/modules/openldap/templates/mandriva-dit-access.conf
index f9b7a98d..361d956b 100644
--- a/modules/openldap/templates/mandriva-dit-access.conf
+++ b/modules/openldap/templates/mandriva-dit-access.conf
@@ -66,7 +66,7 @@ access to dn.subtree="<%= dc_suffix %>"
by self write
by * none
# password history attribute
-# pwdHistory is read-only, but ACL is simplier with it here
+# pwdHistory is read-only, but ACL is simpler with it here
access to dn.subtree="<%= dc_suffix %>"
attrs=sambaPasswordHistory,pwdHistory
by self read
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index 20ecc944..d82fe088 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -68,7 +68,7 @@ access to dn.subtree="cn=Monitor"
database bdb
<% else %>
database mdb
-# mdb defaults to 10MB max DB, so we need to hardocde some better value :(
+# mdb defaults to 10MB max DB, so we need to hardcode some better value :(
maxsize 500000000
<% end %>
suffix "<%= dc_suffix %>"