From df1260af5ef0803de71bbb51b627f6361ec3248b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 22 Feb 2005 20:08:53 +0000 Subject: [PATCH] test remapped attribute in requested attribute list --- tests/data/relay.out | 8 ++++++++ tests/scripts/relay | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/tests/data/relay.out b/tests/data/relay.out index 9588fd7db7..c88d78591d 100644 --- a/tests/data/relay.out +++ b/tests/data/relay.out @@ -2566,6 +2566,14 @@ seeAlso: cn=All Staff,ou=Groups,o=Example,c=US # refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub +# searching filter="(uid=example)" +# attrs="uid" +# base="o=Example,c=US"... +dn: o=Example,c=US +uid: example + +# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub + # searching filter="(member=cn=Another Added Group,ou=Groups,o=Example,c=US)" # attrs="member" # base="o=Example,c=US"... diff --git a/tests/scripts/relay b/tests/scripts/relay index befaee6cff..f6cfcef7c1 100755 --- a/tests/scripts/relay +++ b/tests/scripts/relay @@ -308,7 +308,22 @@ if test $RC != 0 ; then exit $RC fi -BASEDN="o=Example,c=US" +FILTER="(uid=example)" +echo "Searching filter=\"$FILTER\"" +echo " attrs=\"uid\"" +echo " base=\"$BASEDN\"..." +echo "# searching filter=\"$FILTER\"" >> $SEARCHOUT +echo "# attrs=\"uid\"" >> $SEARCHOUT +echo "# base=\"$BASEDN\"..." >> $SEARCHOUT +$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" uid \ + >> $SEARCHOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "Search failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + FILTER="(member=cn=Another Added Group,ou=Groups,$BASEDN)" echo "Searching filter=\"$FILTER\"" echo " attrs=\"member\"" -- 2.39.5