Explorar el Código

Minor slapd config changes

Luke Taylor hace 11 años
padre
commit
058b9debef
Se han modificado 2 ficheros con 11 adiciones y 10 borrados
  1. 3 3
      ldap/run_slapd.sh
  2. 8 7
      ldap/slapd.conf

+ 3 - 3
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
+/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

+ 8 - 7
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