diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openldap/manifests/init.pp | 2 | ||||
-rw-r--r-- | modules/openldap/templates/slapd.conf | 9 | ||||
-rw-r--r-- | modules/openldap/templates/slapd.test.conf | 10 |
3 files changed, 11 insertions, 10 deletions
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp index 417abd21..3d55cb5f 100644 --- a/modules/openldap/manifests/init.pp +++ b/modules/openldap/manifests/init.pp @@ -70,7 +70,7 @@ class openldap { } file { '/etc/openldap/slapd.conf': - content => template("openldap/slapd.conf"), + content => template("openldap/slapd.conf", "openldap/slapd.test.conf"), } file { '/etc/sysconfig/ldap': diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf index 71721dc5..84600e36 100644 --- a/modules/openldap/templates/slapd.conf +++ b/modules/openldap/templates/slapd.conf @@ -112,13 +112,4 @@ 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 diff --git a/modules/openldap/templates/slapd.test.conf b/modules/openldap/templates/slapd.test.conf new file mode 100644 index 00000000..355efb8e --- /dev/null +++ b/modules/openldap/templates/slapd.test.conf @@ -0,0 +1,10 @@ +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 + |