ITS#9825 dynlist: add test case

This commit is contained in:
Howard Chu 2022-04-21 17:49:27 +01:00 committed by Quanah Gibson-Mount
parent c2d546704b
commit 7419950aa3
2 changed files with 15 additions and 0 deletions

View file

@ -679,6 +679,10 @@ memberOf: cn=bonus group,ou=groups,dc=example,dc=com
memberOf: cn=alumni assoc staff,ou=groups,dc=example,dc=com
memberOf: cn=dynamic list of members,ou=dynamic lists,dc=example,dc=com
dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example
,dc=com
uid: jjones
# Testing negated filtered memberOf functionality...
dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,
dc=com

View file

@ -1049,6 +1049,17 @@ if test $RC != 0 ; then
exit $RC
fi
$LDAPSEARCH -S "" -b "$BASEDN" -H $URI1 \
-D "$BABSDN" -w bjensen \
"(&(uid=jjones)(memberOf=cn=jjs,ou=groups,$BASEDN))" 'uid' \
>> $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
echo "Testing negated filtered memberOf functionality..."
echo "# Testing negated filtered memberOf functionality..." >> $SEARCHOUT