diff --git a/ldap/run_slapd.sh b/ldap/run_slapd.sh index c8284b366f..6bdaaacb70 100755 --- a/ldap/run_slapd.sh +++ b/ldap/run_slapd.sh @@ -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 \ No newline at end of file +/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 diff --git a/ldap/slapd.conf b/ldap/slapd.conf index ea07fd79ac..839d80b277 100755 --- a/ldap/slapd.conf +++ b/ldap/slapd.conf @@ -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