aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-23 22:02:11 +0000
committerMichael Scherer <misc@mageia.org>2011-01-23 22:02:11 +0000
commit0169a34c621ac55e714c576af672ffea3c0d04b0 (patch)
treeb608f40d9eb3512f08c4bfaee178aec4d999c4ca /modules/openldap
parentb87ade5150912b334894d0a08f07b97438a36298 (diff)
downloadpuppet-0169a34c621ac55e714c576af672ffea3c0d04b0.tar
puppet-0169a34c621ac55e714c576af672ffea3c0d04b0.tar.gz
puppet-0169a34c621ac55e714c576af672ffea3c0d04b0.tar.bz2
puppet-0169a34c621ac55e714c576af672ffea3c0d04b0.tar.xz
puppet-0169a34c621ac55e714c576af672ffea3c0d04b0.zip
add a secondary ldap tree for testing purpose, requested by maat
Diffstat (limited to 'modules/openldap')
-rw-r--r--modules/openldap/manifests/init.pp9
-rw-r--r--modules/openldap/templates/slapd.conf10
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp
index 6c8ea8ab..417abd21 100644
--- a/modules/openldap/manifests/init.pp
+++ b/modules/openldap/manifests/init.pp
@@ -60,6 +60,15 @@ class openldap {
content => template("openldap/mandriva-dit-access.conf"),
}
+ $ldap_test_password = extlookup("ldap_test_password",'x')
+ $ldap_test_directory = "/var/lib/ldap/test"
+ file { "$ldap_test_directory":
+ ensure => directory,
+ group => ldap,
+ owner => ldap,
+ mode => 644,
+ }
+
file { '/etc/openldap/slapd.conf':
content => template("openldap/slapd.conf"),
}
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index 4444e974..f2e2a9f2 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -108,3 +108,13 @@ access to dn.subtree="cn=Monitor"
by group.exact="cn=LDAP Admins,ou=System Groups,<%= dc_suffix %>" read
by * none
+database bdb
+suffix "dc=test_ldap"
+directory /var/lib/ldap/test
+rootdn "cn=manager,dc=test_ldap"
+rootpw "<%= ldap_test_password %>"
+authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
+ "cn=manager,dc=test_ldap"
+# force ssl
+security ssf=56
+