Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
35643b04
Commit
35643b04
authored
Apr 27, 2004
by
Pierangelo Masarati
Browse files
more whoami tests
parent
60b05c64
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test014-whoami
View file @
35643b04
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment