migrate to ${env_setup}
This commit is contained in:
@@ -50,8 +50,8 @@ R=TEST.H5L.SE
|
|||||||
|
|
||||||
port=@port@
|
port=@port@
|
||||||
|
|
||||||
kadmin="${TESTS_ENVIRONMENT} ../../kadmin/kadmin -l -r $R"
|
kadmin="${kadmin} -l -r $R"
|
||||||
kdc="${TESTS_ENVIRONMENT} ../../kdc/kdc --addresses=localhost -P $port"
|
kdc="${kdc} --addresses=localhost -P $port"
|
||||||
|
|
||||||
server=host/datan.test.h5l.se
|
server=host/datan.test.h5l.se
|
||||||
cache="FILE:${objdir}/cache.krb5"
|
cache="FILE:${objdir}/cache.krb5"
|
||||||
@@ -59,11 +59,9 @@ ocache="FILE:${objdir}/ocache.krb5"
|
|||||||
keytabfile=${objdir}/server.keytab
|
keytabfile=${objdir}/server.keytab
|
||||||
keytab="FILE:${keytabfile}"
|
keytab="FILE:${keytabfile}"
|
||||||
|
|
||||||
kinit="${TESTS_ENVIRONMENT} ../../kuser/kinit -c $cache --no-afslog"
|
kinit="${kinit} -c $cache --no-afslog"
|
||||||
klist="${TESTS_ENVIRONMENT} ../../kuser/klist -c $cache"
|
klist="${klist} -c $cache"
|
||||||
kdigest="${TESTS_ENVIRONMENT} ../../kuser/kdigest --ccache=$cache"
|
kdigest="${kdigest} --ccache=$cache"
|
||||||
test_ntlm="${TESTS_ENVIRONMENT} ../../lib/gssapi/test_ntlm"
|
|
||||||
context="${TESTS_ENVIRONMENT} ../../lib/gssapi/test_context"
|
|
||||||
|
|
||||||
username=foo
|
username=foo
|
||||||
userpassword=digestpassword
|
userpassword=digestpassword
|
||||||
@@ -135,19 +133,19 @@ NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt"
|
|||||||
export NTLM_USER_FILE
|
export NTLM_USER_FILE
|
||||||
|
|
||||||
echo "test_context --mech-type=ntlm"
|
echo "test_context --mech-type=ntlm"
|
||||||
${context} --mech-type=ntlm \
|
${test_context} --mech-type=ntlm \
|
||||||
--name-type=hostbased-service datan@TEST || \
|
--name-type=hostbased-service datan@TEST || \
|
||||||
{ echo "test_context 1 failed"; exit 1; }
|
{ echo "test_context 1 failed"; exit 1; }
|
||||||
|
|
||||||
${context} --mech-type=ntlm \
|
${test_context} --mech-type=ntlm \
|
||||||
--name-type=hostbased-service datan@host.TEST || \
|
--name-type=hostbased-service datan@host.TEST || \
|
||||||
{ echo "test_context 2 failed"; exit 1; }
|
{ echo "test_context 2 failed"; exit 1; }
|
||||||
|
|
||||||
${context} --mech-type=ntlm \
|
${test_context} --mech-type=ntlm \
|
||||||
--name-type=hostbased-service datan@host.test.domain2 || \
|
--name-type=hostbased-service datan@host.test.domain2 || \
|
||||||
{ echo "test_context 3 failed"; exit 1; }
|
{ echo "test_context 3 failed"; exit 1; }
|
||||||
|
|
||||||
${context} --mech-type=ntlm \
|
${test_context} --mech-type=ntlm \
|
||||||
--name-type=hostbased-service datan@host.foo 2>/dev/null && \
|
--name-type=hostbased-service datan@host.foo 2>/dev/null && \
|
||||||
{ echo "test_context 4 failed"; exit 1; }
|
{ echo "test_context 4 failed"; exit 1; }
|
||||||
|
|
||||||
@@ -162,7 +160,7 @@ for type in \
|
|||||||
; do
|
; do
|
||||||
|
|
||||||
echo "Trying NTLM type: ${type}"
|
echo "Trying NTLM type: ${type}"
|
||||||
${context} --mech-type=ntlm ${type} \
|
${test_context} --mech-type=ntlm ${type} \
|
||||||
--name-type=hostbased-service datan@TEST || \
|
--name-type=hostbased-service datan@TEST || \
|
||||||
{ echo "test_context 1 failed"; exit 1; }
|
{ echo "test_context 1 failed"; exit 1; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user