Skip to content

Commit

Permalink
fix kinit
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 17, 2024
1 parent bbd8548 commit ce6b27c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etc/run-enterprise-gssapi-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ set -eu
if [ "Windows_NT" = "${OS:-}" ]; then
export MONGODB_URI="mongodb://${PRINCIPAL/@/%40}:${SASL_PASS}@${SASL_HOST}:${SASL_PORT}/kerberos?authMechanism=GSSAPI"
else
echo "${KEYTAB_BASE64}" > /tmp/drivers.keytab.base64
base64 --decode /tmp/drivers.keytab.base64 > ${PROJECT_DIRECTORY}/.evergreen/drivers.keytab
echo ${KEYTAB_BASE64} | base64 -d > ${PROJECT_DIRECTORY}/.evergreen/drivers.keytab
mkdir -p ~/.krb5
cat .evergreen/krb5.config | tee -a ~/.krb5/config
kinit -k -t ${PROJECT_DIRECTORY}/.evergreen/drivers.keytab -p "${PRINCIPAL}"
Expand Down

0 comments on commit ce6b27c

Please sign in to comment.