X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest028-idassert;h=716a3442ab4129653f8ce84774766f8d1c858dcd;hb=b30fc9f571a4a04487cdbff1891c1d4d89fbf9d6;hp=55db91c4aeca05a821d037c930dcd6b65a42506a;hpb=4f593f55a62de8a6fbfc9eb5ee56d380bf8f7450;p=openldap diff --git a/tests/scripts/test028-idassert b/tests/scripts/test028-idassert index 55db91c4ae..716a3442ab 100755 --- a/tests/scripts/test028-idassert +++ b/tests/scripts/test028-idassert @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2004 The OpenLDAP Foundation. +## Copyright 1998-2005 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -27,6 +27,11 @@ if test $BACKLDAP = "ldapno" ; then exit 0 fi +if test $RWM = rwmno ; then + echo "Rewrite/remap overlay not available, test skipped" + exit 0 +fi + if test $WITH_SASL = "yes" ; then if test $USE_SASL != "no" ; then if test $USE_SASL = "yes" ; then @@ -69,6 +74,8 @@ if test $WAIT != 0 ; then fi KILLPIDS="$PID" +sleep 1 + echo "Using ldapsearch to check that slapd is running..." for i in 0 1 2 3 4 5; do $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \ @@ -101,7 +108,7 @@ if test $RC != 0 ; then fi AUTHZID="u:bjorn" -echo "Testing ldapwhoami as proxy US, $AUTHZID..." +echo "Testing ldapwhoami as proxy US, $AUTHZID... (should fail)" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? if test $RC != 1 ; then @@ -111,7 +118,7 @@ if test $RC != 1 ; then fi AUTHZID="u:bjensen" -echo "Testing ldapwhoami as proxy US, $AUTHZID..." +echo "Testing ldapwhoami as proxy US, $AUTHZID... (should fail)" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? if test $RC != 1 ; then @@ -130,7 +137,7 @@ if test $RC != 0 ; then fi AUTHZID="u:it/jaj" -echo "Testing ldapwhoami as proxy IT, $AUTHZID..." +echo "Testing ldapwhoami as proxy IT, $AUTHZID... (should fail)" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? if test $RC != 1 ; then @@ -140,7 +147,7 @@ if test $RC != 1 ; then fi AUTHZID="u:bjorn" -echo "Testing ldapwhoami as proxy IT, $AUTHZID..." +echo "Testing ldapwhoami as proxy IT, $AUTHZID... (should fail)" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? if test $RC != 1 ; then