Minor slapd config changes

This commit is contained in:
Luke Taylor 2014-02-11 14:23:54 +00:00
parent 6c35c33abe
commit 058b9debef
2 changed files with 11 additions and 10 deletions

View File

@ -2,6 +2,6 @@
rm -Rf build/openldap
mkdir -p build/openldap
/opt/local/libexec/slapd -h ldap://localhost:22389 -d -1 -f slapd.conf &
sleep 2
ldapadd -h localhost -p 22389 -D cn=admin,dc=springsource,dc=com -w password -x -f openldaptest.ldif
/usr/libexec/slapd -h ldap://localhost:22389 -d -1 -f slapd.conf &
sleep 3
ldapadd -h localhost -p 22389 -D cn=admin,dc=springsource,dc=com -w password -x -f openldaptest.ldif

View File

@ -1,7 +1,7 @@
include /opt/local/etc/openldap/schema/core.schema
include /opt/local/etc/openldap/schema/cosine.schema
include /opt/local/etc/openldap/schema/inetorgperson.schema
include /opt/local/etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/ppolicy.schema
pidfile ./build/slapd.pid
@ -14,8 +14,9 @@ modulepath /usr/lib/openldap/modules
# moduleload back_monitor.la
# moduleload back_perl.la
#disallow bind_anon
require authc
#allow bind_anon
allow bind_v2 bind_anon_dn
#require authc
access to dn.base=""
by * read
@ -39,7 +40,7 @@ access to attrs=userpassword
by anonymous =x
by * none
access to dn.subtree="ou=users,dc=qbe,dc=com"
access to dn.subtree="ou=users,dc=springsource,dc=com"
by self write
by * read