File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -295,13 +295,13 @@ services:
295295 - KRB5_TRACE=/dev/stderr
296296 - MONGO_HOST=psmdb-kerberos
297297 - KERBEROS_HOST=kerberos
298- - KRB5_CONFIG=/tmp /krb5.conf
298+ - KRB5_CONFIG=/krb5 /krb5.conf
299299 - MONGO_KERBEROS_USERNAME=pmm-test
300300 - MONGO_KERBEROS_PASSWORD=password1
301301 depends_on :
302302 - psmdb-kerberos
303303 volumes :
304- - ./docker/kerberos/cache:/tmp /
304+ - ./docker/kerberos/cache:/krb5 /
305305 - ./docker/scripts:/scripts
306306 ports :
307307 - " 88:88/udp"
@@ -319,14 +319,14 @@ services:
319319 ports :
320320 - 29017:27017
321321 environment :
322- - KRB5_KTNAME=/tmp /mongodb.keytab
323- - KRB5CCNAME=/tmp /krb5cc_0
324- - KRB5_CONFIG=/tmp /krb5.conf
322+ - KRB5_KTNAME=/krb5 /mongodb.keytab
323+ - KRB5CCNAME=/krb5 /krb5cc_0
324+ - KRB5_CONFIG=/krb5 /krb5.conf
325325 - MONGO_INITDB_ROOT_USERNAME=admin
326326 - MONGO_INITDB_ROOT_PASSWORD=adminpassword
327327 volumes :
328328 - ./docker/scripts:/scripts
329- - ./docker/kerberos/cache:/tmp /
329+ - ./docker/kerberos/cache:/krb5 /
330330 command : >
331331 mongod --bind_ip_all --auth --setParameter authenticationMechanisms=GSSAPI,SCRAM-SHA-256
332332volumes :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ mongohost=`getent hosts ${MONGO_HOST} | awk '{ print $1 }'`
44kerberos_host=` getent hosts ${KERBEROS_HOST} | awk ' { print $1 }' `
55gateway_ip=` ip route | grep default | awk ' {print $3}' `
66
7- cat > /tmp /krb5.conf << EOL
7+ cat > /krb5 /krb5.conf << EOL
88[libdefaults]
99 default_realm = PERCONATEST.COM
1010 forwardable = true
@@ -27,5 +27,5 @@ kdb5_util create -s -P password
2727kadmin.local -q " addprinc -pw password root/admin"
2828kadmin.local -q " addprinc -pw mongodb mongodb/${mongohost} "
2929kadmin.local -q " addprinc -pw password1 pmm-test"
30- kadmin.local -q " ktadd -k /tmp /mongodb.keytab mongodb/${mongohost} @PERCONATEST.COM"
30+ kadmin.local -q " ktadd -k /krb5 /mongodb.keytab mongodb/${mongohost} @PERCONATEST.COM"
3131krb5kdc -n
You can’t perform that action at this time.
0 commit comments