mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
more tests
This commit is contained in:
parent
0717a598b6
commit
3cb9d64de3
2 changed files with 16 additions and 0 deletions
|
|
@ -65,3 +65,4 @@ uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People,
|
|||
uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam
|
||||
ple,dc=com
|
||||
|
||||
# Searching "ou=Groups,dc=example,dc=com" as "cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" (should succeed with no results)...
|
||||
|
|
|
|||
|
|
@ -217,6 +217,21 @@ if test $RC != 0 ; then
|
|||
exit $RC
|
||||
fi
|
||||
|
||||
# Search must fail
|
||||
BINDDN="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
||||
BINDPW=bjensen
|
||||
echo "Searching \"$BASEDN\" as \"$BINDDN\" (should succeed with no results)..."
|
||||
echo "# Searching \"$BASEDN\" as \"$BINDDN\" (should succeed with no results)..." >> $SEARCHOUT
|
||||
$LDAPSEARCH -s one -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
|
||||
-D "$BINDDN" -w "$BINDPW" \
|
||||
'(objectClass=*)' >> $SEARCHOUT 2>> $TESTOUT
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
|
||||
LDIF=$ACIOUT
|
||||
|
|
|
|||
Loading…
Reference in a new issue