Skip to content

Commit

Permalink
HDDS-11820. Create test principals at test run time (apache#7507)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Dec 2, 2024
1 parent 6ba309a commit b60d897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hadoop-ozone/dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<docker.ozone.image>apache/ozone</docker.ozone.image>
<docker.ozone.image.flavor>-rocky</docker.ozone.image.flavor> <!-- suffix appended to Ozone version to get Docker image version -->
<docker.ozone-runner.version>20241108-jdk17-1</docker.ozone-runner.version>
<docker.ozone-testkr5b.image>ghcr.io/apache/ozone-testkrb5:20241112-1</docker.ozone-testkr5b.image>
<docker.ozone-testkr5b.image>ghcr.io/apache/ozone-testkrb5:20241129-1</docker.ozone-testkr5b.image>
<maven.test.skip>true</maven.test.skip> <!-- no tests in this module so far -->
</properties>

Expand Down
3 changes: 2 additions & 1 deletion hadoop-ozone/dist/src/main/compose/common/init-kdc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ set -eux -o pipefail
# This script exports keytabs and starts KDC server.

export_keytab() {
kadmin.local -q "ktadd -norandkey -k /etc/security/keytabs/$2.keytab $1@EXAMPLE.COM"
kadmin.local -q "addprinc -randkey $1@EXAMPLE.COM"
kadmin.local -q "ktadd -norandkey -k /etc/security/keytabs/$2.keytab $1@EXAMPLE.COM"
}

rm -f /etc/security/keytabs/*.keytab
Expand Down

0 comments on commit b60d897

Please sign in to comment.