mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
more whoami tests
This commit is contained in:
parent
60b05c643d
commit
35643b0425
1 changed files with 14 additions and 0 deletions
|
|
@ -374,6 +374,20 @@ if test $RC != 1 ; then
|
|||
exit $RC
|
||||
fi
|
||||
|
||||
BINDDN="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
||||
BINDPW=bjorn
|
||||
AUTHZID="dn:cn=Should Fail,dc=example,dc=com"
|
||||
echo "Testing ldapwhoami as ${BINDDN} for ${AUTHZID} (URI; should fail)..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "$BINDDN" -w $BINDPW \
|
||||
-e \!authzid="$AUTHZID"
|
||||
|
||||
RC=$?
|
||||
if test $RC != 1 ; then
|
||||
echo "ldapwhoami failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
|
||||
echo ">>>>> Test succeeded"
|
||||
|
|
|
|||
Loading…
Reference in a new issue