X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest005-modrdn;h=967bb2cf19cce7ecad6e6e981c54d5fe6688331c;hb=20f4d3099a6ce5dd14334910018bee40f307e184;hp=0accc7c4b39fed09af1b9c9884d21ae9e85477a9;hpb=4eaad482472dc1ecea38c33ef1d5797e301a85a5;p=openldap diff --git a/tests/scripts/test005-modrdn b/tests/scripts/test005-modrdn index 0accc7c4b3..967bb2cf19 100755 --- a/tests/scripts/test005-modrdn +++ b/tests/scripts/test005-modrdn @@ -5,7 +5,7 @@ SRCDIR="." if test $# -ge 1 ; then SRCDIR=$1; shift fi -BACKEND=ldbm +BACKEND=bdb if test $# -ge 1 ; then BACKEND=$1; shift fi @@ -41,7 +41,7 @@ echo "Testing slapd modrdn operations..." # Make sure we can search the database for i in 0 1 2 3 4 5; do - $LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ + $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'objectClass=*' > $INITOUT 2>&1 RC=$? if test $RC = 1 ; then @@ -59,7 +59,7 @@ fi # -r used to do remove of old rdn echo "Testing modrdn(deleteoldrdn=0)..." -$LDAPMODRDN -D "$MANAGERDN" -h localhost -p $PORT -w $PASSWD > \ +$LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD > \ $TESTOUT 2>&1 'cn=James A Jones 1, ou=Alumni Association, ou=People, o=University of Michigan, c=US' 'cn=James A Jones III' RC=$? @@ -70,7 +70,7 @@ if test $RC != 0 ; then fi echo "Testing modrdn(deleteoldrdn=1)..." -$LDAPMODRDN -D "$MANAGERDN" -r -h localhost -p $PORT -w $PASSWD >> \ +$LDAPMODRDN -D "$MANAGERDN" -r -h $LOCALHOST -p $PORT -w $PASSWD >> \ $TESTOUT 2>&1 'cn=James A Jones 2, ou=Information Technology Division, ou=People, o=University of Michigan, c=US' 'cn=James A Jones II' RC=$? @@ -83,7 +83,7 @@ fi # Ensure the new rdn's can be found echo "Using ldapsearch to retrieve entries using new rdn (cn=James A Jones III)..." -$LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'cn=James A Jones III' > $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then @@ -110,7 +110,7 @@ fi echo "Using ldapsearch to retrieve entries using new rdn (cn=James A Jones II)..." -$LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'cn=James A Jones II' > $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then @@ -139,7 +139,7 @@ fi # an attribute. echo "Using ldapsearch to retrieve entries using removed rdn (cn=James A Jones 2)..." -$LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'cn=James A Jones 2' > $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then @@ -147,7 +147,7 @@ if test $RC != 0 ; then echo "ldapsearch failed ($RC)!" exit $RC fi -$CMP $SEARCHOUT /dev/null > $CMPOUT +$CMP $SEARCHOUT - < /dev/null > $CMPOUT if test $? != 0 ; then echo "failure: ldapsearch found attribute that was to be removed!" kill -HUP $PID @@ -155,7 +155,7 @@ if test $? != 0 ; then fi echo "Using ldapsearch to retrieve all the entries..." -$LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'objectClass=*' > $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then @@ -181,7 +181,7 @@ fi echo "Testing modrdn(deleteoldrdn=1), modrdn with new rdn already an att val..." -$LDAPMODRDN -D "$MANAGERDN" -r -h localhost -p $PORT -w $PASSWD > \ +$LDAPMODRDN -D "$MANAGERDN" -r -h $LOCALHOST -p $PORT -w $PASSWD > \ /dev/null 2>&1 'cn=James A Jones III, ou=Alumni Association, ou=People, o=University of Michigan, c=US' 'cn=James A Jones 1' RC=$? @@ -195,7 +195,7 @@ fi # present echo "Using ldapsearch to retrieve entries using new rdn (cn=James A Jones 1)..." -$LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \ 'cn=James A Jones 1' > $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then