aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/templates/slapd.conf
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-22 16:15:58 +0000
committerMichael Scherer <misc@mageia.org>2012-01-22 16:15:58 +0000
commite96b71026f10d86e245ccf32840f875e0096ca96 (patch)
treed0b7f761fd1c950e3a83e5c36359585df3676cfd /modules/openldap/templates/slapd.conf
parent3e0399d0dbbc101e870602b5e5574ec8e823102f (diff)
downloadpuppet-e96b71026f10d86e245ccf32840f875e0096ca96.tar
puppet-e96b71026f10d86e245ccf32840f875e0096ca96.tar.gz
puppet-e96b71026f10d86e245ccf32840f875e0096ca96.tar.bz2
puppet-e96b71026f10d86e245ccf32840f875e0096ca96.tar.xz
puppet-e96b71026f10d86e245ccf32840f875e0096ca96.zip
automatically fill the ldap on test vm ( denoted by the environment variable
set to test )
Diffstat (limited to 'modules/openldap/templates/slapd.conf')
-rw-r--r--modules/openldap/templates/slapd.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index 13f69a27..57e5cbab 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -113,9 +113,11 @@ constraint_attribute sshPublicKey regex "^ssh-[rd]sa [[:graph:]]+ [[:graph:]]+$"
#refint_attributes member
#refint_nothing "uid=LDAP Admin,ou=System Accounts,dc=example,dc=com"
+<% if environment == "test" %>
authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
- "uid=Account Admin,ou=System Accounts,<%= dc_suffix %>"
+ "cn=manager,<%= dc_suffix %>"
authz-regexp ^uid=([^,]+),cn=[^,]+,cn=auth$ uid=$1,ou=People,<%= dc_suffix %>
+<% end %>
include /etc/openldap/mandriva-dit-access.conf