2009-06-30 10:46:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
for i in $(grep directory phpldapadmin-demo.conf|awk '{print $2}'); do
|
2009-07-01 06:09:17 +00:00
|
|
|
rm -f $i/*.dbb $i/*.bdb $i/__db.??? $i/alock $i/log.*
|
2009-06-30 10:46:00 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
slapadd -b "dc=example.com" -l ldif-example.com
|
|
|
|
slapadd -b "dc=example,dc=com" -l ldif-example-com
|
|
|
|
slapadd -b "o=Simpsons" -l ldif-Simpsons
|
|
|
|
|
|
|
|
for i in $(grep directory phpldapadmin-demo.conf|awk '{print $2}'); do
|
|
|
|
chown -R ldap:ldap $i
|
|
|
|
done
|