]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-meta/data/setup.sh
fix ITS#3464
[openldap] / servers / slapd / back-meta / data / setup.sh
index 92fb0eeada0a954e97abec696d4fffb7c060ed59..178644a55cbb3495cdd9fd12b6dd259b420a209c 100644 (file)
@@ -27,13 +27,13 @@ ln -s "$SRCDIR/libraries/liblunicode" ucdata
 for i in 1 2 3 ; do
        echo "Feeding directory $i"
        mkdir -p "$METADBDIR/$i"
-       $SLAPADD -f $ADDCONF -n $i -l meta-$i.ldif
+       $SLAPADD -f $ADDCONF -n `expr $i + 1` -l meta-$i.ldif
 done
 
 echo ""
 echo "After slapd started, try"
 echo ""
-echo "    ldapsearch -x -H ldap://localhost:$PORT -b '' -s base namingContexts"
+echo "    ldapsearch -x -H ldap://:$PORT/ -b '' -s base namingContexts"
 echo ""
 echo "and browse the directory using the last base that appears;"
 echo "you may also try to bind as administrator of each subdirectory"
@@ -42,7 +42,7 @@ echo "to attrs \"sn\" and \"cn\" of some entries based on the ACLs ..."
 echo ""
 
 echo "Starting slapd on port $PORT"
-$SRCDIR/servers/slapd/slapd -f $CONF -h "ldap://localhost:$PORT/" -d $DEBUG
+$SRCDIR/servers/slapd/slapd -f $CONF -h "ldap://:$PORT/" -d $DEBUG
 echo "Waiting 2 secs for everything to shut down ..."
 sleep 2