5 SLAPADD="$SRCDIR/servers/slapd/tools/slapadd -v"
7 ADDCONF="./slapd-meta-plain.conf"
8 #ADDCONF="./slapd-meta-rewrite.conf"
9 #ADDCONF="./slapd-ldap-rewrite.conf"
11 LDAPADDCONF="./slapd-ldap-raw.conf"
13 LDAPCONF="./slapd-ldap.conf"
20 ln -s "$SRCDIR/servers/slapd/schema" .
21 ln -s "$SRCDIR/libraries/liblunicode" ucdata
23 echo "Feeding directory $i"
24 mkdir -p "$METADBDIR/$i"
25 $SLAPADD -f $ADDCONF -n $i -l meta-$i.ldif
28 sed "s/@PORT@/$PORT/" $ADDCONF > $CONF
29 sed "s/@PORT@/$PORT/" $LDAPADDCONF > $LDAPCONF
32 echo "After slapd started, try"
34 echo " ldapsearch -x -H ldap://localhost:$PORT -b '' -s base namingContexts"
36 echo "and browse the directory using the last base that appears;"
37 echo "you may also try to bind as administrator of each subdirectory"
38 echo "or as \"cn=Ando, ...\" with password \"ando\": notice what happens"
39 echo "to attrs \"sn\" and \"cn\" of some entries based on the ACLs ..."
42 echo "Starting slapd on port $PORT"
43 $SRCDIR/servers/slapd/slapd -f $CONF -h "ldap://localhost:$PORT/" -d $DEBUG
44 echo "Waiting 2 secs for everything to shut down ..."
50 rm -f schema ucdata $CONF $LDAPCONF