Commit 20e7b455 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix args order to client tools; use -M instead of -e manageDSAit

parent c68bdb0c
...@@ -118,7 +118,7 @@ fi ...@@ -118,7 +118,7 @@ fi
BASEDN="o=Beispiel,c=DE" BASEDN="o=Beispiel,c=DE"
echo "modifying database \"$BASEDN\"..." echo "modifying database \"$BASEDN\"..."
$LDAPMODIFY -v -D "cn=Manager,$BASEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \ $LDAPMODIFY -v -D "cn=Manager,$BASEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \
-e manageDSAit >> $TESTOUT 2>&1 << EOMODS -M >> $TESTOUT 2>&1 << EOMODS
dn: cn=Added User,ou=Alumni Association,ou=People,$BASEDN dn: cn=Added User,ou=Alumni Association,ou=People,$BASEDN
changetype: add changetype: add
objectClass: OpenLDAPperson objectClass: OpenLDAPperson
...@@ -208,8 +208,8 @@ echo " attrs=\"'*' ref\"" ...@@ -208,8 +208,8 @@ echo " attrs=\"'*' ref\""
BASEDN="dc=example,dc=com" BASEDN="dc=example,dc=com"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
...@@ -220,8 +220,8 @@ fi ...@@ -220,8 +220,8 @@ fi
BASEDN="o=Example,c=US" BASEDN="o=Example,c=US"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
...@@ -232,8 +232,8 @@ fi ...@@ -232,8 +232,8 @@ fi
BASEDN="o=Esempio,c=IT" BASEDN="o=Esempio,c=IT"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
......
...@@ -118,7 +118,7 @@ fi ...@@ -118,7 +118,7 @@ fi
BASEDN="o=Beispiel,c=DE" BASEDN="o=Beispiel,c=DE"
echo "modifying database \"$BASEDN\"..." echo "modifying database \"$BASEDN\"..."
$LDAPMODIFY -v -D "cn=Manager,$BASEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \ $LDAPMODIFY -v -D "cn=Manager,$BASEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \
-e manageDSAit >> $TESTOUT 2>&1 << EOMODS -M >> $TESTOUT 2>&1 << EOMODS
dn: cn=Added User,ou=Alumni Association,ou=People,$BASEDN dn: cn=Added User,ou=Alumni Association,ou=People,$BASEDN
changetype: add changetype: add
objectClass: OpenLDAPperson objectClass: OpenLDAPperson
...@@ -216,8 +216,8 @@ echo "# attrs=\"'*' ref\"" >> $SEARCHOUT ...@@ -216,8 +216,8 @@ echo "# attrs=\"'*' ref\"" >> $SEARCHOUT
BASEDN="dc=example,dc=com" BASEDN="dc=example,dc=com"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
...@@ -228,8 +228,8 @@ fi ...@@ -228,8 +228,8 @@ fi
BASEDN="o=Example,c=US" BASEDN="o=Example,c=US"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
...@@ -240,8 +240,8 @@ fi ...@@ -240,8 +240,8 @@ fi
BASEDN="o=Esempio,c=IT" BASEDN="o=Esempio,c=IT"
echo " base=\"$BASEDN\"..." echo " base=\"$BASEDN\"..."
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" "*" ref \ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" -M "$FILTER" "*" ref \
-e manageDSAit >> $SEARCHOUT 2>&1 >> $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
echo "Search failed ($RC)!" echo "Search failed ($RC)!"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment