mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 03:44:58 -05:00
ITS#9825 dynlist: add test case
This commit is contained in:
parent
c2d546704b
commit
7419950aa3
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue